@ory/elements-react 0.0.0-pr.6ecad3e0 → 0.0.0-pr.75b46aac

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.
@@ -40,48 +40,15 @@ function DefaultCardContent({ children }) {
40
40
 
41
41
  // src/theme/default/components/card/footer.tsx
42
42
  import { FlowType as FlowType10 } from "@ory/client-fetch";
43
- import { useComponents as useComponents3, useOryFlow as useOryFlow3 } from "@ory/elements-react";
43
+ import {
44
+ useComponents as useComponents3,
45
+ useOryConfiguration as useOryConfiguration2,
46
+ useOryFlow as useOryFlow3
47
+ } from "@ory/elements-react";
44
48
  import { useIntl as useIntl9 } from "react-intl";
45
49
 
46
- // src/theme/default/utils/url.ts
47
- function restartFlowUrl(flow, fallback) {
48
- return flow.request_url || appendReturnTo(fallback, flow.return_to);
49
- }
50
- function initFlowUrl(sdkUrl, flowType, flow) {
51
- const result = `${sdkUrl}/self-service/${flowType}/browser`;
52
- const qs = new URLSearchParams();
53
- if (flow.oauth2_login_challenge) {
54
- qs.set("login_challenge", flow.oauth2_login_challenge);
55
- }
56
- if (flow.return_to) {
57
- qs.set("return_to", flow.return_to);
58
- } else if (typeof window !== "undefined") {
59
- const searchParams = new URLSearchParams(window.location.search);
60
- if (searchParams.has("return_to")) {
61
- qs.set("return_to", searchParams.get("return_to") || "");
62
- }
63
- }
64
- if (qs.toString().length === 0) {
65
- return result;
66
- }
67
- return result + "?" + qs.toString();
68
- }
69
- function appendReturnTo(url, returnTo) {
70
- if (!returnTo) {
71
- return url;
72
- }
73
- const urlObj = new URL(url);
74
- urlObj.searchParams.set("return_to", returnTo);
75
- return urlObj.toString();
76
- }
77
-
78
- // src/util/ui/index.ts
79
- import {
80
- isUiNodeInputAttributes as isUiNodeInputAttributes2,
81
- isUiNodeScriptAttributes
82
- } from "@ory/client-fetch";
83
- import { UiNodeGroupEnum as UiNodeGroupEnum2 } from "@ory/client-fetch";
84
- import { useMemo } from "react";
50
+ // src/components/card/two-step/state-select-method.tsx
51
+ import { UiNodeGroupEnum as UiNodeGroupEnum15 } from "@ory/client-fetch";
85
52
 
86
53
  // src/context/component.tsx
87
54
  import {
@@ -108,7 +75,32 @@ var defaultGroupOrder = [
108
75
  UiNodeGroupEnum.Totp
109
76
  ];
110
77
 
78
+ // src/context/flow-context.tsx
79
+ import {
80
+ createContext as createContext2,
81
+ useContext as useContext2,
82
+ useState as useState2
83
+ } from "react";
84
+
85
+ // src/context/form-state.ts
86
+ import { FlowType as FlowType2 } from "@ory/client-fetch";
87
+ import { useReducer, useState } from "react";
88
+
89
+ // src/components/card/two-step/utils.ts
90
+ import { FlowType, UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
91
+
92
+ // src/theme/default/utils/form.ts
93
+ function isGroupImmediateSubmit(group) {
94
+ return group === "code";
95
+ }
96
+
111
97
  // src/util/ui/index.ts
98
+ import {
99
+ isUiNodeInputAttributes as isUiNodeInputAttributes2,
100
+ isUiNodeScriptAttributes
101
+ } from "@ory/client-fetch";
102
+ import { UiNodeGroupEnum as UiNodeGroupEnum2 } from "@ory/client-fetch";
103
+ import { useMemo } from "react";
112
104
  function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
113
105
  var _a;
114
106
  const groups = {};
@@ -171,38 +163,99 @@ function useNodeGroupsWithVisibleNodes(nodes) {
171
163
  }, [nodes]);
172
164
  }
173
165
 
174
- // src/util/nodes.ts
175
- function findScreenSelectionButton(nodes) {
176
- return nodes.find(
177
- (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
178
- );
179
- }
180
-
181
- // src/components/card/two-step/state-select-method.tsx
182
- import { UiNodeGroupEnum as UiNodeGroupEnum15 } from "@ory/client-fetch";
183
-
184
166
  // src/context/flow-context.tsx
185
- import {
186
- createContext as createContext2,
187
- useContext as useContext2,
188
- useState as useState2
189
- } from "react";
167
+ import { jsx as jsx5 } from "react/jsx-runtime";
168
+ var OryFlowContext = createContext2(null);
190
169
 
191
- // src/context/form-state.ts
192
- import { FlowType as FlowType2 } from "@ory/client-fetch";
193
- import { useReducer, useState } from "react";
170
+ // src/context/config.tsx
171
+ import { createContext as createContext3, useContext as useContext3, useRef } from "react";
194
172
 
195
- // src/components/card/two-step/utils.ts
196
- import { FlowType, UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
173
+ // src/client/config.ts
174
+ function isProduction() {
175
+ var _a, _b;
176
+ return ["production", "prod"].indexOf(
177
+ (_b = (_a = process.env.VERCEL_ENV) != null ? _a : process.env.NODE_ENV) != null ? _b : ""
178
+ ) > -1;
179
+ }
197
180
 
198
- // src/theme/default/utils/form.ts
199
- function isGroupImmediateSubmit(group) {
200
- return group === "code";
181
+ // src/util/client.ts
182
+ import {
183
+ Configuration,
184
+ FrontendApi
185
+ } from "@ory/client-fetch";
186
+ function frontendClient(sdkUrl, opts = {}) {
187
+ const config = new Configuration({
188
+ ...opts,
189
+ basePath: sdkUrl,
190
+ credentials: "include",
191
+ headers: {
192
+ Accept: "application/json",
193
+ ...opts.headers
194
+ }
195
+ });
196
+ return new FrontendApi(config);
201
197
  }
202
198
 
203
- // src/context/flow-context.tsx
204
- import { jsx as jsx5 } from "react/jsx-runtime";
205
- var OryFlowContext = createContext2(null);
199
+ // src/context/config.tsx
200
+ import { jsx as jsx6 } from "react/jsx-runtime";
201
+ var defaultProject = {
202
+ name: "Ory",
203
+ registration_enabled: true,
204
+ verification_enabled: true,
205
+ recovery_enabled: true,
206
+ recovery_ui_url: "/ui/recovery",
207
+ registration_ui_url: "/ui/registration",
208
+ verification_ui_url: "/ui/verification",
209
+ login_ui_url: "/ui/login",
210
+ settings_ui_url: "/ui/settings",
211
+ default_redirect_url: "/ui/welcome",
212
+ error_ui_url: "/ui/error",
213
+ default_locale: "en",
214
+ locale_behavior: "force_default"
215
+ };
216
+ var OryConfigurationContext = createContext3({
217
+ sdk: computeSdkConfig({}),
218
+ project: defaultProject
219
+ });
220
+ function computeSdkConfig(config) {
221
+ if ((config == null ? void 0 : config.url) && typeof config.url === "string") {
222
+ console.debug("Using sdk url from config");
223
+ return {
224
+ url: config.url.replace(/\/$/, ""),
225
+ options: config.options || {}
226
+ };
227
+ }
228
+ return {
229
+ url: getSDKUrl(),
230
+ options: (config == null ? void 0 : config.options) || {}
231
+ };
232
+ }
233
+ function getSDKUrl() {
234
+ var _a;
235
+ if (typeof process !== "undefined" && process.versions && process.versions.node) {
236
+ if (isProduction()) {
237
+ const sdkUrl = (_a = process.env["NEXT_PUBLIC_ORY_SDK_URL"]) != null ? _a : process.env["ORY_SDK_URL"];
238
+ if (!sdkUrl) {
239
+ throw new Error(
240
+ "Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL in production environments."
241
+ );
242
+ }
243
+ return sdkUrl.replace(/\/$/, "");
244
+ } else {
245
+ if (process.env["__NEXT_PRIVATE_ORIGIN"]) {
246
+ return process.env["__NEXT_PRIVATE_ORIGIN"].replace(/\/$/, "");
247
+ } else if (process.env["VERCEL_URL"]) {
248
+ return `https://${process.env["VERCEL_URL"]}`.replace(/\/$/, "");
249
+ }
250
+ }
251
+ }
252
+ if (typeof window !== "undefined") {
253
+ return window.location.origin;
254
+ }
255
+ throw new Error(
256
+ "Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL or supply the sdk.url parameter in the Ory configuration."
257
+ );
258
+ }
206
259
 
207
260
  // src/context/intl-context.tsx
208
261
  import { IntlProvider as OriginalIntlProvider } from "react-intl";
@@ -232,24 +285,6 @@ import {
232
285
  loginUrl
233
286
  } from "@ory/client-fetch";
234
287
 
235
- // src/util/client.ts
236
- import {
237
- Configuration,
238
- FrontendApi
239
- } from "@ory/client-fetch";
240
- function frontendClient(sdkUrl, opts = {}) {
241
- const config = new Configuration({
242
- ...opts,
243
- basePath: sdkUrl,
244
- credentials: "include",
245
- headers: {
246
- Accept: "application/json",
247
- ...opts.headers
248
- }
249
- });
250
- return new FrontendApi(config);
251
- }
252
-
253
288
  // src/util/onSubmitRecovery.ts
254
289
  import {
255
290
  FlowType as FlowType4,
@@ -288,7 +323,7 @@ import {
288
323
  import { isUiNodeInputAttributes as isUiNodeInputAttributes3 } from "@ory/client-fetch";
289
324
 
290
325
  // src/components/form/form.tsx
291
- import { jsx as jsx6 } from "react/jsx-runtime";
326
+ import { jsx as jsx7 } from "react/jsx-runtime";
292
327
 
293
328
  // src/components/form/groups.tsx
294
329
  import { getNodeId } from "@ory/client-fetch";
@@ -298,9 +333,9 @@ import {
298
333
  UiNodeGroupEnum as UiNodeGroupEnum6,
299
334
  UiNodeInputAttributesTypeEnum
300
335
  } from "@ory/client-fetch";
301
- import { useEffect, useRef } from "react";
336
+ import { useEffect, useRef as useRef2 } from "react";
302
337
  import { useFormContext as useFormContext3 } from "react-hook-form";
303
- import { jsx as jsx7 } from "react/jsx-runtime";
338
+ import { jsx as jsx8 } from "react/jsx-runtime";
304
339
 
305
340
  // src/components/form/nodes/node.tsx
306
341
  import {
@@ -311,13 +346,13 @@ import {
311
346
  isUiNodeTextAttributes,
312
347
  UiNodeGroupEnum as UiNodeGroupEnum7
313
348
  } from "@ory/client-fetch";
314
- import { jsx as jsx8 } from "react/jsx-runtime";
349
+ import { jsx as jsx9 } from "react/jsx-runtime";
315
350
 
316
351
  // src/components/form/groups.tsx
317
- import { jsx as jsx9 } from "react/jsx-runtime";
352
+ import { jsx as jsx10 } from "react/jsx-runtime";
318
353
 
319
354
  // src/components/form/messages.tsx
320
- import { jsx as jsx10 } from "react/jsx-runtime";
355
+ import { jsx as jsx11 } from "react/jsx-runtime";
321
356
 
322
357
  // src/components/form/social.tsx
323
358
  import {
@@ -334,21 +369,21 @@ import { FormProvider, useForm } from "react-hook-form";
334
369
  import { isUiNodeInputAttributes as isUiNodeInputAttributes6 } from "@ory/client-fetch";
335
370
 
336
371
  // src/components/form/form-provider.tsx
337
- import { jsx as jsx11 } from "react/jsx-runtime";
372
+ import { jsx as jsx12 } from "react/jsx-runtime";
338
373
 
339
374
  // src/components/form/social.tsx
340
- import { jsx as jsx12 } from "react/jsx-runtime";
375
+ import { jsx as jsx13 } from "react/jsx-runtime";
341
376
 
342
377
  // src/components/form/section.tsx
343
378
  import { useFormContext as useFormContext5 } from "react-hook-form";
344
- import { jsx as jsx13 } from "react/jsx-runtime";
379
+ import { jsx as jsx14 } from "react/jsx-runtime";
345
380
 
346
381
  // src/components/generic/divider.tsx
347
382
  import { UiNodeGroupEnum as UiNodeGroupEnum11 } from "@ory/client-fetch";
348
- import { jsx as jsx14 } from "react/jsx-runtime";
383
+ import { jsx as jsx15 } from "react/jsx-runtime";
349
384
 
350
385
  // src/components/generic/page-header.tsx
351
- import { jsx as jsx15 } from "react/jsx-runtime";
386
+ import { jsx as jsx16 } from "react/jsx-runtime";
352
387
 
353
388
  // src/components/settings/settings-card.tsx
354
389
  import {
@@ -361,30 +396,30 @@ import { useIntl as useIntl7 } from "react-intl";
361
396
  // src/components/settings/oidc-settings.tsx
362
397
  import { useIntl as useIntl2 } from "react-intl";
363
398
  import { useFormContext as useFormContext6 } from "react-hook-form";
364
- import { Fragment, jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
399
+ import { Fragment, jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
365
400
 
366
401
  // src/components/settings/passkey-settings.tsx
367
402
  import { useFormContext as useFormContext7 } from "react-hook-form";
368
403
  import { useIntl as useIntl3 } from "react-intl";
369
- import { Fragment as Fragment2, jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
404
+ import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
370
405
 
371
406
  // src/components/settings/recovery-codes-settings.tsx
372
407
  import { useIntl as useIntl4 } from "react-intl";
373
408
  import { useFormContext as useFormContext8 } from "react-hook-form";
374
- import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
409
+ import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
375
410
 
376
411
  // src/components/settings/totp-settings.tsx
377
412
  import { useFormContext as useFormContext9 } from "react-hook-form";
378
413
  import { useIntl as useIntl5 } from "react-intl";
379
- import { Fragment as Fragment4, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
414
+ import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
380
415
 
381
416
  // src/components/settings/webauthn-settings.tsx
382
417
  import { useFormContext as useFormContext10 } from "react-hook-form";
383
418
  import { useIntl as useIntl6 } from "react-intl";
384
- import { Fragment as Fragment5, jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
419
+ import { Fragment as Fragment5, jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
385
420
 
386
421
  // src/components/settings/settings-card.tsx
387
- import { Fragment as Fragment6, jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
422
+ import { Fragment as Fragment6, jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
388
423
 
389
424
  // src/util/i18n/index.ts
390
425
  var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
@@ -2751,7 +2786,7 @@ var OryLocales = {
2751
2786
  };
2752
2787
 
2753
2788
  // src/context/intl-context.tsx
2754
- import { jsx as jsx22 } from "react/jsx-runtime";
2789
+ import { jsx as jsx23 } from "react/jsx-runtime";
2755
2790
  function mergeTranslations(customTranslations) {
2756
2791
  return Object.keys(customTranslations).reduce((acc, key) => {
2757
2792
  acc[key] = { ...OryLocales[key], ...customTranslations[key] };
@@ -2764,12 +2799,12 @@ var IntlProvider = ({
2764
2799
  customTranslations
2765
2800
  }) => {
2766
2801
  const messages = mergeTranslations(customTranslations != null ? customTranslations : {});
2767
- return /* @__PURE__ */ jsx22(
2802
+ return /* @__PURE__ */ jsx23(
2768
2803
  OriginalIntlProvider,
2769
2804
  {
2770
2805
  onWarn: () => ({}),
2771
2806
  defaultRichTextElements: {
2772
- del: (chunks) => /* @__PURE__ */ jsx22("del", { children: chunks })
2807
+ del: (chunks) => /* @__PURE__ */ jsx23("del", { children: chunks })
2773
2808
  },
2774
2809
  locale,
2775
2810
  messages: messages[locale],
@@ -2780,38 +2815,38 @@ var IntlProvider = ({
2780
2815
  };
2781
2816
 
2782
2817
  // src/context/provider.tsx
2783
- import { jsx as jsx23 } from "react/jsx-runtime";
2818
+ import { jsx as jsx24 } from "react/jsx-runtime";
2784
2819
 
2785
2820
  // src/components/card/header.tsx
2786
- import { jsx as jsx24 } from "react/jsx-runtime";
2821
+ import { jsx as jsx25 } from "react/jsx-runtime";
2787
2822
 
2788
2823
  // src/components/card/card.tsx
2789
- import { jsx as jsx25 } from "react/jsx-runtime";
2824
+ import { jsx as jsx26 } from "react/jsx-runtime";
2790
2825
 
2791
2826
  // src/components/card/footer.tsx
2792
- import { jsx as jsx26 } from "react/jsx-runtime";
2827
+ import { jsx as jsx27 } from "react/jsx-runtime";
2793
2828
 
2794
2829
  // src/components/card/content.tsx
2795
- import { jsx as jsx27 } from "react/jsx-runtime";
2830
+ import { jsx as jsx28 } from "react/jsx-runtime";
2796
2831
 
2797
2832
  // src/components/card/two-step/state-method-active.tsx
2798
2833
  import {
2799
2834
  isUiNodeScriptAttributes as isUiNodeScriptAttributes5,
2800
2835
  UiNodeGroupEnum as UiNodeGroupEnum13
2801
2836
  } from "@ory/client-fetch";
2802
- import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
2837
+ import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
2803
2838
 
2804
2839
  // src/components/card/two-step/state-provide-identifier.tsx
2805
2840
  import { UiNodeGroupEnum as UiNodeGroupEnum14 } from "@ory/client-fetch";
2806
- import { jsx as jsx29, jsxs as jsxs11 } from "react/jsx-runtime";
2841
+ import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
2807
2842
 
2808
2843
  // src/components/card/card-two-step.tsx
2809
2844
  import { useOryFlow as useOryFlow2 } from "@ory/elements-react";
2810
- import { Fragment as Fragment7, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
2845
+ import { Fragment as Fragment7, jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
2811
2846
 
2812
2847
  // src/components/card/card-consent.tsx
2813
2848
  import { getNodeId as getNodeId4 } from "@ory/client-fetch";
2814
- import { jsx as jsx31, jsxs as jsxs13 } from "react/jsx-runtime";
2849
+ import { jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
2815
2850
 
2816
2851
  // src/components/card/two-step/state-select-method.tsx
2817
2852
  import { useIntl as useIntl8 } from "react-intl";
@@ -2819,10 +2854,10 @@ import { useIntl as useIntl8 } from "react-intl";
2819
2854
  // src/components/card/two-step/list-methods.tsx
2820
2855
  import { useComponents as useComponents2 } from "@ory/elements-react";
2821
2856
  import { useFormContext as useFormContext11 } from "react-hook-form";
2822
- import { jsx as jsx32 } from "react/jsx-runtime";
2857
+ import { jsx as jsx33 } from "react/jsx-runtime";
2823
2858
 
2824
2859
  // src/components/card/two-step/state-select-method.tsx
2825
- import { jsx as jsx33, jsxs as jsxs14 } from "react/jsx-runtime";
2860
+ import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
2826
2861
  function toAuthMethodPickerOptions(visibleGroups) {
2827
2862
  return Object.fromEntries(
2828
2863
  Object.values(UiNodeGroupEnum15).filter((group) => {
@@ -2841,6 +2876,13 @@ function toAuthMethodPickerOptions(visibleGroups) {
2841
2876
  );
2842
2877
  }
2843
2878
 
2879
+ // src/util/nodes.ts
2880
+ function findScreenSelectionButton(nodes) {
2881
+ return nodes.find(
2882
+ (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
2883
+ );
2884
+ }
2885
+
2844
2886
  // src/theme/default/utils/logout.ts
2845
2887
  import { useCallback, useEffect as useEffect2, useState as useState3 } from "react";
2846
2888
  function useClientLogout(config) {
@@ -2866,28 +2908,77 @@ function useClientLogout(config) {
2866
2908
  return { logoutFlow, didLoad: !isLoading };
2867
2909
  }
2868
2910
 
2911
+ // src/theme/default/utils/url.ts
2912
+ function restartFlowUrl(flow, fallback) {
2913
+ return flow.request_url || appendReturnTo(fallback, flow.return_to);
2914
+ }
2915
+ function initFlowUrl(sdkUrl, flowType, flow) {
2916
+ const result = `${sdkUrl}/self-service/${flowType}/browser`;
2917
+ const qs = new URLSearchParams();
2918
+ if (flow.oauth2_login_challenge) {
2919
+ qs.set("login_challenge", flow.oauth2_login_challenge);
2920
+ }
2921
+ if (flow.return_to) {
2922
+ qs.set("return_to", flow.return_to);
2923
+ } else if (typeof window !== "undefined") {
2924
+ const searchParams = new URLSearchParams(window.location.search);
2925
+ if (searchParams.has("return_to")) {
2926
+ qs.set("return_to", searchParams.get("return_to") || "");
2927
+ }
2928
+ }
2929
+ if (qs.toString().length === 0) {
2930
+ return result;
2931
+ }
2932
+ return result + "?" + qs.toString();
2933
+ }
2934
+ function appendReturnTo(url, returnTo) {
2935
+ if (!returnTo) {
2936
+ return url;
2937
+ }
2938
+ const urlObj = new URL(url);
2939
+ urlObj.searchParams.set("return_to", returnTo);
2940
+ return urlObj.toString();
2941
+ }
2942
+
2869
2943
  // src/theme/default/components/card/footer.tsx
2870
- import { Fragment as Fragment8, jsx as jsx34, jsxs as jsxs15 } from "react/jsx-runtime";
2944
+ import { Fragment as Fragment8, jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
2871
2945
  function DefaultCardFooter() {
2872
2946
  const oryFlow = useOryFlow3();
2873
2947
  switch (oryFlow.flowType) {
2874
2948
  case FlowType10.Login:
2875
- return /* @__PURE__ */ jsx34(LoginCardFooter, {});
2949
+ return /* @__PURE__ */ jsx35(LoginCardFooter, {});
2876
2950
  case FlowType10.Registration:
2877
- return /* @__PURE__ */ jsx34(RegistrationCardFooter, {});
2951
+ return /* @__PURE__ */ jsx35(RegistrationCardFooter, {});
2878
2952
  case FlowType10.Recovery:
2879
- return /* @__PURE__ */ jsx34(RecoveryCardFooter, {});
2953
+ return /* @__PURE__ */ jsx35(RecoveryCardFooter, {});
2880
2954
  case FlowType10.Verification:
2881
- return /* @__PURE__ */ jsx34(VerificationCardFooter, {});
2955
+ return /* @__PURE__ */ jsx35(VerificationCardFooter, {});
2882
2956
  case FlowType10.OAuth2Consent:
2883
- return /* @__PURE__ */ jsx34(ConsentCardFooter, { flow: oryFlow.flow });
2957
+ return /* @__PURE__ */ jsx35(ConsentCardFooter, { flow: oryFlow.flow });
2884
2958
  default:
2885
2959
  return null;
2886
2960
  }
2887
2961
  }
2962
+ function shouldShowLogoutButton(flow, formState, authMethods) {
2963
+ if (flow.refresh) {
2964
+ return true;
2965
+ }
2966
+ if (flow.requested_aal === "aal2") {
2967
+ if (formState.current === "select_method") {
2968
+ return true;
2969
+ }
2970
+ if (formState.current === "method_active" && flow.active === "code") {
2971
+ return true;
2972
+ }
2973
+ if (formState.current === "method_active" && authMethods.length === 1) {
2974
+ return true;
2975
+ }
2976
+ }
2977
+ return false;
2978
+ }
2888
2979
  function LoginCardFooter() {
2889
- const { config, formState, flow, flowType } = useOryFlow3();
2890
- const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
2980
+ const { formState, flow, flowType, dispatchFormState } = useOryFlow3();
2981
+ const config = useOryConfiguration2();
2891
2982
  const intl = useIntl9();
2892
2983
  if (flowType !== FlowType10.Login) {
2893
2984
  return null;
@@ -2903,40 +2994,8 @@ function LoginCardFooter() {
2903
2994
  `${config.sdk.url}/self-service/${flowType}/browser`
2904
2995
  );
2905
2996
  }
2906
- if (authMethods.length > 1 && formState.current === "method_active") {
2907
- return /* @__PURE__ */ jsx34("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx34(
2908
- "a",
2909
- {
2910
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
2911
- href: "",
2912
- "data-testid": "ory/screen/login/mfa/action/selectMethod",
2913
- children: intl.formatMessage({
2914
- id: "login.2fa.method.go-back"
2915
- })
2916
- }
2917
- ) });
2918
- }
2919
- if (flow.refresh || flow.requested_aal === "aal2") {
2920
- return /* @__PURE__ */ jsxs15("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2921
- intl.formatMessage({
2922
- id: "login.2fa.go-back"
2923
- }),
2924
- " ",
2925
- /* @__PURE__ */ jsx34(
2926
- "a",
2927
- {
2928
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
2929
- href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
2930
- "data-testid": (
2931
- // Only add the test-id when the logout link has loaded.
2932
- didLoadLogout ? "ory/screen/login/action/logout" : void 0
2933
- ),
2934
- children: intl.formatMessage({
2935
- id: !didLoadLogout || logout ? "login.logout-button" : "login.2fa.go-back.link"
2936
- })
2937
- }
2938
- )
2939
- ] });
2997
+ if (shouldShowLogoutButton(flow, formState, authMethods)) {
2998
+ return /* @__PURE__ */ jsx35(LogoutButton, { returnTo });
2940
2999
  }
2941
3000
  return /* @__PURE__ */ jsxs15(Fragment8, { children: [
2942
3001
  formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ jsxs15("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
@@ -2945,7 +3004,7 @@ function LoginCardFooter() {
2945
3004
  defaultMessage: "No account?"
2946
3005
  }),
2947
3006
  " ",
2948
- /* @__PURE__ */ jsx34(
3007
+ /* @__PURE__ */ jsx35(
2949
3008
  "a",
2950
3009
  {
2951
3010
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2958,7 +3017,22 @@ function LoginCardFooter() {
2958
3017
  }
2959
3018
  )
2960
3019
  ] }),
2961
- authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ jsx34("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx34(
3020
+ authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx35(
3021
+ "button",
3022
+ {
3023
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3024
+ onClick: () => {
3025
+ dispatchFormState({
3026
+ type: "action_method_selector"
3027
+ });
3028
+ },
3029
+ "data-testid": "ory/screen/login/mfa/action/selectMethod",
3030
+ children: intl.formatMessage({
3031
+ id: "login.2fa.method.go-back"
3032
+ })
3033
+ }
3034
+ ) }),
3035
+ authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ jsx35("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx35(
2962
3036
  "a",
2963
3037
  {
2964
3038
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2971,9 +3045,35 @@ function LoginCardFooter() {
2971
3045
  ) })
2972
3046
  ] });
2973
3047
  }
3048
+ function LogoutButton({ returnTo }) {
3049
+ const config = useOryConfiguration2();
3050
+ const intl = useIntl9();
3051
+ const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
3052
+ return /* @__PURE__ */ jsxs15("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3053
+ intl.formatMessage({
3054
+ id: "login.2fa.go-back"
3055
+ }),
3056
+ " ",
3057
+ /* @__PURE__ */ jsx35(
3058
+ "a",
3059
+ {
3060
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3061
+ href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
3062
+ "data-testid": (
3063
+ // Only add the test-id when the logout link has loaded.
3064
+ didLoadLogout ? "ory/screen/login/action/logout" : void 0
3065
+ ),
3066
+ children: intl.formatMessage({
3067
+ id: !didLoadLogout || logout ? "login.logout-button" : "login.2fa.go-back.link"
3068
+ })
3069
+ }
3070
+ )
3071
+ ] });
3072
+ }
2974
3073
  function RegistrationCardFooter() {
2975
3074
  const intl = useIntl9();
2976
- const { config, flow, formState } = useOryFlow3();
3075
+ const { flow, formState } = useOryFlow3();
3076
+ const config = useOryConfiguration2();
2977
3077
  const visibleGroups = useNodeGroupsWithVisibleNodes(flow.ui.nodes);
2978
3078
  const authMethodBlocks = toAuthMethodPickerOptions(visibleGroups);
2979
3079
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
@@ -2982,11 +3082,12 @@ function RegistrationCardFooter() {
2982
3082
  if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
2983
3083
  return null;
2984
3084
  }
2985
- return /* @__PURE__ */ jsx34("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ jsx34(
3085
+ return /* @__PURE__ */ jsx35("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ jsx35(
2986
3086
  "a",
2987
3087
  {
2988
3088
  className: "font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",
2989
3089
  href: "",
3090
+ "data-testid": "ory/screen/registration/action/selectMethod",
2990
3091
  children: intl.formatMessage({
2991
3092
  id: "card.footer.select-another-method",
2992
3093
  defaultMessage: "Select another method"
@@ -3001,7 +3102,7 @@ function RegistrationCardFooter() {
3001
3102
  defaultMessage: "Already have an account?"
3002
3103
  }),
3003
3104
  " ",
3004
- /* @__PURE__ */ jsx34(
3105
+ /* @__PURE__ */ jsx35(
3005
3106
  "a",
3006
3107
  {
3007
3108
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -3036,20 +3137,20 @@ function ConsentCardFooter({ flow }) {
3036
3137
  "Make sure you trust ",
3037
3138
  (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
3038
3139
  ] }),
3039
- /* @__PURE__ */ jsx34("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
3140
+ /* @__PURE__ */ jsx35("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
3040
3141
  ] }),
3041
- rememberNode && /* @__PURE__ */ jsx34(
3142
+ rememberNode && /* @__PURE__ */ jsx35(
3042
3143
  Node2.Checkbox,
3043
3144
  {
3044
3145
  attributes: rememberNode.attributes,
3045
3146
  node: rememberNode
3046
3147
  }
3047
3148
  ),
3048
- /* @__PURE__ */ jsx34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3149
+ /* @__PURE__ */ jsx35("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3049
3150
  (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
3050
3151
  ).map((n) => {
3051
3152
  const attributes = n.attributes;
3052
- return /* @__PURE__ */ jsx34(
3153
+ return /* @__PURE__ */ jsx35(
3053
3154
  Node2.Button,
3054
3155
  {
3055
3156
  node: n,
@@ -3316,18 +3417,8 @@ import {
3316
3417
  FlowType as FlowType12,
3317
3418
  isUiNodeInputAttributes as isUiNodeInputAttributes8
3318
3419
  } from "@ory/client-fetch";
3319
- import { useOryFlow as useOryFlow4 } from "@ory/elements-react";
3320
-
3321
- // src/theme/default/assets/icons/arrow-left.svg
3322
- import * as React3 from "react";
3323
- import { jsx as jsx35 } from "react/jsx-runtime";
3324
- var SvgArrowLeft = (props) => {
3325
- var _a, _b;
3326
- return /* @__PURE__ */ jsx35("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__ */ jsx35("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
3327
- };
3328
- var arrow_left_default = SvgArrowLeft;
3329
-
3330
- // src/theme/default/components/card/current-identifier-button.tsx
3420
+ import { useOryConfiguration as useOryConfiguration3, useOryFlow as useOryFlow4 } from "@ory/elements-react";
3421
+ import { useEffect as useEffect3, useState as useState4 } from "react";
3331
3422
  import { useFormContext as useFormContext12 } from "react-hook-form";
3332
3423
 
3333
3424
  // src/theme/default/utils/attributes.ts
@@ -3355,14 +3446,23 @@ function omitInputAttributes({
3355
3446
  ]);
3356
3447
  }
3357
3448
 
3449
+ // src/theme/default/assets/icons/arrow-left.svg
3450
+ import * as React3 from "react";
3451
+ import { jsx as jsx36 } from "react/jsx-runtime";
3452
+ var SvgArrowLeft = (props) => {
3453
+ var _a, _b;
3454
+ return /* @__PURE__ */ jsx36("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__ */ jsx36("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
3455
+ };
3456
+ var arrow_left_default = SvgArrowLeft;
3457
+
3358
3458
  // src/theme/default/components/card/current-identifier-button.tsx
3359
- import { useEffect as useEffect3, useState as useState4 } from "react";
3360
- import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
3459
+ import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
3361
3460
  function DefaultCurrentIdentifierButton() {
3362
3461
  var _a;
3363
- const { flow, flowType, config, formState } = useOryFlow4();
3462
+ const { flow, flowType, formState } = useOryFlow4();
3364
3463
  const { setValue, getValues, watch } = useFormContext12();
3365
3464
  const [turnstileResponse, setTurnstileResponse] = useState4();
3465
+ const config = useOryConfiguration3();
3366
3466
  const ui = flow.ui;
3367
3467
  const captchaVerificationValue = (_a = watch("transient_payload")) == null ? void 0 : _a.captcha_turnstile_response;
3368
3468
  useEffect3(() => {
@@ -3398,7 +3498,7 @@ function DefaultCurrentIdentifierButton() {
3398
3498
  if (attrs.name === "transient_payload.captcha_turnstile_response" && turnstileResponse) {
3399
3499
  value = turnstileResponse;
3400
3500
  }
3401
- return /* @__PURE__ */ jsx36(
3501
+ return /* @__PURE__ */ jsx37(
3402
3502
  "input",
3403
3503
  {
3404
3504
  type: "hidden",
@@ -3408,7 +3508,7 @@ function DefaultCurrentIdentifierButton() {
3408
3508
  attrs.name
3409
3509
  );
3410
3510
  }),
3411
- /* @__PURE__ */ jsx36(
3511
+ /* @__PURE__ */ jsx37(
3412
3512
  "button",
3413
3513
  {
3414
3514
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border px-[11px] py-[5px] transition-colors border-button-identifier-border-border-default bg-button-identifier-background-default hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
@@ -3426,7 +3526,7 @@ function DefaultCurrentIdentifierButton() {
3426
3526
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3427
3527
  "data-testid": `ory/screen/${flowType}/action/restart`,
3428
3528
  children: /* @__PURE__ */ jsxs16("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3429
- /* @__PURE__ */ jsx36(
3529
+ /* @__PURE__ */ jsx37(
3430
3530
  arrow_left_default,
3431
3531
  {
3432
3532
  size: 16,
@@ -3434,13 +3534,13 @@ function DefaultCurrentIdentifierButton() {
3434
3534
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3435
3535
  }
3436
3536
  ),
3437
- /* @__PURE__ */ jsx36("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3537
+ /* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3438
3538
  ] })
3439
3539
  }
3440
3540
  )
3441
3541
  ] });
3442
3542
  }
3443
- return /* @__PURE__ */ jsx36(
3543
+ return /* @__PURE__ */ jsx37(
3444
3544
  "a",
3445
3545
  {
3446
3546
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border px-[11px] py-[5px] transition-colors border-button-identifier-border-border-default bg-button-identifier-background-default hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
@@ -3449,7 +3549,7 @@ function DefaultCurrentIdentifierButton() {
3449
3549
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3450
3550
  "data-testid": `ory/screen/${flowType}/action/restart`,
3451
3551
  children: /* @__PURE__ */ jsxs16("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3452
- /* @__PURE__ */ jsx36(
3552
+ /* @__PURE__ */ jsx37(
3453
3553
  arrow_left_default,
3454
3554
  {
3455
3555
  size: 16,
@@ -3457,7 +3557,7 @@ function DefaultCurrentIdentifierButton() {
3457
3557
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3458
3558
  }
3459
3559
  ),
3460
- /* @__PURE__ */ jsx36("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3560
+ /* @__PURE__ */ jsx37("span", { className: "overflow-hidden text-ellipsis text-nowrap text-sm font-medium text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
3461
3561
  ] })
3462
3562
  }
3463
3563
  );
@@ -3499,7 +3599,7 @@ function guessRegistrationBackButton(uiNodes) {
3499
3599
  }
3500
3600
 
3501
3601
  // src/theme/default/components/card/header.tsx
3502
- import { jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
3602
+ import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
3503
3603
  function InnerCardHeader({
3504
3604
  title,
3505
3605
  text,
@@ -3507,10 +3607,10 @@ function InnerCardHeader({
3507
3607
  }) {
3508
3608
  const { Card } = useComponents4();
3509
3609
  return /* @__PURE__ */ jsxs17("header", { className: "flex flex-col gap-8 antialiased", children: [
3510
- /* @__PURE__ */ jsx37(Card.Logo, {}),
3610
+ /* @__PURE__ */ jsx38(Card.Logo, {}),
3511
3611
  /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
3512
- /* @__PURE__ */ jsx37("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3513
- /* @__PURE__ */ jsx37(
3612
+ /* @__PURE__ */ jsx38("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3613
+ /* @__PURE__ */ jsx38(
3514
3614
  "p",
3515
3615
  {
3516
3616
  className: "leading-normal text-interface-foreground-default-secondary",
@@ -3518,7 +3618,7 @@ function InnerCardHeader({
3518
3618
  children: text
3519
3619
  }
3520
3620
  ),
3521
- /* @__PURE__ */ jsx37(DefaultCurrentIdentifierButton, {})
3621
+ /* @__PURE__ */ jsx38(DefaultCurrentIdentifierButton, {})
3522
3622
  ] })
3523
3623
  ] });
3524
3624
  }
@@ -3528,44 +3628,40 @@ function DefaultCardHeader() {
3528
3628
  context.flow.ui,
3529
3629
  context
3530
3630
  );
3531
- return /* @__PURE__ */ jsx37(InnerCardHeader, { title, text: description, messageId });
3631
+ return /* @__PURE__ */ jsx38(InnerCardHeader, { title, text: description, messageId });
3532
3632
  }
3533
3633
 
3534
3634
  // src/theme/default/components/card/logo.tsx
3535
- import { useOryFlow as useOryFlow6 } from "@ory/elements-react";
3536
- import { jsx as jsx38 } from "react/jsx-runtime";
3635
+ import { useOryConfiguration as useOryConfiguration4 } from "@ory/elements-react";
3636
+ import { jsx as jsx39 } from "react/jsx-runtime";
3537
3637
  function DefaultCardLogo() {
3538
- var _a;
3539
- const flow = useOryFlow6();
3540
- if (flow.config.project.logo_light_url) {
3541
- return /* @__PURE__ */ jsx38(
3638
+ const config = useOryConfiguration4();
3639
+ if (config.project.logo_light_url) {
3640
+ return /* @__PURE__ */ jsx39(
3542
3641
  "img",
3543
3642
  {
3544
- src: flow.config.project.logo_light_url,
3643
+ src: config.project.logo_light_url,
3545
3644
  width: 100,
3546
3645
  height: 36,
3547
3646
  alt: "Logo"
3548
3647
  }
3549
3648
  );
3550
3649
  }
3551
- if (flow.config.logoUrl) {
3552
- return /* @__PURE__ */ jsx38("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
3553
- }
3554
- return /* @__PURE__ */ jsx38("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: (_a = flow.config.project.name) != null ? _a : flow.config.name });
3650
+ return /* @__PURE__ */ jsx39("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.project.name });
3555
3651
  }
3556
3652
 
3557
3653
  // src/theme/default/components/card/layout.tsx
3558
- import { jsx as jsx39 } from "react/jsx-runtime";
3654
+ import { jsx as jsx40 } from "react/jsx-runtime";
3559
3655
  function DefaultCardLayout({ children }) {
3560
- return /* @__PURE__ */ jsx39("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
3656
+ return /* @__PURE__ */ jsx40("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
3561
3657
  }
3562
3658
 
3563
3659
  // src/theme/default/components/card/index.tsx
3564
- import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
3660
+ import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
3565
3661
  function DefaultCard({ children }) {
3566
- return /* @__PURE__ */ jsx40("div", { className: "flex flex-1 sm:items-center justify-center font-sans items-start w-full sm:w-[480px] sm:max-w-[480px]", children: /* @__PURE__ */ jsxs18("div", { className: "relative grid grid-cols-1 gap-8 sm:rounded-cards sm:border border-form-border-default bg-form-background-default px-8 py-12 sm:px-12 sm:py-14 border-b w-full", children: [
3662
+ return /* @__PURE__ */ jsx41("div", { className: "flex flex-1 sm:items-center justify-center font-sans items-start w-full sm:w-[480px] sm:max-w-[480px]", children: /* @__PURE__ */ jsxs18("div", { className: "relative grid grid-cols-1 gap-8 sm:rounded-cards sm:border border-form-border-default bg-form-background-default px-8 py-12 sm:px-12 sm:py-14 border-b w-full", children: [
3567
3663
  children,
3568
- /* @__PURE__ */ jsx40(Badge, {})
3664
+ /* @__PURE__ */ jsx41(Badge, {})
3569
3665
  ] }) });
3570
3666
  }
3571
3667
 
@@ -3581,14 +3677,14 @@ import { useIntl as useIntl12 } from "react-intl";
3581
3677
  import {
3582
3678
  messageTestId as messageTestId2,
3583
3679
  uiTextToFormattedMessage as uiTextToFormattedMessage3,
3584
- useOryFlow as useOryFlow8
3680
+ useOryFlow as useOryFlow7
3585
3681
  } from "@ory/elements-react";
3586
3682
  import { FlowType as FlowType13 } from "@ory/client-fetch";
3587
3683
 
3588
3684
  // src/theme/default/components/form/social.tsx
3589
3685
  import {
3590
3686
  uiTextToFormattedMessage as uiTextToFormattedMessage2,
3591
- useOryFlow as useOryFlow7
3687
+ useOryFlow as useOryFlow6
3592
3688
  } from "@ory/elements-react";
3593
3689
  import { useEffect as useEffect4 } from "react";
3594
3690
  import { useFormContext as useFormContext13 } from "react-hook-form";
@@ -3597,45 +3693,45 @@ import { useDebounceValue } from "usehooks-ts";
3597
3693
 
3598
3694
  // src/theme/default/provider-logos/apple.svg
3599
3695
  import * as React4 from "react";
3600
- import { jsx as jsx41 } from "react/jsx-runtime";
3696
+ import { jsx as jsx42 } from "react/jsx-runtime";
3601
3697
  var SvgApple = (props) => {
3602
3698
  var _a, _b;
3603
- return /* @__PURE__ */ jsx41("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__ */ jsx41("path", { fill: "#283544", d: "M27.734 11.55c-.134.078-3.317 1.724-3.317 5.374.15 4.162 4.017 5.621 4.083 5.621-.066.078-.584 1.988-2.116 3.991C25.167 28.261 23.817 30 21.767 30c-1.95 0-2.65-1.15-4.9-1.15-2.416 0-3.1 1.15-4.95 1.15-2.05 0-3.5-1.832-4.782-3.541-1.667-2.236-3.083-5.746-3.133-9.116-.034-1.786.334-3.54 1.266-5.032 1.317-2.081 3.667-3.494 6.233-3.54 1.966-.063 3.716 1.257 4.916 1.257 1.15 0 3.3-1.258 5.733-1.258 1.05.001 3.85.296 5.584 2.78M16.25 8.414c-.35-1.631.616-3.262 1.516-4.302C18.917 2.854 20.734 2 22.3 2c.1 1.63-.534 3.23-1.666 4.395-1.017 1.258-2.767 2.205-4.383 2.019" }) });
3699
+ return /* @__PURE__ */ jsx42("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__ */ jsx42("path", { fill: "#283544", d: "M27.734 11.55c-.134.078-3.317 1.724-3.317 5.374.15 4.162 4.017 5.621 4.083 5.621-.066.078-.584 1.988-2.116 3.991C25.167 28.261 23.817 30 21.767 30c-1.95 0-2.65-1.15-4.9-1.15-2.416 0-3.1 1.15-4.95 1.15-2.05 0-3.5-1.832-4.782-3.541-1.667-2.236-3.083-5.746-3.133-9.116-.034-1.786.334-3.54 1.266-5.032 1.317-2.081 3.667-3.494 6.233-3.54 1.966-.063 3.716 1.257 4.916 1.257 1.15 0 3.3-1.258 5.733-1.258 1.05.001 3.85.296 5.584 2.78M16.25 8.414c-.35-1.631.616-3.262 1.516-4.302C18.917 2.854 20.734 2 22.3 2c.1 1.63-.534 3.23-1.666 4.395-1.017 1.258-2.767 2.205-4.383 2.019" }) });
3604
3700
  };
3605
3701
  var apple_default = SvgApple;
3606
3702
 
3607
3703
  // src/theme/default/provider-logos/auth0.svg
3608
3704
  import * as React5 from "react";
3609
- import { jsx as jsx42 } from "react/jsx-runtime";
3705
+ import { jsx as jsx43 } from "react/jsx-runtime";
3610
3706
  var SvgAuth0 = (props) => {
3611
3707
  var _a, _b;
3612
- return /* @__PURE__ */ jsx42("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", 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__ */ jsx42("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
3708
+ return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", 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__ */ jsx43("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
3613
3709
  };
3614
3710
  var auth0_default = SvgAuth0;
3615
3711
 
3616
3712
  // src/theme/default/provider-logos/discord.svg
3617
3713
  import * as React6 from "react";
3618
- import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3714
+ import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3619
3715
  var SvgDiscord = (props) => {
3620
3716
  var _a, _b;
3621
3717
  return /* @__PURE__ */ jsxs19("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: [
3622
- /* @__PURE__ */ jsx43("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
3623
- /* @__PURE__ */ jsx43("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
3718
+ /* @__PURE__ */ jsx44("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
3719
+ /* @__PURE__ */ jsx44("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
3624
3720
  ] });
3625
3721
  };
3626
3722
  var discord_default = SvgDiscord;
3627
3723
 
3628
3724
  // src/theme/default/provider-logos/facebook.svg
3629
3725
  import * as React7 from "react";
3630
- import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
3726
+ import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
3631
3727
  var SvgFacebook = (props) => {
3632
3728
  var _a, _b;
3633
3729
  return /* @__PURE__ */ jsxs20("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: [
3634
- /* @__PURE__ */ jsx44("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3635
- /* @__PURE__ */ jsx44("path", { fill: "#fff", d: "m21.214 20.282.622-3.952h-3.89v-2.563c0-1.081.542-2.136 2.284-2.136H22V8.267S20.395 8 18.86 8c-3.205 0-5.298 1.893-5.298 5.318v3.012H10v3.952h3.562v9.552q1.073.165 2.191.166 1.12 0 2.192-.166v-9.552z" }),
3636
- /* @__PURE__ */ jsx44("defs", { children: /* @__PURE__ */ jsxs20("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
3637
- /* @__PURE__ */ jsx44("stop", { stopColor: "#18ACFE" }),
3638
- /* @__PURE__ */ jsx44("stop", { offset: 1, stopColor: "#0163E0" })
3730
+ /* @__PURE__ */ jsx45("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3731
+ /* @__PURE__ */ jsx45("path", { fill: "#fff", d: "m21.214 20.282.622-3.952h-3.89v-2.563c0-1.081.542-2.136 2.284-2.136H22V8.267S20.395 8 18.86 8c-3.205 0-5.298 1.893-5.298 5.318v3.012H10v3.952h3.562v9.552q1.073.165 2.191.166 1.12 0 2.192-.166v-9.552z" }),
3732
+ /* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsxs20("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
3733
+ /* @__PURE__ */ jsx45("stop", { stopColor: "#18ACFE" }),
3734
+ /* @__PURE__ */ jsx45("stop", { offset: 1, stopColor: "#0163E0" })
3639
3735
  ] }) })
3640
3736
  ] });
3641
3737
  };
@@ -3643,111 +3739,111 @@ var facebook_default = SvgFacebook;
3643
3739
 
3644
3740
  // src/theme/default/provider-logos/github.svg
3645
3741
  import * as React8 from "react";
3646
- import { jsx as jsx45 } from "react/jsx-runtime";
3742
+ import { jsx as jsx46 } from "react/jsx-runtime";
3647
3743
  var SvgGithub = (props) => {
3648
3744
  var _a, _b;
3649
- return /* @__PURE__ */ jsx45("svg", { xmlns: "http://www.w3.org/2000/svg", 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__ */ jsx45("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
3745
+ return /* @__PURE__ */ jsx46("svg", { xmlns: "http://www.w3.org/2000/svg", 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__ */ jsx46("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
3650
3746
  };
3651
3747
  var github_default = SvgGithub;
3652
3748
 
3653
3749
  // src/theme/default/provider-logos/gitlab.svg
3654
3750
  import * as React9 from "react";
3655
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
3751
+ import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
3656
3752
  var SvgGitlab = (props) => {
3657
3753
  var _a, _b;
3658
3754
  return /* @__PURE__ */ jsxs21("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: [
3659
- /* @__PURE__ */ jsx46("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
3660
- /* @__PURE__ */ jsx46("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
3661
- /* @__PURE__ */ jsx46("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
3662
- /* @__PURE__ */ jsx46("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
3755
+ /* @__PURE__ */ jsx47("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
3756
+ /* @__PURE__ */ jsx47("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
3757
+ /* @__PURE__ */ jsx47("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
3758
+ /* @__PURE__ */ jsx47("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
3663
3759
  ] });
3664
3760
  };
3665
3761
  var gitlab_default = SvgGitlab;
3666
3762
 
3667
3763
  // src/theme/default/provider-logos/google.svg
3668
3764
  import * as React10 from "react";
3669
- import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
3765
+ import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
3670
3766
  var SvgGoogle = (props) => {
3671
3767
  var _a, _b;
3672
3768
  return /* @__PURE__ */ jsxs22("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: [
3673
- /* @__PURE__ */ jsx47("path", { fill: "#4285F4", d: "M30.001 16.31c0-1.15-.095-1.99-.301-2.861H16.287v5.195h7.873c-.159 1.291-1.016 3.236-2.92 4.542l-.027.174 4.24 3.22.294.029c2.699-2.443 4.254-6.036 4.254-10.298" }),
3674
- /* @__PURE__ */ jsx47("path", { fill: "#34A853", d: "M16.286 30c3.857 0 7.095-1.244 9.46-3.391l-4.507-3.423c-1.207.825-2.826 1.4-4.953 1.4A8.58 8.58 0 0 1 8.16 18.77l-.167.014-4.41 3.344-.058.157C5.874 26.858 10.7 30 16.286 30" }),
3675
- /* @__PURE__ */ jsx47("path", { fill: "#FBBC05", d: "M8.16 18.769a8.5 8.5 0 0 1-.476-2.77c0-.964.174-1.897.46-2.768l-.008-.185-4.465-3.399-.146.068A13.8 13.8 0 0 0 2.001 16c0 2.256.556 4.387 1.524 6.284z" }),
3676
- /* @__PURE__ */ jsx47("path", { fill: "#EB4335", d: "M16.286 7.413c2.683 0 4.492 1.136 5.524 2.085l4.032-3.858C23.366 3.384 20.143 2 16.286 2 10.7 2 5.874 5.142 3.524 9.715l4.62 3.516c1.158-3.375 4.365-5.818 8.142-5.818" })
3769
+ /* @__PURE__ */ jsx48("path", { fill: "#4285F4", d: "M30.001 16.31c0-1.15-.095-1.99-.301-2.861H16.287v5.195h7.873c-.159 1.291-1.016 3.236-2.92 4.542l-.027.174 4.24 3.22.294.029c2.699-2.443 4.254-6.036 4.254-10.298" }),
3770
+ /* @__PURE__ */ jsx48("path", { fill: "#34A853", d: "M16.286 30c3.857 0 7.095-1.244 9.46-3.391l-4.507-3.423c-1.207.825-2.826 1.4-4.953 1.4A8.58 8.58 0 0 1 8.16 18.77l-.167.014-4.41 3.344-.058.157C5.874 26.858 10.7 30 16.286 30" }),
3771
+ /* @__PURE__ */ jsx48("path", { fill: "#FBBC05", d: "M8.16 18.769a8.5 8.5 0 0 1-.476-2.77c0-.964.174-1.897.46-2.768l-.008-.185-4.465-3.399-.146.068A13.8 13.8 0 0 0 2.001 16c0 2.256.556 4.387 1.524 6.284z" }),
3772
+ /* @__PURE__ */ jsx48("path", { fill: "#EB4335", d: "M16.286 7.413c2.683 0 4.492 1.136 5.524 2.085l4.032-3.858C23.366 3.384 20.143 2 16.286 2 10.7 2 5.874 5.142 3.524 9.715l4.62 3.516c1.158-3.375 4.365-5.818 8.142-5.818" })
3677
3773
  ] });
3678
3774
  };
3679
3775
  var google_default = SvgGoogle;
3680
3776
 
3681
3777
  // src/theme/default/provider-logos/linkedin.svg
3682
3778
  import * as React11 from "react";
3683
- import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
3779
+ import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
3684
3780
  var SvgLinkedin = (props) => {
3685
3781
  var _a, _b;
3686
3782
  return /* @__PURE__ */ jsxs23("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: [
3687
- /* @__PURE__ */ jsx48("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3688
- /* @__PURE__ */ jsx48("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
3783
+ /* @__PURE__ */ jsx49("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3784
+ /* @__PURE__ */ jsx49("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
3689
3785
  ] });
3690
3786
  };
3691
3787
  var linkedin_default = SvgLinkedin;
3692
3788
 
3693
3789
  // src/theme/default/provider-logos/microsoft.svg
3694
3790
  import * as React12 from "react";
3695
- import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
3791
+ import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
3696
3792
  var SvgMicrosoft = (props) => {
3697
3793
  var _a, _b;
3698
3794
  return /* @__PURE__ */ jsxs24("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", 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: [
3699
- /* @__PURE__ */ jsx49("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3700
- /* @__PURE__ */ jsx49("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3701
- /* @__PURE__ */ jsx49("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3702
- /* @__PURE__ */ jsx49("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3795
+ /* @__PURE__ */ jsx50("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3796
+ /* @__PURE__ */ jsx50("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3797
+ /* @__PURE__ */ jsx50("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3798
+ /* @__PURE__ */ jsx50("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3703
3799
  ] });
3704
3800
  };
3705
3801
  var microsoft_default = SvgMicrosoft;
3706
3802
 
3707
3803
  // src/theme/default/provider-logos/slack.svg
3708
3804
  import * as React13 from "react";
3709
- import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
3805
+ import { jsx as jsx51, jsxs as jsxs25 } from "react/jsx-runtime";
3710
3806
  var SvgSlack = (props) => {
3711
3807
  var _a, _b;
3712
3808
  return /* @__PURE__ */ jsxs25("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: [
3713
- /* @__PURE__ */ jsx50("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
3714
- /* @__PURE__ */ jsx50("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
3715
- /* @__PURE__ */ jsx50("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
3716
- /* @__PURE__ */ jsx50("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
3809
+ /* @__PURE__ */ jsx51("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
3810
+ /* @__PURE__ */ jsx51("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
3811
+ /* @__PURE__ */ jsx51("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
3812
+ /* @__PURE__ */ jsx51("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
3717
3813
  ] });
3718
3814
  };
3719
3815
  var slack_default = SvgSlack;
3720
3816
 
3721
3817
  // src/theme/default/provider-logos/spotify.svg
3722
3818
  import * as React14 from "react";
3723
- import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
3819
+ import { jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
3724
3820
  var SvgSpotify = (props) => {
3725
3821
  var _a, _b;
3726
3822
  return /* @__PURE__ */ jsxs26("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: [
3727
- /* @__PURE__ */ jsx51("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3728
- /* @__PURE__ */ jsx51("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
3823
+ /* @__PURE__ */ jsx52("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3824
+ /* @__PURE__ */ jsx52("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
3729
3825
  ] });
3730
3826
  };
3731
3827
  var spotify_default = SvgSpotify;
3732
3828
 
3733
3829
  // src/theme/default/provider-logos/yandex.svg
3734
3830
  import * as React15 from "react";
3735
- import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
3831
+ import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
3736
3832
  var SvgYandex = (props) => {
3737
3833
  var _a, _b;
3738
3834
  return /* @__PURE__ */ jsxs27("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: [
3739
- /* @__PURE__ */ jsx52("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3740
- /* @__PURE__ */ jsx52("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
3835
+ /* @__PURE__ */ jsx53("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3836
+ /* @__PURE__ */ jsx53("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
3741
3837
  ] });
3742
3838
  };
3743
3839
  var yandex_default = SvgYandex;
3744
3840
 
3745
3841
  // src/theme/default/provider-logos/x.svg
3746
3842
  import * as React16 from "react";
3747
- import { jsx as jsx53 } from "react/jsx-runtime";
3843
+ import { jsx as jsx54 } from "react/jsx-runtime";
3748
3844
  var SvgX = (props) => {
3749
3845
  var _a, _b;
3750
- return /* @__PURE__ */ jsx53("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__ */ jsx53("path", { fill: "#0F172A", d: "M24.122 3h4.292L18.99 13.73 30 28.285h-8.64l-6.764-8.845-7.744 8.845H2.56l9.983-11.476L2 3h8.854l6.112 8.08zM22.62 25.766h2.379L9.604 5.426H7.048z" }) });
3846
+ return /* @__PURE__ */ jsx54("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__ */ jsx54("path", { fill: "#0F172A", d: "M24.122 3h4.292L18.99 13.73 30 28.285h-8.64l-6.764-8.845-7.744 8.845H2.56l9.983-11.476L2 3h8.854l6.112 8.08zM22.62 25.766h2.379L9.604 5.426H7.048z" }) });
3751
3847
  };
3752
3848
  var x_default = SvgX;
3753
3849
 
@@ -3770,7 +3866,7 @@ var logos = {
3770
3866
  var provider_logos_default = logos;
3771
3867
 
3772
3868
  // src/theme/default/components/form/spinner.tsx
3773
- import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
3869
+ import { jsx as jsx55, jsxs as jsxs28 } from "react/jsx-runtime";
3774
3870
  function Spinner({ className }) {
3775
3871
  return /* @__PURE__ */ jsxs28(
3776
3872
  "svg",
@@ -3785,7 +3881,7 @@ function Spinner({ className }) {
3785
3881
  fill: "none",
3786
3882
  xmlns: "http://www.w3.org/2000/svg",
3787
3883
  children: [
3788
- /* @__PURE__ */ jsx54("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx54(
3884
+ /* @__PURE__ */ jsx55("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx55(
3789
3885
  "path",
3790
3886
  {
3791
3887
  d: "M23.364 10.6362C22.1053 9.37751 20.5016 8.52034 18.7558 8.17307C17.01 7.82581 15.2004 8.00404 13.5559 8.68523C11.9113 9.36641 10.5057 10.52 9.51678 12C8.52784 13.4801 8 15.2201 8 17.0001C8 18.7802 8.52784 20.5202 9.51678 22.0003C10.5057 23.4803 11.9113 24.6339 13.5559 25.3151C15.2004 25.9962 17.01 26.1745 18.7558 25.8272C20.5016 25.4799 22.1053 24.6228 23.364 23.3641",
@@ -3794,7 +3890,7 @@ function Spinner({ className }) {
3794
3890
  strokeLinejoin: "round"
3795
3891
  }
3796
3892
  ) }),
3797
- /* @__PURE__ */ jsx54("defs", { children: /* @__PURE__ */ jsx54("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx54(
3893
+ /* @__PURE__ */ jsx55("defs", { children: /* @__PURE__ */ jsx55("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx55(
3798
3894
  "rect",
3799
3895
  {
3800
3896
  width: "24",
@@ -3810,7 +3906,7 @@ function Spinner({ className }) {
3810
3906
 
3811
3907
  // src/theme/default/components/form/social.tsx
3812
3908
  import { UiNodeGroupEnum as UiNodeGroupEnum16 } from "@ory/client-fetch";
3813
- import { Fragment as Fragment9, jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
3909
+ import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs29 } from "react/jsx-runtime";
3814
3910
  function extractProvider(context) {
3815
3911
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
3816
3912
  return context.provider;
@@ -3829,7 +3925,7 @@ function DefaultButtonSocial({
3829
3925
  const { type: _ignoredType, name: _ignoredName, ...rest } = attributes;
3830
3926
  const {
3831
3927
  flow: { ui }
3832
- } = useOryFlow7();
3928
+ } = useOryFlow6();
3833
3929
  const [clicked, setClicked] = useDebounceValue(false, 100);
3834
3930
  const intl = useIntl11();
3835
3931
  const {
@@ -3865,21 +3961,21 @@ function DefaultButtonSocial({
3865
3961
  "aria-label": label,
3866
3962
  ...omitInputAttributes(rest),
3867
3963
  children: [
3868
- /* @__PURE__ */ jsx55("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx55(Logo, { size: 20 }) : /* @__PURE__ */ jsx55(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ jsx55(Spinner, { className: "size-5" }) }),
3964
+ /* @__PURE__ */ jsx56("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx56(Logo, { size: 20 }) : /* @__PURE__ */ jsx56(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ jsx56(Spinner, { className: "size-5" }) }),
3869
3965
  showLabel && node.meta.label ? /* @__PURE__ */ jsxs29(Fragment9, { children: [
3870
- /* @__PURE__ */ jsx55("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3871
- /* @__PURE__ */ jsx55("span", { className: "size-5 block" })
3966
+ /* @__PURE__ */ jsx56("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3967
+ /* @__PURE__ */ jsx56("span", { className: "size-5 block" })
3872
3968
  ] }) : null
3873
3969
  ]
3874
3970
  }
3875
3971
  );
3876
3972
  }
3877
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx55(DefaultButtonSocial, { ...props, logos: logos2 });
3973
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx56(DefaultButtonSocial, { ...props, logos: logos2 });
3878
3974
  function DefaultSocialButtonContainer({
3879
3975
  children,
3880
3976
  nodes
3881
3977
  }) {
3882
- return /* @__PURE__ */ jsx55(
3978
+ return /* @__PURE__ */ jsx56(
3883
3979
  "div",
3884
3980
  {
3885
3981
  className: cn("grid gap-3", {
@@ -3893,11 +3989,11 @@ function DefaultSocialButtonContainer({
3893
3989
  );
3894
3990
  }
3895
3991
  function GenericLogo({ label }) {
3896
- return /* @__PURE__ */ jsx55("span", { className: "flex rounded-buttons bg-button-social-background-generic-provider text-button-social-foreground-generic-provider border-button-social-border-generic-provider text-xs size-full items-center justify-center", children: label });
3992
+ return /* @__PURE__ */ jsx56("span", { className: "flex rounded-buttons bg-button-social-background-generic-provider text-button-social-foreground-generic-provider border-button-social-border-generic-provider text-xs size-full items-center justify-center", children: label });
3897
3993
  }
3898
3994
 
3899
3995
  // src/theme/default/components/form/index.tsx
3900
- import { jsx as jsx56 } from "react/jsx-runtime";
3996
+ import { jsx as jsx57 } from "react/jsx-runtime";
3901
3997
  function DefaultFormContainer({
3902
3998
  children,
3903
3999
  onSubmit,
@@ -3905,7 +4001,7 @@ function DefaultFormContainer({
3905
4001
  method,
3906
4002
  "data-testid": dataTestId
3907
4003
  }) {
3908
- return /* @__PURE__ */ jsx56(
4004
+ return /* @__PURE__ */ jsx57(
3909
4005
  "form",
3910
4006
  {
3911
4007
  "data-testid": dataTestId,
@@ -3919,11 +4015,11 @@ function DefaultFormContainer({
3919
4015
  );
3920
4016
  }
3921
4017
  function DefaultMessageContainer({ children }) {
3922
- const { flowType } = useOryFlow8();
4018
+ const { flowType } = useOryFlow7();
3923
4019
  if (!children || Array.isArray(children) && children.length === 0) {
3924
4020
  return null;
3925
4021
  }
3926
- return /* @__PURE__ */ jsx56(
4022
+ return /* @__PURE__ */ jsx57(
3927
4023
  "section",
3928
4024
  {
3929
4025
  className: cn(
@@ -3935,7 +4031,7 @@ function DefaultMessageContainer({ children }) {
3935
4031
  }
3936
4032
  function DefaultMessage({ message }) {
3937
4033
  const intl = useIntl12();
3938
- return /* @__PURE__ */ jsx56(
4034
+ return /* @__PURE__ */ jsx57(
3939
4035
  "span",
3940
4036
  {
3941
4037
  className: cn(
@@ -3955,60 +4051,60 @@ import { useIntl as useIntl13 } from "react-intl";
3955
4051
 
3956
4052
  // src/theme/default/assets/icons/code.svg
3957
4053
  import * as React17 from "react";
3958
- import { jsx as jsx57 } from "react/jsx-runtime";
4054
+ import { jsx as jsx58 } from "react/jsx-runtime";
3959
4055
  var SvgCode = (props) => {
3960
4056
  var _a, _b;
3961
- return /* @__PURE__ */ jsx57("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__ */ jsx57("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" }) });
4057
+ return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
3962
4058
  };
3963
4059
  var code_default = SvgCode;
3964
4060
 
3965
4061
  // src/theme/default/assets/icons/passkey.svg
3966
4062
  import * as React18 from "react";
3967
- import { jsx as jsx58 } from "react/jsx-runtime";
4063
+ import { jsx as jsx59 } from "react/jsx-runtime";
3968
4064
  var SvgPasskey = (props) => {
3969
4065
  var _a, _b;
3970
- return /* @__PURE__ */ jsx58("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__ */ jsx58("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" }) });
4066
+ return /* @__PURE__ */ jsx59("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx59("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
3971
4067
  };
3972
4068
  var passkey_default = SvgPasskey;
3973
4069
 
3974
4070
  // src/theme/default/assets/icons/password.svg
3975
4071
  import * as React19 from "react";
3976
- import { jsx as jsx59 } from "react/jsx-runtime";
4072
+ import { jsx as jsx60 } from "react/jsx-runtime";
3977
4073
  var SvgPassword = (props) => {
3978
4074
  var _a, _b;
3979
- return /* @__PURE__ */ jsx59("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__ */ jsx59("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" }) });
4075
+ return /* @__PURE__ */ jsx60("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx60("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
3980
4076
  };
3981
4077
  var password_default = SvgPassword;
3982
4078
 
3983
4079
  // src/theme/default/assets/icons/webauthn.svg
3984
4080
  import * as React20 from "react";
3985
- import { jsx as jsx60 } from "react/jsx-runtime";
4081
+ import { jsx as jsx61 } from "react/jsx-runtime";
3986
4082
  var SvgWebauthn = (props) => {
3987
4083
  var _a, _b;
3988
- return /* @__PURE__ */ jsx60("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__ */ jsx60("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" }) });
4084
+ return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
3989
4085
  };
3990
4086
  var webauthn_default = SvgWebauthn;
3991
4087
 
3992
4088
  // src/theme/default/assets/icons/totp.svg
3993
4089
  import * as React21 from "react";
3994
- import { jsx as jsx61 } from "react/jsx-runtime";
4090
+ import { jsx as jsx62 } from "react/jsx-runtime";
3995
4091
  var SvgTotp = (props) => {
3996
4092
  var _a, _b;
3997
- return /* @__PURE__ */ jsx61("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__ */ jsx61("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" }) });
4093
+ return /* @__PURE__ */ jsx62("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx62("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
3998
4094
  };
3999
4095
  var totp_default = SvgTotp;
4000
4096
 
4001
4097
  // src/theme/default/assets/icons/code-asterix.svg
4002
4098
  import * as React22 from "react";
4003
- import { jsx as jsx62 } from "react/jsx-runtime";
4099
+ import { jsx as jsx63 } from "react/jsx-runtime";
4004
4100
  var SvgCodeAsterix = (props) => {
4005
4101
  var _a, _b;
4006
- return /* @__PURE__ */ jsx62("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__ */ jsx62("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" }) });
4102
+ return /* @__PURE__ */ jsx63("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx63("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
4007
4103
  };
4008
4104
  var code_asterix_default = SvgCodeAsterix;
4009
4105
 
4010
4106
  // src/theme/default/components/card/list-item.tsx
4011
- import { jsx as jsx63, jsxs as jsxs30 } from "react/jsx-runtime";
4107
+ import { jsx as jsx64, jsxs as jsxs30 } from "react/jsx-runtime";
4012
4108
  function ListItem({
4013
4109
  icon: Icon,
4014
4110
  as,
@@ -4028,10 +4124,10 @@ function ListItem({
4028
4124
  className
4029
4125
  ),
4030
4126
  children: [
4031
- /* @__PURE__ */ jsx63("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx63(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4127
+ /* @__PURE__ */ jsx64("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx64(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4032
4128
  /* @__PURE__ */ jsxs30("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4033
- /* @__PURE__ */ jsx63("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4034
- /* @__PURE__ */ jsx63("span", { className: "text-interface-foreground-default-secondary", children: description })
4129
+ /* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4130
+ /* @__PURE__ */ jsx64("span", { className: "text-interface-foreground-default-secondary", children: description })
4035
4131
  ] }),
4036
4132
  children
4037
4133
  ]
@@ -4040,7 +4136,7 @@ function ListItem({
4040
4136
  }
4041
4137
 
4042
4138
  // src/theme/default/components/card/auth-method-list-item.tsx
4043
- import { jsx as jsx64 } from "react/jsx-runtime";
4139
+ import { jsx as jsx65 } from "react/jsx-runtime";
4044
4140
  var iconsMap = {
4045
4141
  code: code_default,
4046
4142
  passkey: passkey_default,
@@ -4059,7 +4155,7 @@ function DefaultAuthMethodListItem({
4059
4155
  var _a;
4060
4156
  const intl = useIntl13();
4061
4157
  const Icon = iconsMap[group] || null;
4062
- return /* @__PURE__ */ jsx64(
4158
+ return /* @__PURE__ */ jsx65(
4063
4159
  ListItem,
4064
4160
  {
4065
4161
  as: "button",
@@ -4087,7 +4183,7 @@ import { cva } from "class-variance-authority";
4087
4183
  import { useFormContext as useFormContext14 } from "react-hook-form";
4088
4184
  import { useIntl as useIntl14 } from "react-intl";
4089
4185
  import { useEffect as useEffect5, useState as useState5 } from "react";
4090
- import { jsx as jsx65, jsxs as jsxs31 } from "react/jsx-runtime";
4186
+ import { jsx as jsx66, jsxs as jsxs31 } from "react/jsx-runtime";
4091
4187
  var buttonStyles = cva(
4092
4188
  [
4093
4189
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -4160,8 +4256,8 @@ var DefaultButton = ({
4160
4256
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
4161
4257
  "data-loading": clicked,
4162
4258
  children: [
4163
- clicked ? /* @__PURE__ */ jsx65(Spinner, {}) : null,
4164
- label ? /* @__PURE__ */ jsx65("span", { children: uiTextToFormattedMessage4(label, intl) }) : ""
4259
+ clicked ? /* @__PURE__ */ jsx66(Spinner, {}) : null,
4260
+ label ? /* @__PURE__ */ jsx66("span", { children: uiTextToFormattedMessage4(label, intl) }) : ""
4165
4261
  ]
4166
4262
  }
4167
4263
  );
@@ -4179,7 +4275,7 @@ import { useIntl as useIntl16 } from "react-intl";
4179
4275
 
4180
4276
  // src/theme/default/components/ui/checkbox-label.tsx
4181
4277
  import { useIntl as useIntl15 } from "react-intl";
4182
- import { Fragment as Fragment10, jsx as jsx66 } from "react/jsx-runtime";
4278
+ import { Fragment as Fragment10, jsx as jsx67 } from "react/jsx-runtime";
4183
4279
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
4184
4280
  function computeLabelElements(labelText) {
4185
4281
  const elements = [];
@@ -4195,7 +4291,7 @@ function computeLabelElements(labelText) {
4195
4291
  elements.push(labelText.slice(lastIndex, matchStart));
4196
4292
  }
4197
4293
  elements.push(
4198
- /* @__PURE__ */ jsx66(
4294
+ /* @__PURE__ */ jsx67(
4199
4295
  "a",
4200
4296
  {
4201
4297
  href: url,
@@ -4220,13 +4316,13 @@ function CheckboxLabel({ label }) {
4220
4316
  return null;
4221
4317
  }
4222
4318
  const labelText = uiTextToFormattedMessage(label, intl);
4223
- return /* @__PURE__ */ jsx66(Fragment10, { children: computeLabelElements(labelText) });
4319
+ return /* @__PURE__ */ jsx67(Fragment10, { children: computeLabelElements(labelText) });
4224
4320
  }
4225
4321
 
4226
4322
  // src/theme/default/components/form/checkbox.tsx
4227
- import { jsx as jsx67, jsxs as jsxs32 } from "react/jsx-runtime";
4323
+ import { jsx as jsx68, jsxs as jsxs32 } from "react/jsx-runtime";
4228
4324
  function CheckboxSVG() {
4229
- return /* @__PURE__ */ jsx67(
4325
+ return /* @__PURE__ */ jsx68(
4230
4326
  "svg",
4231
4327
  {
4232
4328
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -4235,7 +4331,7 @@ function CheckboxSVG() {
4235
4331
  height: "16",
4236
4332
  viewBox: "0 0 16 16",
4237
4333
  fill: "none",
4238
- children: /* @__PURE__ */ jsx67(
4334
+ children: /* @__PURE__ */ jsx68(
4239
4335
  "path",
4240
4336
  {
4241
4337
  fillRule: "evenodd",
@@ -4257,7 +4353,7 @@ var DefaultCheckbox = ({
4257
4353
  const hasError = node.messages.some((m) => m.type === "error");
4258
4354
  return /* @__PURE__ */ jsxs32("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4259
4355
  /* @__PURE__ */ jsxs32("span", { className: "flex h-5 items-center", children: [
4260
- /* @__PURE__ */ jsx67(
4356
+ /* @__PURE__ */ jsx68(
4261
4357
  "input",
4262
4358
  {
4263
4359
  ...omitInputAttributes(attributes),
@@ -4267,14 +4363,15 @@ var DefaultCheckbox = ({
4267
4363
  "peer size-4 border appearance-none rounded-forms bg-checkbox-background-default border-checkbox-border-checkbox-border-default checked:bg-checkbox-background-checked checked:border-checkbox-border-checkbox-border-checked",
4268
4364
  hasError && "border-interface-border-validation-danger"
4269
4365
  ),
4366
+ "data-testid": `ory/form/node/input/${name}`,
4270
4367
  ...register(name)
4271
4368
  }
4272
4369
  ),
4273
- /* @__PURE__ */ jsx67(CheckboxSVG, {})
4370
+ /* @__PURE__ */ jsx68(CheckboxSVG, {})
4274
4371
  ] }),
4275
4372
  /* @__PURE__ */ jsxs32("span", { className: "flex flex-col", children: [
4276
- /* @__PURE__ */ jsx67("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx67(CheckboxLabel, { label }) }),
4277
- node.messages.map((message) => /* @__PURE__ */ jsx67(
4373
+ /* @__PURE__ */ jsx68("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx68(CheckboxLabel, { label }) }),
4374
+ node.messages.map((message) => /* @__PURE__ */ jsx68(
4278
4375
  "span",
4279
4376
  {
4280
4377
  className: cn(
@@ -4291,7 +4388,7 @@ var DefaultCheckbox = ({
4291
4388
  };
4292
4389
 
4293
4390
  // src/theme/default/components/form/group-container.tsx
4294
- import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
4391
+ import { useOryFlow as useOryFlow8 } from "@ory/elements-react";
4295
4392
  import { FlowType as FlowType14 } from "@ory/client-fetch";
4296
4393
 
4297
4394
  // src/util/childCounter.ts
@@ -4306,14 +4403,14 @@ function countRenderableChildren(children) {
4306
4403
  }
4307
4404
 
4308
4405
  // src/theme/default/components/form/group-container.tsx
4309
- import { jsx as jsx68 } from "react/jsx-runtime";
4406
+ import { jsx as jsx69 } from "react/jsx-runtime";
4310
4407
  function DefaultGroupContainer({ children }) {
4311
- const { flowType } = useOryFlow9();
4408
+ const { flowType } = useOryFlow8();
4312
4409
  const count = countRenderableChildren(children);
4313
4410
  if (count === 0) {
4314
4411
  return null;
4315
4412
  }
4316
- return /* @__PURE__ */ jsx68(
4413
+ return /* @__PURE__ */ jsx69(
4317
4414
  "div",
4318
4415
  {
4319
4416
  className: cn(
@@ -4326,16 +4423,16 @@ function DefaultGroupContainer({ children }) {
4326
4423
  }
4327
4424
 
4328
4425
  // src/theme/default/components/form/horizontal-divider.tsx
4329
- import { jsx as jsx69 } from "react/jsx-runtime";
4426
+ import { jsx as jsx70 } from "react/jsx-runtime";
4330
4427
  function DefaultHorizontalDivider() {
4331
- return /* @__PURE__ */ jsx69("hr", { className: "border-interface-border-default-primary" });
4428
+ return /* @__PURE__ */ jsx70("hr", { className: "border-interface-border-default-primary" });
4332
4429
  }
4333
4430
 
4334
4431
  // src/theme/default/components/form/image.tsx
4335
- import { jsx as jsx70 } from "react/jsx-runtime";
4432
+ import { jsx as jsx71 } from "react/jsx-runtime";
4336
4433
  function DefaultImage({ attributes, node }) {
4337
4434
  var _a;
4338
- return /* @__PURE__ */ jsx70("figure", { children: /* @__PURE__ */ jsx70(
4435
+ return /* @__PURE__ */ jsx71("figure", { children: /* @__PURE__ */ jsx71(
4339
4436
  "img",
4340
4437
  {
4341
4438
  ...omitInputAttributes(attributes),
@@ -4348,35 +4445,35 @@ function DefaultImage({ attributes, node }) {
4348
4445
  import { FlowType as FlowType15, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
4349
4446
  import {
4350
4447
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
4351
- useOryFlow as useOryFlow10
4448
+ useOryFlow as useOryFlow9
4352
4449
  } from "@ory/elements-react";
4353
- import { useRef as useRef2, useState as useState6 } from "react";
4450
+ import { useRef as useRef3, useState as useState6 } from "react";
4354
4451
  import { useFormContext as useFormContext16 } from "react-hook-form";
4355
4452
  import { useIntl as useIntl17 } from "react-intl";
4356
4453
 
4357
4454
  // src/theme/default/assets/icons/eye-off.svg
4358
4455
  import * as React23 from "react";
4359
- import { jsx as jsx71 } from "react/jsx-runtime";
4456
+ import { jsx as jsx72 } from "react/jsx-runtime";
4360
4457
  var SvgEyeOff = (props) => {
4361
4458
  var _a, _b;
4362
- return /* @__PURE__ */ jsx71("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__ */ jsx71("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" }) });
4459
+ return /* @__PURE__ */ jsx72("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx72("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
4363
4460
  };
4364
4461
  var eye_off_default = SvgEyeOff;
4365
4462
 
4366
4463
  // src/theme/default/assets/icons/eye.svg
4367
4464
  import * as React24 from "react";
4368
- import { jsx as jsx72, jsxs as jsxs33 } from "react/jsx-runtime";
4465
+ import { jsx as jsx73, jsxs as jsxs33 } from "react/jsx-runtime";
4369
4466
  var SvgEye = (props) => {
4370
4467
  var _a, _b;
4371
- return /* @__PURE__ */ jsx72("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs33("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4372
- /* @__PURE__ */ jsx72("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4373
- /* @__PURE__ */ jsx72("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4468
+ return /* @__PURE__ */ jsx73("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs33("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4469
+ /* @__PURE__ */ jsx73("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4470
+ /* @__PURE__ */ jsx73("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4374
4471
  ] }) });
4375
4472
  };
4376
4473
  var eye_default = SvgEye;
4377
4474
 
4378
4475
  // src/theme/default/components/form/input.tsx
4379
- import { jsx as jsx73, jsxs as jsxs34 } from "react/jsx-runtime";
4476
+ import { jsx as jsx74, jsxs as jsxs34 } from "react/jsx-runtime";
4380
4477
  var defaultInputClassName = cn(
4381
4478
  "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",
4382
4479
  "bg-input-background-default border-input-border-default text-input-foreground-primary",
@@ -4394,8 +4491,8 @@ var DefaultInput = ({
4394
4491
  const { register } = useFormContext16();
4395
4492
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
4396
4493
  const intl = useIntl17();
4397
- const { flowType } = useOryFlow10();
4398
- const inputRef = useRef2(null);
4494
+ const { flowType } = useOryFlow9();
4495
+ const inputRef = useRef3(null);
4399
4496
  const formattedLabel = label ? intl.formatMessage(
4400
4497
  {
4401
4498
  id: "input.placeholder",
@@ -4406,7 +4503,7 @@ var DefaultInput = ({
4406
4503
  }
4407
4504
  ) : "";
4408
4505
  if (rest.type === "hidden") {
4409
- return /* @__PURE__ */ jsx73(
4506
+ return /* @__PURE__ */ jsx74(
4410
4507
  "input",
4411
4508
  {
4412
4509
  ...omitInputAttributes(rest),
@@ -4429,7 +4526,7 @@ var DefaultInput = ({
4429
4526
  flowType === FlowType15.Settings && "max-w-[488px]"
4430
4527
  ),
4431
4528
  children: [
4432
- /* @__PURE__ */ jsx73(
4529
+ /* @__PURE__ */ jsx74(
4433
4530
  "input",
4434
4531
  {
4435
4532
  ...omitInputAttributes(rest),
@@ -4446,7 +4543,7 @@ var DefaultInput = ({
4446
4543
  ...restRegister
4447
4544
  }
4448
4545
  ),
4449
- rest.type === "password" && /* @__PURE__ */ jsx73(PasswordToggle, { inputRef })
4546
+ rest.type === "password" && /* @__PURE__ */ jsx74(PasswordToggle, { inputRef })
4450
4547
  ]
4451
4548
  }
4452
4549
  );
@@ -4461,14 +4558,14 @@ function PasswordToggle({
4461
4558
  inputRef.current.type = shown ? "password" : "text";
4462
4559
  }
4463
4560
  };
4464
- return /* @__PURE__ */ jsx73(
4561
+ return /* @__PURE__ */ jsx74(
4465
4562
  "button",
4466
4563
  {
4467
4564
  onClick: handleClick,
4468
4565
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
4469
4566
  type: "button",
4470
4567
  "aria-label": "Toggle password visibility",
4471
- children: shown ? /* @__PURE__ */ jsx73(eye_off_default, {}) : /* @__PURE__ */ jsx73(eye_default, {})
4568
+ children: shown ? /* @__PURE__ */ jsx74(eye_off_default, {}) : /* @__PURE__ */ jsx74(eye_default, {})
4472
4569
  }
4473
4570
  );
4474
4571
  }
@@ -4483,11 +4580,12 @@ import {
4483
4580
  messageTestId as messageTestId4,
4484
4581
  uiTextToFormattedMessage as uiTextToFormattedMessage7,
4485
4582
  useComponents as useComponents5,
4486
- useOryFlow as useOryFlow11
4583
+ useOryConfiguration as useOryConfiguration5,
4584
+ useOryFlow as useOryFlow10
4487
4585
  } from "@ory/elements-react";
4488
4586
  import { useFormContext as useFormContext17 } from "react-hook-form";
4489
4587
  import { useIntl as useIntl18 } from "react-intl";
4490
- import { jsx as jsx74, jsxs as jsxs35 } from "react/jsx-runtime";
4588
+ import { jsx as jsx75, jsxs as jsxs35 } from "react/jsx-runtime";
4491
4589
  function findResendNode(nodes) {
4492
4590
  return nodes.find(
4493
4591
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -4502,7 +4600,8 @@ function DefaultLabel({
4502
4600
  const intl = useIntl18();
4503
4601
  const label = getNodeLabel4(node);
4504
4602
  const { Message } = useComponents5();
4505
- const { config, flowType, flow } = useOryFlow11();
4603
+ const { flowType, flow } = useOryFlow10();
4604
+ const config = useOryConfiguration5();
4506
4605
  const { setValue, formState } = useFormContext17();
4507
4606
  const isPassword = attributes.type === "password";
4508
4607
  const resendNode = findResendNode(flow.ui.nodes);
@@ -4514,7 +4613,7 @@ function DefaultLabel({
4514
4613
  const fieldError = formState.errors[attributes.name];
4515
4614
  return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-1 antialiased", children: [
4516
4615
  label && /* @__PURE__ */ jsxs35("span", { className: "inline-flex justify-between", children: [
4517
- /* @__PURE__ */ jsx74(
4616
+ /* @__PURE__ */ jsx75(
4518
4617
  "label",
4519
4618
  {
4520
4619
  ...messageTestId4(label),
@@ -4526,7 +4625,7 @@ function DefaultLabel({
4526
4625
  }
4527
4626
  ),
4528
4627
  isPassword && config.project.recovery_enabled && flowType === FlowType16.Login && // TODO: make it possible to override with a custom component
4529
- /* @__PURE__ */ jsx74(
4628
+ /* @__PURE__ */ jsx75(
4530
4629
  "a",
4531
4630
  {
4532
4631
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -4537,7 +4636,7 @@ function DefaultLabel({
4537
4636
  })
4538
4637
  }
4539
4638
  ),
4540
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx74(
4639
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx75(
4541
4640
  "button",
4542
4641
  {
4543
4642
  type: "submit",
@@ -4550,8 +4649,8 @@ function DefaultLabel({
4550
4649
  )
4551
4650
  ] }),
4552
4651
  children,
4553
- node.messages.map((message) => /* @__PURE__ */ jsx74(Message.Content, { message }, message.id)),
4554
- fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx74(Message.Content, { message: fieldError })
4652
+ node.messages.map((message) => /* @__PURE__ */ jsx75(Message.Content, { message }, message.id)),
4653
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx75(Message.Content, { message: fieldError })
4555
4654
  ] });
4556
4655
  }
4557
4656
 
@@ -4562,11 +4661,11 @@ import {
4562
4661
  } from "@ory/elements-react";
4563
4662
  import { forwardRef } from "react";
4564
4663
  import { useIntl as useIntl19 } from "react-intl";
4565
- import { jsx as jsx75 } from "react/jsx-runtime";
4664
+ import { jsx as jsx76 } from "react/jsx-runtime";
4566
4665
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
4567
4666
  const intl = useIntl19();
4568
4667
  const label = getNodeLabel5(node);
4569
- return /* @__PURE__ */ jsx75(
4668
+ return /* @__PURE__ */ jsx76(
4570
4669
  "a",
4571
4670
  {
4572
4671
  ...omitInputAttributes(attributes),
@@ -4588,8 +4687,8 @@ import { useFormContext as useFormContext18 } from "react-hook-form";
4588
4687
  // src/theme/default/components/form/shadcn/otp-input.tsx
4589
4688
  import { OTPInput, OTPInputContext } from "input-otp";
4590
4689
  import * as React25 from "react";
4591
- import { jsx as jsx76, jsxs as jsxs36 } from "react/jsx-runtime";
4592
- var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx76(
4690
+ import { jsx as jsx77, jsxs as jsxs36 } from "react/jsx-runtime";
4691
+ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx77(
4593
4692
  OTPInput,
4594
4693
  {
4595
4694
  ref,
@@ -4602,7 +4701,7 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
4602
4701
  }
4603
4702
  ));
4604
4703
  InputOTP.displayName = "InputOTP";
4605
- var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx76("div", { ref, className: cn("flex items-center", className), ...props }));
4704
+ var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx77("div", { ref, className: cn("flex items-center", className), ...props }));
4606
4705
  InputOTPGroup.displayName = "InputOTPGroup";
4607
4706
  var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4608
4707
  const inputOTPContext = React25.useContext(OTPInputContext);
@@ -4619,8 +4718,8 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4619
4718
  ),
4620
4719
  ...props,
4621
4720
  children: [
4622
- /* @__PURE__ */ jsx76("span", { className: "inline-block size-4", children: char }),
4623
- hasFakeCaret && /* @__PURE__ */ jsx76("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx76("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4721
+ /* @__PURE__ */ jsx77("span", { className: "inline-block size-4", children: char }),
4722
+ hasFakeCaret && /* @__PURE__ */ jsx77("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx77("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4624
4723
  ]
4625
4724
  }
4626
4725
  );
@@ -4628,26 +4727,26 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4628
4727
  InputOTPSlot.displayName = "InputOTPSlot";
4629
4728
 
4630
4729
  // src/theme/default/components/form/pin-code-input.tsx
4631
- import { useOryFlow as useOryFlow12 } from "@ory/elements-react";
4730
+ import { useOryFlow as useOryFlow11 } from "@ory/elements-react";
4632
4731
  import { FlowType as FlowType17 } from "@ory/client-fetch";
4633
- import { jsx as jsx77 } from "react/jsx-runtime";
4732
+ import { jsx as jsx78 } from "react/jsx-runtime";
4634
4733
  var DefaultPinCodeInput = ({ attributes }) => {
4635
4734
  const { setValue, watch } = useFormContext18();
4636
4735
  const { maxlength, name } = attributes;
4637
4736
  const elements = maxlength != null ? maxlength : 6;
4638
- const { flowType } = useOryFlow12();
4737
+ const { flowType } = useOryFlow11();
4639
4738
  const handleInputChange = (v) => {
4640
4739
  setValue(name, v);
4641
4740
  };
4642
4741
  const value = watch(name);
4643
- return /* @__PURE__ */ jsx77(
4742
+ return /* @__PURE__ */ jsx78(
4644
4743
  InputOTP,
4645
4744
  {
4646
4745
  maxLength: maxlength != null ? maxlength : 6,
4647
4746
  onChange: handleInputChange,
4648
4747
  name,
4649
4748
  value,
4650
- children: /* @__PURE__ */ jsx77(
4749
+ children: /* @__PURE__ */ jsx78(
4651
4750
  InputOTPGroup,
4652
4751
  {
4653
4752
  className: cn(
@@ -4655,7 +4754,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
4655
4754
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4656
4755
  flowType === FlowType17.Settings && "max-w-[488px]"
4657
4756
  ),
4658
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx77(InputOTPSlot, { index }, index))
4757
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx78(InputOTPSlot, { index }, index))
4659
4758
  }
4660
4759
  )
4661
4760
  }
@@ -4663,13 +4762,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
4663
4762
  };
4664
4763
 
4665
4764
  // src/theme/default/components/form/section.tsx
4666
- import { jsx as jsx78, jsxs as jsxs37 } from "react/jsx-runtime";
4765
+ import { jsx as jsx79, jsxs as jsxs37 } from "react/jsx-runtime";
4667
4766
  var DefaultFormSection = ({
4668
4767
  children,
4669
4768
  nodes: _nodes,
4670
4769
  ...rest
4671
4770
  }) => {
4672
- return /* @__PURE__ */ jsx78(
4771
+ return /* @__PURE__ */ jsx79(
4673
4772
  "form",
4674
4773
  {
4675
4774
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -4685,8 +4784,8 @@ var DefaultFormSectionContent = ({
4685
4784
  }) => {
4686
4785
  return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
4687
4786
  /* @__PURE__ */ jsxs37("div", { className: "flex flex-col gap-2", children: [
4688
- /* @__PURE__ */ jsx78("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4689
- /* @__PURE__ */ jsx78("span", { className: "text-interface-foreground-default-secondary", children: description })
4787
+ /* @__PURE__ */ jsx79("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4788
+ /* @__PURE__ */ jsx79("span", { className: "text-interface-foreground-default-secondary", children: description })
4690
4789
  ] }),
4691
4790
  children
4692
4791
  ] });
@@ -4702,7 +4801,7 @@ var DefaultFormSectionFooter = ({
4702
4801
  "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"
4703
4802
  ),
4704
4803
  children: [
4705
- /* @__PURE__ */ jsx78("span", { children: text }),
4804
+ /* @__PURE__ */ jsx79("span", { children: text }),
4706
4805
  children
4707
4806
  ]
4708
4807
  }
@@ -4712,31 +4811,31 @@ var DefaultFormSectionFooter = ({
4712
4811
  // src/theme/default/components/form/text.tsx
4713
4812
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
4714
4813
  import { useIntl as useIntl20 } from "react-intl";
4715
- import { Fragment as Fragment11, jsx as jsx79, jsxs as jsxs38 } from "react/jsx-runtime";
4814
+ import { Fragment as Fragment11, jsx as jsx80, jsxs as jsxs38 } from "react/jsx-runtime";
4716
4815
  function DefaultText({ node, attributes }) {
4717
4816
  var _a;
4718
4817
  const intl = useIntl20();
4719
4818
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
4720
4819
  if (lookup) {
4721
4820
  return /* @__PURE__ */ jsxs38(Fragment11, { children: [
4722
- /* @__PURE__ */ jsx79("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
4723
- lookup.map((text, index) => /* @__PURE__ */ jsx79(
4821
+ /* @__PURE__ */ jsx80("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
4822
+ lookup.map((text, index) => /* @__PURE__ */ jsx80(
4724
4823
  "pre",
4725
4824
  {
4726
4825
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
4727
- children: /* @__PURE__ */ jsx79("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
4826
+ children: /* @__PURE__ */ jsx80("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
4728
4827
  },
4729
4828
  index
4730
4829
  ))
4731
4830
  ] });
4732
4831
  }
4733
- return /* @__PURE__ */ jsx79(Fragment11, { children: /* @__PURE__ */ jsxs38(
4832
+ return /* @__PURE__ */ jsx80(Fragment11, { children: /* @__PURE__ */ jsxs38(
4734
4833
  "p",
4735
4834
  {
4736
4835
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
4737
4836
  id: attributes.id,
4738
4837
  children: [
4739
- node.meta.label ? /* @__PURE__ */ jsx79("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
4838
+ node.meta.label ? /* @__PURE__ */ jsx80("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
4740
4839
  attributes.text ? uiTextToFormattedMessage9(attributes.text, intl) : ""
4741
4840
  ]
4742
4841
  }
@@ -4746,30 +4845,31 @@ function DefaultText({ node, attributes }) {
4746
4845
  // src/theme/default/components/generic/page-header.tsx
4747
4846
  import {
4748
4847
  useComponents as useComponents6,
4749
- useOryFlow as useOryFlow14
4848
+ useOryConfiguration as useOryConfiguration7,
4849
+ useOryFlow as useOryFlow12
4750
4850
  } from "@ory/elements-react";
4751
4851
 
4752
4852
  // src/theme/default/components/ui/user-menu.tsx
4753
- import { useOryFlow as useOryFlow13 } from "@ory/elements-react";
4853
+ import { useOryConfiguration as useOryConfiguration6 } from "@ory/elements-react";
4754
4854
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
4755
4855
 
4756
4856
  // src/theme/default/assets/icons/logout.svg
4757
4857
  import * as React26 from "react";
4758
- import { jsx as jsx80 } from "react/jsx-runtime";
4858
+ import { jsx as jsx81 } from "react/jsx-runtime";
4759
4859
  var SvgLogout = (props) => {
4760
4860
  var _a, _b;
4761
- return /* @__PURE__ */ jsx80("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__ */ jsx80("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" }) });
4861
+ return /* @__PURE__ */ jsx81("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx81("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
4762
4862
  };
4763
4863
  var logout_default = SvgLogout;
4764
4864
 
4765
4865
  // src/theme/default/assets/icons/settings.svg
4766
4866
  import * as React27 from "react";
4767
- import { jsx as jsx81, jsxs as jsxs39 } from "react/jsx-runtime";
4867
+ import { jsx as jsx82, jsxs as jsxs39 } from "react/jsx-runtime";
4768
4868
  var SvgSettings = (props) => {
4769
4869
  var _a, _b;
4770
- return /* @__PURE__ */ jsx81("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs39("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4771
- /* @__PURE__ */ jsx81("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" }),
4772
- /* @__PURE__ */ jsx81("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4870
+ return /* @__PURE__ */ jsx82("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs39("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4871
+ /* @__PURE__ */ jsx82("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
4872
+ /* @__PURE__ */ jsx82("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4773
4873
  ] }) });
4774
4874
  };
4775
4875
  var settings_default = SvgSettings;
@@ -4816,10 +4916,10 @@ var getUserInitials = (session) => {
4816
4916
  // src/theme/default/components/ui/dropdown-menu.tsx
4817
4917
  import { forwardRef as forwardRef3 } from "react";
4818
4918
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
4819
- import { jsx as jsx82 } from "react/jsx-runtime";
4919
+ import { jsx as jsx83 } from "react/jsx-runtime";
4820
4920
  var DropdownMenu = DropdownMenuPrimitive.Root;
4821
4921
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
4822
- var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx82(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx82(
4922
+ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx83(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx83(
4823
4923
  DropdownMenuPrimitive.Content,
4824
4924
  {
4825
4925
  ref,
@@ -4834,7 +4934,7 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
4834
4934
  }
4835
4935
  ) }));
4836
4936
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4837
- var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx82(
4937
+ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx83(
4838
4938
  DropdownMenuPrimitive.Item,
4839
4939
  {
4840
4940
  ref,
@@ -4852,7 +4952,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
4852
4952
  }
4853
4953
  ));
4854
4954
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4855
- var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx82(
4955
+ var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx83(
4856
4956
  DropdownMenuPrimitive.Label,
4857
4957
  {
4858
4958
  ref,
@@ -4871,31 +4971,31 @@ import { forwardRef as forwardRef4 } from "react";
4871
4971
 
4872
4972
  // src/theme/default/assets/icons/user.svg
4873
4973
  import * as React28 from "react";
4874
- import { jsx as jsx83 } from "react/jsx-runtime";
4974
+ import { jsx as jsx84 } from "react/jsx-runtime";
4875
4975
  var SvgUser = (props) => {
4876
4976
  var _a, _b;
4877
- return /* @__PURE__ */ jsx83("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__ */ jsx83("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" }) });
4977
+ return /* @__PURE__ */ jsx84("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx84("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
4878
4978
  };
4879
4979
  var user_default = SvgUser;
4880
4980
 
4881
4981
  // src/theme/default/components/ui/user-avater.tsx
4882
- import { jsx as jsx84 } from "react/jsx-runtime";
4982
+ import { jsx as jsx85 } from "react/jsx-runtime";
4883
4983
  var UserAvatar = forwardRef4(
4884
4984
  ({ initials, ...rest }, ref) => {
4885
- return /* @__PURE__ */ jsx84(
4985
+ return /* @__PURE__ */ jsx85(
4886
4986
  "button",
4887
4987
  {
4888
4988
  ref,
4889
4989
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
4890
4990
  ...rest,
4891
- children: /* @__PURE__ */ jsx84("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx84(
4991
+ children: /* @__PURE__ */ jsx85("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx85(
4892
4992
  "img",
4893
4993
  {
4894
4994
  src: initials.avatar,
4895
4995
  alt: initials.primary,
4896
4996
  className: "w-full object-contain"
4897
4997
  }
4898
- ) : /* @__PURE__ */ jsx84(
4998
+ ) : /* @__PURE__ */ jsx85(
4899
4999
  user_default,
4900
5000
  {
4901
5001
  size: 24,
@@ -4909,27 +5009,27 @@ var UserAvatar = forwardRef4(
4909
5009
  UserAvatar.displayName = "UserAvatar";
4910
5010
 
4911
5011
  // src/theme/default/components/ui/user-menu.tsx
4912
- import { jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
5012
+ import { jsx as jsx86, jsxs as jsxs40 } from "react/jsx-runtime";
4913
5013
  var UserMenu = ({ session }) => {
4914
- const { config } = useOryFlow13();
5014
+ const config = useOryConfiguration6();
4915
5015
  const initials = getUserInitials(session);
4916
5016
  const { logoutFlow } = useClientLogout(config);
4917
5017
  return /* @__PURE__ */ jsxs40(DropdownMenu, { children: [
4918
- /* @__PURE__ */ jsx85(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx85(UserAvatar, { initials, title: "User Menu" }) }),
5018
+ /* @__PURE__ */ jsx86(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx86(UserAvatar, { initials, title: "User Menu" }) }),
4919
5019
  /* @__PURE__ */ jsxs40(DropdownMenuContent, { children: [
4920
5020
  /* @__PURE__ */ jsxs40(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
4921
- /* @__PURE__ */ jsx85(UserAvatar, { disabled: true, initials }),
5021
+ /* @__PURE__ */ jsx86(UserAvatar, { disabled: true, initials }),
4922
5022
  /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4923
- /* @__PURE__ */ jsx85("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4924
- initials.secondary && /* @__PURE__ */ jsx85("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
5023
+ /* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
5024
+ initials.secondary && /* @__PURE__ */ jsx86("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4925
5025
  ] })
4926
5026
  ] }),
4927
- /* @__PURE__ */ jsx85(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href: "/settings", children: [
4928
- /* @__PURE__ */ jsx85(settings_default, { size: 16 }),
5027
+ /* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs40("a", { href: "/settings", children: [
5028
+ /* @__PURE__ */ jsx86(settings_default, { size: 16 }),
4929
5029
  " User settings"
4930
5030
  ] }) }),
4931
- /* @__PURE__ */ jsx85(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs40("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
4932
- /* @__PURE__ */ jsx85(logout_default, { size: 16 }),
5031
+ /* @__PURE__ */ jsx86(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs40("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
5032
+ /* @__PURE__ */ jsx86(logout_default, { size: 16 }),
4933
5033
  " Logout"
4934
5034
  ] }) })
4935
5035
  ] })
@@ -4939,27 +5039,28 @@ var UserMenu = ({ session }) => {
4939
5039
  // src/theme/default/components/generic/page-header.tsx
4940
5040
  import { useSession } from "@ory/elements-react/client";
4941
5041
  import { useIntl as useIntl21 } from "react-intl";
4942
- import { jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
5042
+ import { jsx as jsx87, jsxs as jsxs41 } from "react/jsx-runtime";
4943
5043
  var DefaultPageHeader = (_props) => {
4944
5044
  var _a;
4945
5045
  const { Card } = useComponents6();
4946
5046
  const { session } = useSession();
4947
5047
  const intl = useIntl21();
4948
- const { config, flow } = useOryFlow14();
5048
+ const { flow } = useOryFlow12();
5049
+ const config = useOryConfiguration7();
4949
5050
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
4950
- return /* @__PURE__ */ jsx86("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-12", children: [
5051
+ return /* @__PURE__ */ jsx87("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-12", children: [
4951
5052
  /* @__PURE__ */ jsxs41("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
4952
- /* @__PURE__ */ jsx86(Card.Logo, {}),
4953
- /* @__PURE__ */ jsx86(UserMenu, { session })
5053
+ /* @__PURE__ */ jsx87(Card.Logo, {}),
5054
+ /* @__PURE__ */ jsx87(UserMenu, { session })
4954
5055
  ] }),
4955
- returnUrl && /* @__PURE__ */ jsx86("div", { children: /* @__PURE__ */ jsxs41(
5056
+ returnUrl && /* @__PURE__ */ jsx87("div", { children: /* @__PURE__ */ jsxs41(
4956
5057
  "a",
4957
5058
  {
4958
5059
  "data-testid": "ory/screen/settings/back-button",
4959
5060
  href: returnUrl,
4960
5061
  className: "inline-flex gap-2 items-center",
4961
5062
  children: [
4962
- /* @__PURE__ */ jsx86(arrow_left_default, {}),
5063
+ /* @__PURE__ */ jsx87(arrow_left_default, {}),
4963
5064
  " ",
4964
5065
  intl.formatMessage({
4965
5066
  id: "settings.navigation-back-button",
@@ -4978,15 +5079,15 @@ import { useDebounceValue as useDebounceValue2 } from "usehooks-ts";
4978
5079
 
4979
5080
  // src/theme/default/assets/icons/trash.svg
4980
5081
  import * as React29 from "react";
4981
- import { jsx as jsx87 } from "react/jsx-runtime";
5082
+ import { jsx as jsx88 } from "react/jsx-runtime";
4982
5083
  var SvgTrash = (props) => {
4983
5084
  var _a, _b;
4984
- return /* @__PURE__ */ jsx87("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__ */ jsx87("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" }) });
5085
+ return /* @__PURE__ */ jsx88("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx88("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
4985
5086
  };
4986
5087
  var trash_default = SvgTrash;
4987
5088
 
4988
5089
  // src/theme/default/components/settings/settings-oidc.tsx
4989
- import { jsx as jsx88, jsxs as jsxs42 } from "react/jsx-runtime";
5090
+ import { jsx as jsx89, jsxs as jsxs42 } from "react/jsx-runtime";
4990
5091
  function DefaultSettingsOidc({
4991
5092
  linkButtons,
4992
5093
  unlinkButtons
@@ -4994,9 +5095,9 @@ function DefaultSettingsOidc({
4994
5095
  const hasLinkButtons = linkButtons.length > 0;
4995
5096
  const hasUnlinkButtons = unlinkButtons.length > 0;
4996
5097
  return /* @__PURE__ */ jsxs42("div", { className: "flex flex-col gap-8", children: [
4997
- hasLinkButtons && /* @__PURE__ */ jsx88("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5098
+ hasLinkButtons && /* @__PURE__ */ jsx89("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
4998
5099
  const attrs = button.attributes;
4999
- return /* @__PURE__ */ jsx88(
5100
+ return /* @__PURE__ */ jsx89(
5000
5101
  DefaultButtonSocial,
5001
5102
  {
5002
5103
  showLabel: true,
@@ -5007,12 +5108,12 @@ function DefaultSettingsOidc({
5007
5108
  attrs.value
5008
5109
  );
5009
5110
  }) }),
5010
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx88(DefaultHorizontalDivider, {}) : null,
5111
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx89(DefaultHorizontalDivider, {}) : null,
5011
5112
  unlinkButtons.map((button) => {
5012
5113
  if (button.attributes.node_type !== "input") {
5013
5114
  return null;
5014
5115
  }
5015
- return /* @__PURE__ */ jsx88(UnlinkRow, { button }, button.attributes.value);
5116
+ return /* @__PURE__ */ jsx89(UnlinkRow, { button }, button.attributes.value);
5016
5117
  })
5017
5118
  ] });
5018
5119
  }
@@ -5037,10 +5138,10 @@ function UnlinkRow({ button }) {
5037
5138
  console.log((_c = button.meta.label) == null ? void 0 : _c.context);
5038
5139
  return /* @__PURE__ */ jsxs42("div", { className: "flex justify-between", children: [
5039
5140
  /* @__PURE__ */ jsxs42("div", { className: "flex items-center gap-6", children: [
5040
- Logo ? /* @__PURE__ */ jsx88(Logo, { size: 32 }) : /* @__PURE__ */ jsx88(GenericLogo, { label: provider.slice(0, 1) }),
5041
- /* @__PURE__ */ jsx88("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5141
+ Logo ? /* @__PURE__ */ jsx89(Logo, { size: 32 }) : /* @__PURE__ */ jsx89(GenericLogo, { label: provider.slice(0, 1) }),
5142
+ /* @__PURE__ */ jsx89("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5042
5143
  ] }),
5043
- /* @__PURE__ */ jsx88(
5144
+ /* @__PURE__ */ jsx89(
5044
5145
  "button",
5045
5146
  {
5046
5147
  ...omitInputAttributes(attrs),
@@ -5049,7 +5150,7 @@ function UnlinkRow({ button }) {
5049
5150
  disabled: isSubmitting,
5050
5151
  className: "relative",
5051
5152
  title: `Unlink ${provider}`,
5052
- children: clicked ? /* @__PURE__ */ jsx88(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx88(
5153
+ children: clicked ? /* @__PURE__ */ jsx89(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx89(
5053
5154
  trash_default,
5054
5155
  {
5055
5156
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5064,7 +5165,7 @@ function UnlinkRow({ button }) {
5064
5165
  // src/theme/default/components/settings/settings-passkey.tsx
5065
5166
  import { useComponents as useComponents7 } from "@ory/elements-react";
5066
5167
  import { useFormContext as useFormContext20 } from "react-hook-form";
5067
- import { jsx as jsx89, jsxs as jsxs43 } from "react/jsx-runtime";
5168
+ import { jsx as jsx90, jsxs as jsxs43 } from "react/jsx-runtime";
5068
5169
  function DefaultSettingsPasskey({
5069
5170
  triggerButton,
5070
5171
  removeButtons
@@ -5075,7 +5176,7 @@ function DefaultSettingsPasskey({
5075
5176
  const { Node: Node2 } = useComponents7();
5076
5177
  const hasRemoveButtons = removeButtons.length > 0;
5077
5178
  return /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-8", children: [
5078
- /* @__PURE__ */ jsx89("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx89(
5179
+ /* @__PURE__ */ jsx90("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx90(
5079
5180
  Node2.Button,
5080
5181
  {
5081
5182
  node: triggerButton,
@@ -5084,8 +5185,8 @@ function DefaultSettingsPasskey({
5084
5185
  }
5085
5186
  ) }),
5086
5187
  hasRemoveButtons ? /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-8", children: [
5087
- /* @__PURE__ */ jsx89(DefaultHorizontalDivider, {}),
5088
- /* @__PURE__ */ jsx89("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5188
+ /* @__PURE__ */ jsx90(DefaultHorizontalDivider, {}),
5189
+ /* @__PURE__ */ jsx90("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5089
5190
  var _a, _b;
5090
5191
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5091
5192
  const addedAt = "added_at" in context ? context.added_at : null;
@@ -5097,7 +5198,7 @@ function DefaultSettingsPasskey({
5097
5198
  className: "flex justify-between gap-6 md:items-center",
5098
5199
  children: [
5099
5200
  /* @__PURE__ */ jsxs43("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5100
- /* @__PURE__ */ jsx89(
5201
+ /* @__PURE__ */ jsx90(
5101
5202
  passkey_default,
5102
5203
  {
5103
5204
  size: 32,
@@ -5106,15 +5207,15 @@ function DefaultSettingsPasskey({
5106
5207
  ),
5107
5208
  /* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5108
5209
  /* @__PURE__ */ jsxs43("div", { className: "flex-1 flex-col truncate", children: [
5109
- /* @__PURE__ */ jsx89("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5110
- /* @__PURE__ */ jsx89("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5210
+ /* @__PURE__ */ jsx90("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5211
+ /* @__PURE__ */ jsx90("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5111
5212
  ] }),
5112
- addedAt && /* @__PURE__ */ jsx89("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5213
+ addedAt && /* @__PURE__ */ jsx90("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5113
5214
  dateStyle: "long"
5114
5215
  }).format(new Date(addedAt)) })
5115
5216
  ] })
5116
5217
  ] }),
5117
- /* @__PURE__ */ jsx89(
5218
+ /* @__PURE__ */ jsx90(
5118
5219
  "button",
5119
5220
  {
5120
5221
  ...node.attributes,
@@ -5122,7 +5223,7 @@ function DefaultSettingsPasskey({
5122
5223
  onClick: node.onClick,
5123
5224
  disabled: isSubmitting,
5124
5225
  className: "relative",
5125
- children: isSubmitting ? /* @__PURE__ */ jsx89(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx89(
5226
+ children: isSubmitting ? /* @__PURE__ */ jsx90(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx90(
5126
5227
  trash_default,
5127
5228
  {
5128
5229
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5142,25 +5243,25 @@ function DefaultSettingsPasskey({
5142
5243
 
5143
5244
  // src/theme/default/assets/icons/download.svg
5144
5245
  import * as React30 from "react";
5145
- import { jsx as jsx90 } from "react/jsx-runtime";
5246
+ import { jsx as jsx91 } from "react/jsx-runtime";
5146
5247
  var SvgDownload = (props) => {
5147
5248
  var _a, _b;
5148
- return /* @__PURE__ */ jsx90("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__ */ jsx90("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" }) });
5249
+ return /* @__PURE__ */ jsx91("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx91("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
5149
5250
  };
5150
5251
  var download_default = SvgDownload;
5151
5252
 
5152
5253
  // src/theme/default/assets/icons/refresh.svg
5153
5254
  import * as React31 from "react";
5154
- import { jsx as jsx91 } from "react/jsx-runtime";
5255
+ import { jsx as jsx92 } from "react/jsx-runtime";
5155
5256
  var SvgRefresh = (props) => {
5156
5257
  var _a, _b;
5157
- return /* @__PURE__ */ jsx91("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx91("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "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" }) });
5258
+ return /* @__PURE__ */ jsx92("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx92("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
5158
5259
  };
5159
5260
  var refresh_default = SvgRefresh;
5160
5261
 
5161
5262
  // src/theme/default/components/settings/settings-recovery-codes.tsx
5162
5263
  import { useFormContext as useFormContext21 } from "react-hook-form";
5163
- import { Fragment as Fragment12, jsx as jsx92, jsxs as jsxs44 } from "react/jsx-runtime";
5264
+ import { Fragment as Fragment12, jsx as jsx93, jsxs as jsxs44 } from "react/jsx-runtime";
5164
5265
  function DefaultSettingsRecoveryCodes({
5165
5266
  codes,
5166
5267
  regnerateButton,
@@ -5183,11 +5284,11 @@ function DefaultSettingsRecoveryCodes({
5183
5284
  };
5184
5285
  const hasCodes = codes.length >= 1;
5185
5286
  return /* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-8", children: [
5186
- codes.length > 0 && /* @__PURE__ */ jsx92(DefaultHorizontalDivider, {}),
5287
+ codes.length > 0 && /* @__PURE__ */ jsx93(DefaultHorizontalDivider, {}),
5187
5288
  /* @__PURE__ */ jsxs44("div", { className: "flex gap-4 justify-between", children: [
5188
- /* @__PURE__ */ jsx92("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5289
+ /* @__PURE__ */ jsx93("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5189
5290
  /* @__PURE__ */ jsxs44("div", { className: "flex gap-2", children: [
5190
- regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx92(
5291
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx93(
5191
5292
  "button",
5192
5293
  {
5193
5294
  ...regnerateButton.attributes,
@@ -5196,7 +5297,7 @@ function DefaultSettingsRecoveryCodes({
5196
5297
  onClick: onRegenerate,
5197
5298
  disabled: isSubmitting,
5198
5299
  "data-loading": isSubmitting,
5199
- children: /* @__PURE__ */ jsx92(
5300
+ children: /* @__PURE__ */ jsx93(
5200
5301
  refresh_default,
5201
5302
  {
5202
5303
  size: 24,
@@ -5205,7 +5306,7 @@ function DefaultSettingsRecoveryCodes({
5205
5306
  )
5206
5307
  }
5207
5308
  ),
5208
- revealButton && /* @__PURE__ */ jsx92(Fragment12, { children: /* @__PURE__ */ jsx92(
5309
+ revealButton && /* @__PURE__ */ jsx93(Fragment12, { children: /* @__PURE__ */ jsx93(
5209
5310
  "button",
5210
5311
  {
5211
5312
  ...revealButton.attributes,
@@ -5213,7 +5314,7 @@ function DefaultSettingsRecoveryCodes({
5213
5314
  className: "ml-auto",
5214
5315
  onClick: onReveal,
5215
5316
  title: "Reveal recovery codes",
5216
- children: /* @__PURE__ */ jsx92(
5317
+ children: /* @__PURE__ */ jsx93(
5217
5318
  eye_default,
5218
5319
  {
5219
5320
  size: 24,
@@ -5222,7 +5323,7 @@ function DefaultSettingsRecoveryCodes({
5222
5323
  )
5223
5324
  }
5224
5325
  ) }),
5225
- hasCodes && /* @__PURE__ */ jsx92(
5326
+ hasCodes && /* @__PURE__ */ jsx93(
5226
5327
  "button",
5227
5328
  {
5228
5329
  onClick: onDownload,
@@ -5230,7 +5331,7 @@ function DefaultSettingsRecoveryCodes({
5230
5331
  className: "ml-auto",
5231
5332
  "data-testid": "ory/screen/settings/group/recovery_code/download",
5232
5333
  title: "Download recovery codes",
5233
- children: /* @__PURE__ */ jsx92(
5334
+ children: /* @__PURE__ */ jsx93(
5234
5335
  download_default,
5235
5336
  {
5236
5337
  size: 24,
@@ -5241,12 +5342,12 @@ function DefaultSettingsRecoveryCodes({
5241
5342
  )
5242
5343
  ] })
5243
5344
  ] }),
5244
- hasCodes ? /* @__PURE__ */ jsx92("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx92(
5345
+ hasCodes ? /* @__PURE__ */ jsx93("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx93(
5245
5346
  "div",
5246
5347
  {
5247
5348
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5248
5349
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5249
- children: codes.map((code) => /* @__PURE__ */ jsx92("p", { children: code }, code))
5350
+ children: codes.map((code) => /* @__PURE__ */ jsx93("p", { children: code }, code))
5250
5351
  }
5251
5352
  ) }) : null
5252
5353
  ] });
@@ -5257,16 +5358,16 @@ import { useComponents as useComponents8 } from "@ory/elements-react";
5257
5358
 
5258
5359
  // src/theme/default/assets/icons/qrcode.svg
5259
5360
  import * as React32 from "react";
5260
- import { jsx as jsx93 } from "react/jsx-runtime";
5361
+ import { jsx as jsx94 } from "react/jsx-runtime";
5261
5362
  var SvgQrcode = (props) => {
5262
5363
  var _a, _b;
5263
- return /* @__PURE__ */ jsx93("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx93("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "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" }) });
5364
+ return /* @__PURE__ */ jsx94("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx94("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
5264
5365
  };
5265
5366
  var qrcode_default = SvgQrcode;
5266
5367
 
5267
5368
  // src/theme/default/components/settings/settings-totp.tsx
5268
5369
  import { useFormContext as useFormContext22 } from "react-hook-form";
5269
- import { jsx as jsx94, jsxs as jsxs45 } from "react/jsx-runtime";
5370
+ import { jsx as jsx95, jsxs as jsxs45 } from "react/jsx-runtime";
5270
5371
  function DefaultSettingsTotp({
5271
5372
  totpImage,
5272
5373
  totpInput,
@@ -5287,18 +5388,18 @@ function DefaultSettingsTotp({
5287
5388
  ...buttonAttrs
5288
5389
  } = totpUnlink.attributes;
5289
5390
  return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5290
- /* @__PURE__ */ jsx94("div", { className: "col-span-full", children: /* @__PURE__ */ jsx94(Card.Divider, {}) }),
5391
+ /* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(Card.Divider, {}) }),
5291
5392
  /* @__PURE__ */ jsxs45("div", { className: "col-span-full flex items-center gap-6", children: [
5292
- /* @__PURE__ */ jsx94("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx94(qrcode_default, { size: 32 }) }),
5293
- /* @__PURE__ */ jsx94("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx94("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5294
- /* @__PURE__ */ jsx94(
5393
+ /* @__PURE__ */ jsx95("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx95(qrcode_default, { size: 32 }) }),
5394
+ /* @__PURE__ */ jsx95("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx95("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5395
+ /* @__PURE__ */ jsx95(
5295
5396
  "button",
5296
5397
  {
5297
5398
  type: type === "button" ? "button" : "submit",
5298
5399
  ...buttonAttrs,
5299
5400
  onClick: onUnlink,
5300
5401
  disabled: isSubmitting,
5301
- children: isSubmitting ? /* @__PURE__ */ jsx94(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx94(
5402
+ children: isSubmitting ? /* @__PURE__ */ jsx95(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx95(
5302
5403
  trash_default,
5303
5404
  {
5304
5405
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5312,8 +5413,8 @@ function DefaultSettingsTotp({
5312
5413
  }
5313
5414
  if (totpImage && totpSecret && totpInput) {
5314
5415
  return /* @__PURE__ */ jsxs45("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5315
- /* @__PURE__ */ jsx94("div", { className: "col-span-full", children: /* @__PURE__ */ jsx94(DefaultHorizontalDivider, {}) }),
5316
- /* @__PURE__ */ jsx94("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx94("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx94("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx94(
5416
+ /* @__PURE__ */ jsx95("div", { className: "col-span-full", children: /* @__PURE__ */ jsx95(DefaultHorizontalDivider, {}) }),
5417
+ /* @__PURE__ */ jsx95("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx95("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx95("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx95(
5317
5418
  Node2.Image,
5318
5419
  {
5319
5420
  node: totpImage,
@@ -5323,12 +5424,12 @@ function DefaultSettingsTotp({
5323
5424
  }
5324
5425
  ) }) }) }),
5325
5426
  /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-6", children: [
5326
- /* @__PURE__ */ jsx94(
5427
+ /* @__PURE__ */ jsx95(
5327
5428
  Node2.Label,
5328
5429
  {
5329
5430
  node: totpSecret,
5330
5431
  attributes: totpSecret.attributes,
5331
- children: /* @__PURE__ */ jsx94("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ jsx94(
5432
+ children: /* @__PURE__ */ jsx95("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ jsx95(
5332
5433
  "input",
5333
5434
  {
5334
5435
  disabled: true,
@@ -5341,12 +5442,12 @@ function DefaultSettingsTotp({
5341
5442
  ) })
5342
5443
  }
5343
5444
  ),
5344
- /* @__PURE__ */ jsx94(
5445
+ /* @__PURE__ */ jsx95(
5345
5446
  Node2.Label,
5346
5447
  {
5347
5448
  attributes: totpInput.attributes,
5348
5449
  node: totpInput,
5349
- children: /* @__PURE__ */ jsx94(
5450
+ children: /* @__PURE__ */ jsx95(
5350
5451
  Node2.CodeInput,
5351
5452
  {
5352
5453
  node: totpInput,
@@ -5365,16 +5466,16 @@ import { useComponents as useComponents9 } from "@ory/elements-react";
5365
5466
 
5366
5467
  // src/theme/default/assets/icons/key.svg
5367
5468
  import * as React33 from "react";
5368
- import { jsx as jsx95 } from "react/jsx-runtime";
5469
+ import { jsx as jsx96 } from "react/jsx-runtime";
5369
5470
  var SvgKey = (props) => {
5370
5471
  var _a, _b;
5371
- return /* @__PURE__ */ jsx95("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__ */ jsx95("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" }) });
5472
+ return /* @__PURE__ */ jsx96("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx96("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
5372
5473
  };
5373
5474
  var key_default = SvgKey;
5374
5475
 
5375
5476
  // src/theme/default/components/settings/settings-webauthn.tsx
5376
5477
  import { useFormContext as useFormContext23 } from "react-hook-form";
5377
- import { jsx as jsx96, jsxs as jsxs46 } from "react/jsx-runtime";
5478
+ import { jsx as jsx97, jsxs as jsxs46 } from "react/jsx-runtime";
5378
5479
  function DefaultSettingsWebauthn({
5379
5480
  nameInput,
5380
5481
  triggerButton,
@@ -5387,12 +5488,12 @@ function DefaultSettingsWebauthn({
5387
5488
  const hasRemoveButtons = removeButtons.length > 0;
5388
5489
  return /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-8", children: [
5389
5490
  /* @__PURE__ */ jsxs46("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5390
- /* @__PURE__ */ jsx96("div", { className: "flex-1", children: /* @__PURE__ */ jsx96(
5491
+ /* @__PURE__ */ jsx97("div", { className: "flex-1", children: /* @__PURE__ */ jsx97(
5391
5492
  Node2.Label,
5392
5493
  {
5393
5494
  node: nameInput,
5394
5495
  attributes: nameInput.attributes,
5395
- children: /* @__PURE__ */ jsx96(
5496
+ children: /* @__PURE__ */ jsx97(
5396
5497
  Node2.Input,
5397
5498
  {
5398
5499
  node: nameInput,
@@ -5401,7 +5502,7 @@ function DefaultSettingsWebauthn({
5401
5502
  )
5402
5503
  }
5403
5504
  ) }),
5404
- triggerButton ? /* @__PURE__ */ jsx96(
5505
+ triggerButton ? /* @__PURE__ */ jsx97(
5405
5506
  Node2.Button,
5406
5507
  {
5407
5508
  node: triggerButton,
@@ -5411,8 +5512,8 @@ function DefaultSettingsWebauthn({
5411
5512
  ) : null
5412
5513
  ] }),
5413
5514
  hasRemoveButtons ? /* @__PURE__ */ jsxs46("div", { className: "flex flex-col gap-8", children: [
5414
- /* @__PURE__ */ jsx96(Card.Divider, {}),
5415
- /* @__PURE__ */ jsx96("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5515
+ /* @__PURE__ */ jsx97(Card.Divider, {}),
5516
+ /* @__PURE__ */ jsx97("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5416
5517
  var _a, _b;
5417
5518
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5418
5519
  const addedAt = "added_at" in context ? context.added_at : null;
@@ -5424,7 +5525,7 @@ function DefaultSettingsWebauthn({
5424
5525
  className: "flex justify-between gap-6 md:items-center",
5425
5526
  children: [
5426
5527
  /* @__PURE__ */ jsxs46("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5427
- /* @__PURE__ */ jsx96(
5528
+ /* @__PURE__ */ jsx97(
5428
5529
  key_default,
5429
5530
  {
5430
5531
  size: 32,
@@ -5433,15 +5534,15 @@ function DefaultSettingsWebauthn({
5433
5534
  ),
5434
5535
  /* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5435
5536
  /* @__PURE__ */ jsxs46("div", { className: "flex-1 flex-col truncate", children: [
5436
- /* @__PURE__ */ jsx96("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5437
- /* @__PURE__ */ jsx96("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5537
+ /* @__PURE__ */ jsx97("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5538
+ /* @__PURE__ */ jsx97("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5438
5539
  ] }),
5439
- addedAt && /* @__PURE__ */ jsx96("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5540
+ addedAt && /* @__PURE__ */ jsx97("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5440
5541
  dateStyle: "long"
5441
5542
  }).format(new Date(addedAt)) })
5442
5543
  ] })
5443
5544
  ] }),
5444
- /* @__PURE__ */ jsx96(
5545
+ /* @__PURE__ */ jsx97(
5445
5546
  "button",
5446
5547
  {
5447
5548
  ...node.attributes,
@@ -5449,7 +5550,7 @@ function DefaultSettingsWebauthn({
5449
5550
  onClick: node.onClick,
5450
5551
  disabled: isSubmitting,
5451
5552
  className: "relative",
5452
- children: isSubmitting ? /* @__PURE__ */ jsx96(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx96(
5553
+ children: isSubmitting ? /* @__PURE__ */ jsx97(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx97(
5453
5554
  trash_default,
5454
5555
  {
5455
5556
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5468,23 +5569,23 @@ function DefaultSettingsWebauthn({
5468
5569
  }
5469
5570
 
5470
5571
  // src/theme/default/components/card/auth-method-list-container.tsx
5471
- import { jsx as jsx97 } from "react/jsx-runtime";
5572
+ import { jsx as jsx98 } from "react/jsx-runtime";
5472
5573
  function DefaultAuthMethodListContainer({
5473
5574
  children
5474
5575
  }) {
5475
- return /* @__PURE__ */ jsx97("div", { className: "grid grid-cols-1 gap-2", children });
5576
+ return /* @__PURE__ */ jsx98("div", { className: "grid grid-cols-1 gap-2", children });
5476
5577
  }
5477
5578
 
5478
5579
  // src/theme/default/components/form/captcha.tsx
5479
5580
  import { isUiNodeInputAttributes as isUiNodeInputAttributes9 } from "@ory/client-fetch";
5480
5581
  import { Turnstile } from "@marsidev/react-turnstile";
5481
- import { useEffect as useEffect7, useRef as useRef3 } from "react";
5582
+ import { useEffect as useEffect7, useRef as useRef4 } from "react";
5482
5583
  import { useFormContext as useFormContext24 } from "react-hook-form";
5483
- import { jsx as jsx98 } from "react/jsx-runtime";
5584
+ import { jsx as jsx99 } from "react/jsx-runtime";
5484
5585
  var DefaultCaptcha = ({ node }) => {
5485
5586
  const { setValue, formState } = useFormContext24();
5486
- const ref = useRef3();
5487
- const prevSubmitCount = useRef3(formState.submitCount);
5587
+ const ref = useRef4();
5588
+ const prevSubmitCount = useRef4(formState.submitCount);
5488
5589
  useEffect7(() => {
5489
5590
  if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
5490
5591
  prevSubmitCount.current = formState.submitCount;
@@ -5499,10 +5600,10 @@ var DefaultCaptcha = ({ node }) => {
5499
5600
  return null;
5500
5601
  }
5501
5602
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5502
- return /* @__PURE__ */ jsx98(DefaultInput, { node, attributes: node.attributes }, 1);
5603
+ return /* @__PURE__ */ jsx99(DefaultInput, { node, attributes: node.attributes }, 1);
5503
5604
  } else if (node.attributes.name === "captcha_turnstile_options") {
5504
5605
  const options = JSON.parse(node.attributes.value);
5505
- return /* @__PURE__ */ jsx98(
5606
+ return /* @__PURE__ */ jsx99(
5506
5607
  Turnstile,
5507
5608
  {
5508
5609
  ref,
@@ -5529,35 +5630,35 @@ var DefaultCaptcha = ({ node }) => {
5529
5630
 
5530
5631
  // src/theme/default/assets/icons/personal.svg
5531
5632
  import * as React34 from "react";
5532
- import { jsx as jsx99 } from "react/jsx-runtime";
5633
+ import { jsx as jsx100 } from "react/jsx-runtime";
5533
5634
  var SvgPersonal = (props) => {
5534
5635
  var _a, _b;
5535
- return /* @__PURE__ */ jsx99("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__ */ jsx99("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" }) });
5636
+ return /* @__PURE__ */ jsx100("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx100("path", { stroke: "#0F172A", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
5536
5637
  };
5537
5638
  var personal_default = SvgPersonal;
5538
5639
 
5539
5640
  // src/theme/default/assets/icons/message.svg
5540
5641
  import * as React35 from "react";
5541
- import { jsx as jsx100 } from "react/jsx-runtime";
5642
+ import { jsx as jsx101 } from "react/jsx-runtime";
5542
5643
  var SvgMessage = (props) => {
5543
5644
  var _a, _b;
5544
- return /* @__PURE__ */ jsx100("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__ */ jsx100("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" }) });
5645
+ return /* @__PURE__ */ jsx101("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx101("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
5545
5646
  };
5546
5647
  var message_default = SvgMessage;
5547
5648
 
5548
5649
  // src/theme/default/assets/icons/phone.svg
5549
5650
  import * as React36 from "react";
5550
- import { jsx as jsx101 } from "react/jsx-runtime";
5651
+ import { jsx as jsx102 } from "react/jsx-runtime";
5551
5652
  var SvgPhone = (props) => {
5552
5653
  var _a, _b;
5553
- return /* @__PURE__ */ jsx101("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx101("path", { stroke: "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" }) });
5654
+ return /* @__PURE__ */ jsx102("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx102("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
5554
5655
  };
5555
5656
  var phone_default = SvgPhone;
5556
5657
 
5557
5658
  // src/theme/default/components/form/consent-scope-checkbox.tsx
5558
5659
  import { useIntl as useIntl22 } from "react-intl";
5559
5660
  import * as Switch from "@radix-ui/react-switch";
5560
- import { jsx as jsx102 } from "react/jsx-runtime";
5661
+ import { jsx as jsx103 } from "react/jsx-runtime";
5561
5662
  var ScopeIcons = {
5562
5663
  openid: personal_default,
5563
5664
  offline_access: personal_default,
@@ -5572,7 +5673,7 @@ function DefaultConsentScopeCheckbox({
5572
5673
  var _a;
5573
5674
  const intl = useIntl22();
5574
5675
  const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
5575
- return /* @__PURE__ */ jsx102(
5676
+ return /* @__PURE__ */ jsx103(
5576
5677
  ListItem,
5577
5678
  {
5578
5679
  as: "label",
@@ -5587,7 +5688,7 @@ function DefaultConsentScopeCheckbox({
5587
5688
  }),
5588
5689
  className: "col-span-2",
5589
5690
  "data-testid": "ory/screen/consent/scope-checkbox-label",
5590
- children: /* @__PURE__ */ jsx102(
5691
+ children: /* @__PURE__ */ jsx103(
5591
5692
  Switch.Root,
5592
5693
  {
5593
5694
  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",
@@ -5595,7 +5696,7 @@ function DefaultConsentScopeCheckbox({
5595
5696
  value: attributes.value,
5596
5697
  onCheckedChange,
5597
5698
  defaultChecked: true,
5598
- children: /* @__PURE__ */ jsx102(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" })
5699
+ children: /* @__PURE__ */ jsx103(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
5599
5700
  }
5600
5701
  )
5601
5702
  }
@@ -5657,9 +5758,13 @@ import {
5657
5758
  instanceOfFlowError,
5658
5759
  instanceOfGenericError
5659
5760
  } from "@ory/client-fetch";
5761
+ import {
5762
+ OryConfigurationProvider as OryConfigurationProvider2,
5763
+ useOryConfiguration as useOryConfiguration8
5764
+ } from "@ory/elements-react";
5660
5765
  import { useMemo as useMemo2 } from "react";
5661
5766
  import { FormattedMessage } from "react-intl";
5662
- import { jsx as jsx103, jsxs as jsxs47 } from "react/jsx-runtime";
5767
+ import { jsx as jsx104, jsxs as jsxs47 } from "react/jsx-runtime";
5663
5768
  function isOAuth2Error(error) {
5664
5769
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5665
5770
  }
@@ -5712,47 +5817,47 @@ function Error2({
5712
5817
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5713
5818
  const parsed = useStandardize(error);
5714
5819
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5715
- return /* @__PURE__ */ jsx103(
5820
+ return /* @__PURE__ */ jsx104(OryConfigurationProvider2, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ jsx104(
5716
5821
  IntlProvider,
5717
5822
  {
5718
5823
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5719
5824
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5720
- children: /* @__PURE__ */ jsx103(Card, { children: /* @__PURE__ */ jsxs47(
5825
+ children: /* @__PURE__ */ jsx104(Card, { children: /* @__PURE__ */ jsxs47(
5721
5826
  "div",
5722
5827
  {
5723
5828
  className: "flex flex-col gap-6 antialiased",
5724
5829
  "data-testid": "ory/screen/error",
5725
5830
  children: [
5726
5831
  /* @__PURE__ */ jsxs47("header", { className: "flex flex-col gap-8 antialiased", children: [
5727
- /* @__PURE__ */ jsx103(ErrorLogo, { config }),
5832
+ /* @__PURE__ */ jsx104(ErrorLogo, {}),
5728
5833
  /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-2", children: [
5729
- /* @__PURE__ */ jsx103("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.title.what-happened" }) }),
5730
- /* @__PURE__ */ jsx103("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5731
- parsed.reason && /* @__PURE__ */ jsx103("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5834
+ /* @__PURE__ */ jsx104("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.title.what-happened" }) }),
5835
+ /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5836
+ parsed.reason && /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5732
5837
  ] })
5733
5838
  ] }),
5734
- /* @__PURE__ */ jsx103(Divider, {}),
5839
+ /* @__PURE__ */ jsx104(Divider, {}),
5735
5840
  /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-2", children: [
5736
- /* @__PURE__ */ jsx103("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5737
- /* @__PURE__ */ jsx103("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.instructions" }) }),
5738
- /* @__PURE__ */ jsx103("div", { children: session ? /* @__PURE__ */ jsx103(LoggedInActions, { config }) : /* @__PURE__ */ jsx103(GoBackButton, { config }) })
5841
+ /* @__PURE__ */ jsx104("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5842
+ /* @__PURE__ */ jsx104("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.instructions" }) }),
5843
+ /* @__PURE__ */ jsx104("div", { children: session ? /* @__PURE__ */ jsx104(LoggedInActions, {}) : /* @__PURE__ */ jsx104(GoBackButton, {}) })
5739
5844
  ] }),
5740
- /* @__PURE__ */ jsx103(Divider, {}),
5845
+ /* @__PURE__ */ jsx104(Divider, {}),
5741
5846
  /* @__PURE__ */ jsxs47("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5742
- /* @__PURE__ */ jsx103("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.footer.text" }) }),
5847
+ /* @__PURE__ */ jsx104("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.footer.text" }) }),
5743
5848
  parsed.id && /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5744
5849
  "ID: ",
5745
- /* @__PURE__ */ jsx103("code", { children: parsed.id })
5850
+ /* @__PURE__ */ jsx104("code", { children: parsed.id })
5746
5851
  ] }),
5747
5852
  /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5748
5853
  "Time: ",
5749
- /* @__PURE__ */ jsx103("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5854
+ /* @__PURE__ */ jsx104("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5750
5855
  ] }),
5751
5856
  /* @__PURE__ */ jsxs47("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5752
5857
  "Message: ",
5753
- /* @__PURE__ */ jsx103("code", { children: parsed.reason })
5858
+ /* @__PURE__ */ jsx104("code", { children: parsed.reason })
5754
5859
  ] }),
5755
- /* @__PURE__ */ jsx103("div", { children: /* @__PURE__ */ jsx103(
5860
+ /* @__PURE__ */ jsx104("div", { children: /* @__PURE__ */ jsx104(
5756
5861
  "button",
5757
5862
  {
5758
5863
  className: "text-interface-foreground-default-primary underline",
@@ -5764,7 +5869,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5764
5869
  `;
5765
5870
  void navigator.clipboard.writeText(text);
5766
5871
  },
5767
- children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.footer.copy" })
5872
+ children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.footer.copy" })
5768
5873
  }
5769
5874
  ) })
5770
5875
  ] })
@@ -5772,49 +5877,40 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5772
5877
  }
5773
5878
  ) })
5774
5879
  }
5775
- );
5880
+ ) });
5776
5881
  }
5777
- function LoggedInActions({ config }) {
5882
+ function LoggedInActions() {
5883
+ const config = useOryConfiguration8();
5778
5884
  const { logoutFlow } = useClientLogout(config);
5779
- return /* @__PURE__ */ jsx103(
5885
+ return /* @__PURE__ */ jsx104(
5780
5886
  "a",
5781
5887
  {
5782
5888
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
5783
5889
  className: "text-interface-foreground-default-primary underline",
5784
- children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "login.logout-button" })
5890
+ children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "login.logout-button" })
5785
5891
  }
5786
5892
  );
5787
5893
  }
5788
- function GoBackButton({ config }) {
5894
+ function GoBackButton() {
5895
+ const config = useOryConfiguration8();
5789
5896
  if ("default_redirect_url" in config.project) {
5790
- return /* @__PURE__ */ jsx103(
5897
+ return /* @__PURE__ */ jsx104(
5791
5898
  "a",
5792
5899
  {
5793
5900
  className: "text-interface-foreground-default-primary underline",
5794
5901
  href: config.project.default_redirect_url,
5795
- children: /* @__PURE__ */ jsx103(FormattedMessage, { id: "error.action.go-back" })
5902
+ children: /* @__PURE__ */ jsx104(FormattedMessage, { id: "error.action.go-back" })
5796
5903
  }
5797
5904
  );
5798
5905
  }
5799
5906
  return null;
5800
5907
  }
5801
- function ErrorLogo({ config }) {
5802
- var _a;
5803
- if (config.project.logo_light_url) {
5804
- return /* @__PURE__ */ jsx103(
5805
- "img",
5806
- {
5807
- src: config.project.logo_light_url,
5808
- width: 100,
5809
- height: 36,
5810
- alt: "Logo"
5811
- }
5812
- );
5908
+ function ErrorLogo() {
5909
+ const { project } = useOryConfiguration8();
5910
+ if (project.logo_light_url) {
5911
+ return /* @__PURE__ */ jsx104("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5813
5912
  }
5814
- if (config.logoUrl) {
5815
- return /* @__PURE__ */ jsx103("img", { src: config.logoUrl, width: 100, height: 36, alt: "Logo" });
5816
- }
5817
- return /* @__PURE__ */ jsx103("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: (_a = config.project.name) != null ? _a : config.name });
5913
+ return /* @__PURE__ */ jsx104("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5818
5914
  }
5819
5915
 
5820
5916
  // src/theme/default/flows/login.tsx
@@ -5823,7 +5919,7 @@ import {
5823
5919
  OryProvider,
5824
5920
  OryTwoStepCard as OryTwoStepCard2
5825
5921
  } from "@ory/elements-react";
5826
- import { jsx as jsx104 } from "react/jsx-runtime";
5922
+ import { jsx as jsx105 } from "react/jsx-runtime";
5827
5923
  function Login({
5828
5924
  flow,
5829
5925
  config,
@@ -5831,14 +5927,14 @@ function Login({
5831
5927
  components: flowOverrideComponents
5832
5928
  }) {
5833
5929
  const components = getOryComponents(flowOverrideComponents);
5834
- return /* @__PURE__ */ jsx104(
5930
+ return /* @__PURE__ */ jsx105(
5835
5931
  OryProvider,
5836
5932
  {
5837
5933
  config,
5838
5934
  flow,
5839
5935
  flowType: FlowType18.Login,
5840
5936
  components,
5841
- children: children != null ? children : /* @__PURE__ */ jsx104(OryTwoStepCard2, {})
5937
+ children: children != null ? children : /* @__PURE__ */ jsx105(OryTwoStepCard2, {})
5842
5938
  }
5843
5939
  );
5844
5940
  }
@@ -5849,7 +5945,7 @@ import {
5849
5945
  OryProvider as OryProvider2,
5850
5946
  OryTwoStepCard as OryTwoStepCard3
5851
5947
  } from "@ory/elements-react";
5852
- import { jsx as jsx105 } from "react/jsx-runtime";
5948
+ import { jsx as jsx106 } from "react/jsx-runtime";
5853
5949
  function Recovery({
5854
5950
  flow,
5855
5951
  config,
@@ -5857,14 +5953,14 @@ function Recovery({
5857
5953
  components: flowOverrideComponents
5858
5954
  }) {
5859
5955
  const components = getOryComponents(flowOverrideComponents);
5860
- return /* @__PURE__ */ jsx105(
5956
+ return /* @__PURE__ */ jsx106(
5861
5957
  OryProvider2,
5862
5958
  {
5863
5959
  config,
5864
5960
  flow,
5865
5961
  flowType: FlowType19.Recovery,
5866
5962
  components,
5867
- children: children != null ? children : /* @__PURE__ */ jsx105(OryTwoStepCard3, {})
5963
+ children: children != null ? children : /* @__PURE__ */ jsx106(OryTwoStepCard3, {})
5868
5964
  }
5869
5965
  );
5870
5966
  }
@@ -5875,7 +5971,7 @@ import {
5875
5971
  OryProvider as OryProvider3,
5876
5972
  OryTwoStepCard as OryTwoStepCard4
5877
5973
  } from "@ory/elements-react";
5878
- import { jsx as jsx106 } from "react/jsx-runtime";
5974
+ import { jsx as jsx107 } from "react/jsx-runtime";
5879
5975
  function Registration({
5880
5976
  flow,
5881
5977
  children,
@@ -5883,14 +5979,14 @@ function Registration({
5883
5979
  config
5884
5980
  }) {
5885
5981
  const components = getOryComponents(flowOverrideComponents);
5886
- return /* @__PURE__ */ jsx106(
5982
+ return /* @__PURE__ */ jsx107(
5887
5983
  OryProvider3,
5888
5984
  {
5889
5985
  config,
5890
5986
  flow,
5891
5987
  flowType: FlowType20.Registration,
5892
5988
  components,
5893
- children: children != null ? children : /* @__PURE__ */ jsx106(OryTwoStepCard4, {})
5989
+ children: children != null ? children : /* @__PURE__ */ jsx107(OryTwoStepCard4, {})
5894
5990
  }
5895
5991
  );
5896
5992
  }
@@ -5902,7 +5998,7 @@ import {
5902
5998
  OryProvider as OryProvider4,
5903
5999
  OrySettingsCard
5904
6000
  } from "@ory/elements-react";
5905
- import { Fragment as Fragment13, jsx as jsx107, jsxs as jsxs48 } from "react/jsx-runtime";
6001
+ import { Fragment as Fragment13, jsx as jsx108, jsxs as jsxs48 } from "react/jsx-runtime";
5906
6002
  function Settings({
5907
6003
  flow,
5908
6004
  config,
@@ -5910,7 +6006,7 @@ function Settings({
5910
6006
  components: flowOverrideComponents
5911
6007
  }) {
5912
6008
  const components = getOryComponents(flowOverrideComponents);
5913
- return /* @__PURE__ */ jsx107(
6009
+ return /* @__PURE__ */ jsx108(
5914
6010
  OryProvider4,
5915
6011
  {
5916
6012
  config,
@@ -5918,8 +6014,8 @@ function Settings({
5918
6014
  flowType: FlowType21.Settings,
5919
6015
  components,
5920
6016
  children: children != null ? children : /* @__PURE__ */ jsxs48(Fragment13, { children: [
5921
- /* @__PURE__ */ jsx107(HeadlessPageHeader, {}),
5922
- /* @__PURE__ */ jsx107(OrySettingsCard, {})
6017
+ /* @__PURE__ */ jsx108(HeadlessPageHeader, {}),
6018
+ /* @__PURE__ */ jsx108(OrySettingsCard, {})
5923
6019
  ] })
5924
6020
  }
5925
6021
  );
@@ -5931,7 +6027,7 @@ import {
5931
6027
  OryProvider as OryProvider5,
5932
6028
  OryTwoStepCard as OryTwoStepCard5
5933
6029
  } from "@ory/elements-react";
5934
- import { jsx as jsx108 } from "react/jsx-runtime";
6030
+ import { jsx as jsx109 } from "react/jsx-runtime";
5935
6031
  function Verification({
5936
6032
  flow,
5937
6033
  config,
@@ -5939,14 +6035,14 @@ function Verification({
5939
6035
  components: flowOverrideComponents
5940
6036
  }) {
5941
6037
  const components = getOryComponents(flowOverrideComponents);
5942
- return /* @__PURE__ */ jsx108(
6038
+ return /* @__PURE__ */ jsx109(
5943
6039
  OryProvider5,
5944
6040
  {
5945
6041
  config,
5946
6042
  flow,
5947
6043
  flowType: FlowType22.Verification,
5948
6044
  components,
5949
- children: children != null ? children : /* @__PURE__ */ jsx108(OryTwoStepCard5, {})
6045
+ children: children != null ? children : /* @__PURE__ */ jsx109(OryTwoStepCard5, {})
5950
6046
  }
5951
6047
  );
5952
6048
  }
@@ -6099,7 +6195,7 @@ function challengeNode(challenge) {
6099
6195
  }
6100
6196
 
6101
6197
  // src/theme/default/flows/consent.tsx
6102
- import { jsx as jsx109 } from "react/jsx-runtime";
6198
+ import { jsx as jsx110 } from "react/jsx-runtime";
6103
6199
  function Consent({
6104
6200
  consentChallenge,
6105
6201
  session,
@@ -6116,14 +6212,14 @@ function Consent({
6116
6212
  formActionUrl,
6117
6213
  session
6118
6214
  );
6119
- return /* @__PURE__ */ jsx109(
6215
+ return /* @__PURE__ */ jsx110(
6120
6216
  OryProvider6,
6121
6217
  {
6122
6218
  config,
6123
6219
  flow,
6124
6220
  flowType: FlowType23.OAuth2Consent,
6125
6221
  components,
6126
- children: children != null ? children : /* @__PURE__ */ jsx109(OryConsentCard2, {})
6222
+ children: children != null ? children : /* @__PURE__ */ jsx110(OryConsentCard2, {})
6127
6223
  }
6128
6224
  );
6129
6225
  }