@ory/elements-react 1.0.0-rc.2 → 1.0.0-rc.3

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.
@@ -96,42 +96,8 @@ var import_client_fetch27 = require("@ory/client-fetch");
96
96
  var import_elements_react3 = require("@ory/elements-react");
97
97
  var import_react_intl10 = require("react-intl");
98
98
 
99
- // src/theme/default/utils/url.ts
100
- function restartFlowUrl(flow, fallback) {
101
- return flow.request_url || appendReturnTo(fallback, flow.return_to);
102
- }
103
- function initFlowUrl(sdkUrl, flowType, flow) {
104
- const result = `${sdkUrl}/self-service/${flowType}/browser`;
105
- const qs = new URLSearchParams();
106
- if (flow.oauth2_login_challenge) {
107
- qs.set("login_challenge", flow.oauth2_login_challenge);
108
- }
109
- if (flow.return_to) {
110
- qs.set("return_to", flow.return_to);
111
- } else if (typeof window !== "undefined") {
112
- const searchParams = new URLSearchParams(window.location.search);
113
- if (searchParams.has("return_to")) {
114
- qs.set("return_to", searchParams.get("return_to") || "");
115
- }
116
- }
117
- if (qs.toString().length === 0) {
118
- return result;
119
- }
120
- return result + "?" + qs.toString();
121
- }
122
- function appendReturnTo(url, returnTo) {
123
- if (!returnTo) {
124
- return url;
125
- }
126
- const urlObj = new URL(url);
127
- urlObj.searchParams.set("return_to", returnTo);
128
- return urlObj.toString();
129
- }
130
-
131
- // src/util/ui/index.ts
132
- var import_client_fetch2 = require("@ory/client-fetch");
133
- var import_client_fetch3 = require("@ory/client-fetch");
134
- var import_react2 = require("react");
99
+ // src/components/card/two-step/state-select-method.tsx
100
+ var import_client_fetch26 = require("@ory/client-fetch");
135
101
 
136
102
  // src/context/component.tsx
137
103
  var import_client_fetch = require("@ory/client-fetch");
@@ -155,7 +121,25 @@ var defaultGroupOrder = [
155
121
  import_client_fetch.UiNodeGroupEnum.Totp
156
122
  ];
157
123
 
124
+ // src/context/flow-context.tsx
125
+ var import_react4 = require("react");
126
+
127
+ // src/context/form-state.ts
128
+ var import_client_fetch5 = require("@ory/client-fetch");
129
+ var import_react3 = require("react");
130
+
131
+ // src/components/card/two-step/utils.ts
132
+ var import_client_fetch4 = require("@ory/client-fetch");
133
+
134
+ // src/theme/default/utils/form.ts
135
+ function isGroupImmediateSubmit(group) {
136
+ return group === "code";
137
+ }
138
+
158
139
  // src/util/ui/index.ts
140
+ var import_client_fetch2 = require("@ory/client-fetch");
141
+ var import_client_fetch3 = require("@ory/client-fetch");
142
+ var import_react2 = require("react");
159
143
  function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
160
144
  var _a;
161
145
  const groups = {};
@@ -218,34 +202,96 @@ function useNodeGroupsWithVisibleNodes(nodes) {
218
202
  }, [nodes]);
219
203
  }
220
204
 
221
- // src/util/nodes.ts
222
- function findScreenSelectionButton(nodes) {
223
- return nodes.find(
224
- (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
225
- );
226
- }
227
-
228
- // src/components/card/two-step/state-select-method.tsx
229
- var import_client_fetch26 = require("@ory/client-fetch");
230
-
231
205
  // src/context/flow-context.tsx
232
- var import_react4 = require("react");
206
+ var import_jsx_runtime5 = require("react/jsx-runtime");
207
+ var OryFlowContext = (0, import_react4.createContext)(null);
233
208
 
234
- // src/context/form-state.ts
235
- var import_client_fetch5 = require("@ory/client-fetch");
236
- var import_react3 = require("react");
209
+ // src/context/config.tsx
210
+ var import_react5 = require("react");
237
211
 
238
- // src/components/card/two-step/utils.ts
239
- var import_client_fetch4 = require("@ory/client-fetch");
212
+ // src/client/config.ts
213
+ function isProduction() {
214
+ var _a, _b;
215
+ return ["production", "prod"].indexOf(
216
+ (_b = (_a = process.env.VERCEL_ENV) != null ? _a : process.env.NODE_ENV) != null ? _b : ""
217
+ ) > -1;
218
+ }
240
219
 
241
- // src/theme/default/utils/form.ts
242
- function isGroupImmediateSubmit(group) {
243
- return group === "code";
220
+ // src/util/client.ts
221
+ var import_client_fetch6 = require("@ory/client-fetch");
222
+ function frontendClient(sdkUrl, opts = {}) {
223
+ const config = new import_client_fetch6.Configuration({
224
+ ...opts,
225
+ basePath: sdkUrl,
226
+ credentials: "include",
227
+ headers: {
228
+ Accept: "application/json",
229
+ ...opts.headers
230
+ }
231
+ });
232
+ return new import_client_fetch6.FrontendApi(config);
244
233
  }
245
234
 
246
- // src/context/flow-context.tsx
247
- var import_jsx_runtime5 = require("react/jsx-runtime");
248
- var OryFlowContext = (0, import_react4.createContext)(null);
235
+ // src/context/config.tsx
236
+ var import_jsx_runtime6 = require("react/jsx-runtime");
237
+ var defaultProject = {
238
+ name: "Ory",
239
+ registration_enabled: true,
240
+ verification_enabled: true,
241
+ recovery_enabled: true,
242
+ recovery_ui_url: "/ui/recovery",
243
+ registration_ui_url: "/ui/registration",
244
+ verification_ui_url: "/ui/verification",
245
+ login_ui_url: "/ui/login",
246
+ settings_ui_url: "/ui/settings",
247
+ default_redirect_url: "/ui/welcome",
248
+ error_ui_url: "/ui/error",
249
+ default_locale: "en",
250
+ locale_behavior: "force_default"
251
+ };
252
+ var OryConfigurationContext = (0, import_react5.createContext)({
253
+ sdk: computeSdkConfig({}),
254
+ project: defaultProject
255
+ });
256
+ function computeSdkConfig(config) {
257
+ if ((config == null ? void 0 : config.url) && typeof config.url === "string") {
258
+ console.debug("Using sdk url from config");
259
+ return {
260
+ url: config.url.replace(/\/$/, ""),
261
+ options: config.options || {}
262
+ };
263
+ }
264
+ return {
265
+ url: getSDKUrl(),
266
+ options: (config == null ? void 0 : config.options) || {}
267
+ };
268
+ }
269
+ function getSDKUrl() {
270
+ var _a;
271
+ if (typeof process !== "undefined" && process.versions && process.versions.node) {
272
+ if (isProduction()) {
273
+ const sdkUrl = (_a = process.env["NEXT_PUBLIC_ORY_SDK_URL"]) != null ? _a : process.env["ORY_SDK_URL"];
274
+ if (!sdkUrl) {
275
+ throw new Error(
276
+ "Unable to determine SDK URL. Please set NEXT_PUBLIC_ORY_SDK_URL and/or ORY_SDK_URL in production environments."
277
+ );
278
+ }
279
+ return sdkUrl.replace(/\/$/, "");
280
+ } else {
281
+ if (process.env["__NEXT_PRIVATE_ORIGIN"]) {
282
+ return process.env["__NEXT_PRIVATE_ORIGIN"].replace(/\/$/, "");
283
+ } else if (process.env["VERCEL_URL"]) {
284
+ return `https://${process.env["VERCEL_URL"]}`.replace(/\/$/, "");
285
+ }
286
+ }
287
+ }
288
+ if (typeof window !== "undefined") {
289
+ return window.location.origin;
290
+ }
291
+ throw new Error(
292
+ "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."
293
+ );
294
+ }
249
295
 
250
296
  // src/context/intl-context.tsx
251
297
  var import_react_intl8 = require("react-intl");
@@ -262,21 +308,6 @@ var import_react_hook_form = require("react-hook-form");
262
308
  // src/util/onSubmitLogin.ts
263
309
  var import_client_fetch7 = require("@ory/client-fetch");
264
310
 
265
- // src/util/client.ts
266
- var import_client_fetch6 = require("@ory/client-fetch");
267
- function frontendClient(sdkUrl, opts = {}) {
268
- const config = new import_client_fetch6.Configuration({
269
- ...opts,
270
- basePath: sdkUrl,
271
- credentials: "include",
272
- headers: {
273
- Accept: "application/json",
274
- ...opts.headers
275
- }
276
- });
277
- return new import_client_fetch6.FrontendApi(config);
278
- }
279
-
280
311
  // src/util/onSubmitRecovery.ts
281
312
  var import_client_fetch8 = require("@ory/client-fetch");
282
313
 
@@ -293,26 +324,26 @@ var import_client_fetch11 = require("@ory/client-fetch");
293
324
  var import_client_fetch12 = require("@ory/client-fetch");
294
325
 
295
326
  // src/components/form/form.tsx
296
- var import_jsx_runtime6 = require("react/jsx-runtime");
327
+ var import_jsx_runtime7 = require("react/jsx-runtime");
297
328
 
298
329
  // src/components/form/groups.tsx
299
330
  var import_client_fetch17 = require("@ory/client-fetch");
300
331
 
301
332
  // src/components/form/nodes/input.tsx
302
333
  var import_client_fetch15 = require("@ory/client-fetch");
303
- var import_react5 = require("react");
334
+ var import_react6 = require("react");
304
335
  var import_react_hook_form3 = require("react-hook-form");
305
- var import_jsx_runtime7 = require("react/jsx-runtime");
336
+ var import_jsx_runtime8 = require("react/jsx-runtime");
306
337
 
307
338
  // src/components/form/nodes/node.tsx
308
339
  var import_client_fetch16 = require("@ory/client-fetch");
309
- var import_jsx_runtime8 = require("react/jsx-runtime");
340
+ var import_jsx_runtime9 = require("react/jsx-runtime");
310
341
 
311
342
  // src/components/form/groups.tsx
312
- var import_jsx_runtime9 = require("react/jsx-runtime");
343
+ var import_jsx_runtime10 = require("react/jsx-runtime");
313
344
 
314
345
  // src/components/form/messages.tsx
315
- var import_jsx_runtime10 = require("react/jsx-runtime");
346
+ var import_jsx_runtime11 = require("react/jsx-runtime");
316
347
 
317
348
  // src/components/form/social.tsx
318
349
  var import_client_fetch20 = require("@ory/client-fetch");
@@ -326,21 +357,21 @@ var import_react_hook_form4 = require("react-hook-form");
326
357
  var import_client_fetch18 = require("@ory/client-fetch");
327
358
 
328
359
  // src/components/form/form-provider.tsx
329
- var import_jsx_runtime11 = require("react/jsx-runtime");
360
+ var import_jsx_runtime12 = require("react/jsx-runtime");
330
361
 
331
362
  // src/components/form/social.tsx
332
- var import_jsx_runtime12 = require("react/jsx-runtime");
363
+ var import_jsx_runtime13 = require("react/jsx-runtime");
333
364
 
334
365
  // src/components/form/section.tsx
335
366
  var import_react_hook_form6 = require("react-hook-form");
336
- var import_jsx_runtime13 = require("react/jsx-runtime");
367
+ var import_jsx_runtime14 = require("react/jsx-runtime");
337
368
 
338
369
  // src/components/generic/divider.tsx
339
370
  var import_client_fetch21 = require("@ory/client-fetch");
340
- var import_jsx_runtime14 = require("react/jsx-runtime");
371
+ var import_jsx_runtime15 = require("react/jsx-runtime");
341
372
 
342
373
  // src/components/generic/page-header.tsx
343
- var import_jsx_runtime15 = require("react/jsx-runtime");
374
+ var import_jsx_runtime16 = require("react/jsx-runtime");
344
375
 
345
376
  // src/components/settings/settings-card.tsx
346
377
  var import_client_fetch22 = require("@ory/client-fetch");
@@ -349,30 +380,30 @@ var import_react_intl7 = require("react-intl");
349
380
  // src/components/settings/oidc-settings.tsx
350
381
  var import_react_intl2 = require("react-intl");
351
382
  var import_react_hook_form7 = require("react-hook-form");
352
- var import_jsx_runtime16 = require("react/jsx-runtime");
383
+ var import_jsx_runtime17 = require("react/jsx-runtime");
353
384
 
354
385
  // src/components/settings/passkey-settings.tsx
355
386
  var import_react_hook_form8 = require("react-hook-form");
356
387
  var import_react_intl3 = require("react-intl");
357
- var import_jsx_runtime17 = require("react/jsx-runtime");
388
+ var import_jsx_runtime18 = require("react/jsx-runtime");
358
389
 
359
390
  // src/components/settings/recovery-codes-settings.tsx
360
391
  var import_react_intl4 = require("react-intl");
361
392
  var import_react_hook_form9 = require("react-hook-form");
362
- var import_jsx_runtime18 = require("react/jsx-runtime");
393
+ var import_jsx_runtime19 = require("react/jsx-runtime");
363
394
 
364
395
  // src/components/settings/totp-settings.tsx
365
396
  var import_react_hook_form10 = require("react-hook-form");
366
397
  var import_react_intl5 = require("react-intl");
367
- var import_jsx_runtime19 = require("react/jsx-runtime");
398
+ var import_jsx_runtime20 = require("react/jsx-runtime");
368
399
 
369
400
  // src/components/settings/webauthn-settings.tsx
370
401
  var import_react_hook_form11 = require("react-hook-form");
371
402
  var import_react_intl6 = require("react-intl");
372
- var import_jsx_runtime20 = require("react/jsx-runtime");
403
+ var import_jsx_runtime21 = require("react/jsx-runtime");
373
404
 
374
405
  // src/components/settings/settings-card.tsx
375
- var import_jsx_runtime21 = require("react/jsx-runtime");
406
+ var import_jsx_runtime22 = require("react/jsx-runtime");
376
407
 
377
408
  // src/util/i18n/index.ts
378
409
  var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
@@ -2739,7 +2770,7 @@ var OryLocales = {
2739
2770
  };
2740
2771
 
2741
2772
  // src/context/intl-context.tsx
2742
- var import_jsx_runtime22 = require("react/jsx-runtime");
2773
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2743
2774
  function mergeTranslations(customTranslations) {
2744
2775
  return Object.keys(customTranslations).reduce((acc, key) => {
2745
2776
  acc[key] = { ...OryLocales[key], ...customTranslations[key] };
@@ -2752,12 +2783,12 @@ var IntlProvider = ({
2752
2783
  customTranslations
2753
2784
  }) => {
2754
2785
  const messages = mergeTranslations(customTranslations != null ? customTranslations : {});
2755
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2786
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2756
2787
  import_react_intl8.IntlProvider,
2757
2788
  {
2758
2789
  onWarn: () => ({}),
2759
2790
  defaultRichTextElements: {
2760
- del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("del", { children: chunks })
2791
+ del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("del", { children: chunks })
2761
2792
  },
2762
2793
  locale,
2763
2794
  messages: messages[locale],
@@ -2768,35 +2799,35 @@ var IntlProvider = ({
2768
2799
  };
2769
2800
 
2770
2801
  // src/context/provider.tsx
2771
- var import_jsx_runtime23 = require("react/jsx-runtime");
2802
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2772
2803
 
2773
2804
  // src/components/card/header.tsx
2774
- var import_jsx_runtime24 = require("react/jsx-runtime");
2805
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2775
2806
 
2776
2807
  // src/components/card/card.tsx
2777
- var import_jsx_runtime25 = require("react/jsx-runtime");
2808
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2778
2809
 
2779
2810
  // src/components/card/footer.tsx
2780
- var import_jsx_runtime26 = require("react/jsx-runtime");
2811
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2781
2812
 
2782
2813
  // src/components/card/content.tsx
2783
- var import_jsx_runtime27 = require("react/jsx-runtime");
2814
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2784
2815
 
2785
2816
  // src/components/card/two-step/state-method-active.tsx
2786
2817
  var import_client_fetch23 = require("@ory/client-fetch");
2787
- var import_jsx_runtime28 = require("react/jsx-runtime");
2818
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2788
2819
 
2789
2820
  // src/components/card/two-step/state-provide-identifier.tsx
2790
2821
  var import_client_fetch24 = require("@ory/client-fetch");
2791
- var import_jsx_runtime29 = require("react/jsx-runtime");
2822
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2792
2823
 
2793
2824
  // src/components/card/card-two-step.tsx
2794
2825
  var import_elements_react = require("@ory/elements-react");
2795
- var import_jsx_runtime30 = require("react/jsx-runtime");
2826
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2796
2827
 
2797
2828
  // src/components/card/card-consent.tsx
2798
2829
  var import_client_fetch25 = require("@ory/client-fetch");
2799
- var import_jsx_runtime31 = require("react/jsx-runtime");
2830
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2800
2831
 
2801
2832
  // src/components/card/two-step/state-select-method.tsx
2802
2833
  var import_react_intl9 = require("react-intl");
@@ -2804,10 +2835,10 @@ var import_react_intl9 = require("react-intl");
2804
2835
  // src/components/card/two-step/list-methods.tsx
2805
2836
  var import_elements_react2 = require("@ory/elements-react");
2806
2837
  var import_react_hook_form12 = require("react-hook-form");
2807
- var import_jsx_runtime32 = require("react/jsx-runtime");
2838
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2808
2839
 
2809
2840
  // src/components/card/two-step/state-select-method.tsx
2810
- var import_jsx_runtime33 = require("react/jsx-runtime");
2841
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2811
2842
  function toAuthMethodPickerOptions(visibleGroups) {
2812
2843
  return Object.fromEntries(
2813
2844
  Object.values(import_client_fetch26.UiNodeGroupEnum).filter((group) => {
@@ -2826,12 +2857,19 @@ function toAuthMethodPickerOptions(visibleGroups) {
2826
2857
  );
2827
2858
  }
2828
2859
 
2860
+ // src/util/nodes.ts
2861
+ function findScreenSelectionButton(nodes) {
2862
+ return nodes.find(
2863
+ (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
2864
+ );
2865
+ }
2866
+
2829
2867
  // src/theme/default/utils/logout.ts
2830
- var import_react6 = require("react");
2868
+ var import_react7 = require("react");
2831
2869
  function useClientLogout(config) {
2832
- const [logoutFlow, setLogoutFlow] = (0, import_react6.useState)();
2833
- const [isLoading, setIsLoading] = (0, import_react6.useState)(true);
2834
- const fetchLogoutFlow = (0, import_react6.useCallback)(async () => {
2870
+ const [logoutFlow, setLogoutFlow] = (0, import_react7.useState)();
2871
+ const [isLoading, setIsLoading] = (0, import_react7.useState)(true);
2872
+ const fetchLogoutFlow = (0, import_react7.useCallback)(async () => {
2835
2873
  try {
2836
2874
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow().catch((err) => {
2837
2875
  var _a;
@@ -2845,33 +2883,66 @@ function useClientLogout(config) {
2845
2883
  setIsLoading(false);
2846
2884
  }
2847
2885
  }, [config.sdk.url]);
2848
- (0, import_react6.useEffect)(() => {
2886
+ (0, import_react7.useEffect)(() => {
2849
2887
  void fetchLogoutFlow();
2850
2888
  }, [fetchLogoutFlow]);
2851
2889
  return { logoutFlow, didLoad: !isLoading };
2852
2890
  }
2853
2891
 
2892
+ // src/theme/default/utils/url.ts
2893
+ function restartFlowUrl(flow, fallback) {
2894
+ return flow.request_url || appendReturnTo(fallback, flow.return_to);
2895
+ }
2896
+ function initFlowUrl(sdkUrl, flowType, flow) {
2897
+ const result = `${sdkUrl}/self-service/${flowType}/browser`;
2898
+ const qs = new URLSearchParams();
2899
+ if (flow.oauth2_login_challenge) {
2900
+ qs.set("login_challenge", flow.oauth2_login_challenge);
2901
+ }
2902
+ if (flow.return_to) {
2903
+ qs.set("return_to", flow.return_to);
2904
+ } else if (typeof window !== "undefined") {
2905
+ const searchParams = new URLSearchParams(window.location.search);
2906
+ if (searchParams.has("return_to")) {
2907
+ qs.set("return_to", searchParams.get("return_to") || "");
2908
+ }
2909
+ }
2910
+ if (qs.toString().length === 0) {
2911
+ return result;
2912
+ }
2913
+ return result + "?" + qs.toString();
2914
+ }
2915
+ function appendReturnTo(url, returnTo) {
2916
+ if (!returnTo) {
2917
+ return url;
2918
+ }
2919
+ const urlObj = new URL(url);
2920
+ urlObj.searchParams.set("return_to", returnTo);
2921
+ return urlObj.toString();
2922
+ }
2923
+
2854
2924
  // src/theme/default/components/card/footer.tsx
2855
- var import_jsx_runtime34 = require("react/jsx-runtime");
2925
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2856
2926
  function DefaultCardFooter() {
2857
2927
  const oryFlow = (0, import_elements_react3.useOryFlow)();
2858
2928
  switch (oryFlow.flowType) {
2859
2929
  case import_client_fetch27.FlowType.Login:
2860
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LoginCardFooter, {});
2930
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, {});
2861
2931
  case import_client_fetch27.FlowType.Registration:
2862
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RegistrationCardFooter, {});
2932
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RegistrationCardFooter, {});
2863
2933
  case import_client_fetch27.FlowType.Recovery:
2864
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RecoveryCardFooter, {});
2934
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RecoveryCardFooter, {});
2865
2935
  case import_client_fetch27.FlowType.Verification:
2866
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(VerificationCardFooter, {});
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(VerificationCardFooter, {});
2867
2937
  case import_client_fetch27.FlowType.OAuth2Consent:
2868
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
2938
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
2869
2939
  default:
2870
2940
  return null;
2871
2941
  }
2872
2942
  }
2873
2943
  function LoginCardFooter() {
2874
- const { config, formState, flow, flowType } = (0, import_elements_react3.useOryFlow)();
2944
+ const { formState, flow, flowType } = (0, import_elements_react3.useOryFlow)();
2945
+ const config = (0, import_elements_react3.useOryConfiguration)();
2875
2946
  const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
2876
2947
  const intl = (0, import_react_intl10.useIntl)();
2877
2948
  if (flowType !== import_client_fetch27.FlowType.Login) {
@@ -2889,12 +2960,12 @@ function LoginCardFooter() {
2889
2960
  );
2890
2961
  }
2891
2962
  if (flow.refresh || flow.requested_aal === "aal2") {
2892
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2963
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2893
2964
  intl.formatMessage({
2894
2965
  id: "login.2fa.go-back"
2895
2966
  }),
2896
2967
  " ",
2897
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2968
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2898
2969
  "a",
2899
2970
  {
2900
2971
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2910,14 +2981,14 @@ function LoginCardFooter() {
2910
2981
  )
2911
2982
  ] });
2912
2983
  }
2913
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
2914
- formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2984
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
2985
+ formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2915
2986
  intl.formatMessage({
2916
2987
  id: "login.registration-label",
2917
2988
  defaultMessage: "No account?"
2918
2989
  }),
2919
2990
  " ",
2920
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2991
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2921
2992
  "a",
2922
2993
  {
2923
2994
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2930,7 +3001,7 @@ function LoginCardFooter() {
2930
3001
  }
2931
3002
  )
2932
3003
  ] }),
2933
- authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3004
+ authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2934
3005
  "a",
2935
3006
  {
2936
3007
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2941,7 +3012,7 @@ function LoginCardFooter() {
2941
3012
  })
2942
3013
  }
2943
3014
  ) }),
2944
- authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3015
+ authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2945
3016
  "a",
2946
3017
  {
2947
3018
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2956,7 +3027,8 @@ function LoginCardFooter() {
2956
3027
  }
2957
3028
  function RegistrationCardFooter() {
2958
3029
  const intl = (0, import_react_intl10.useIntl)();
2959
- const { config, flow, formState } = (0, import_elements_react3.useOryFlow)();
3030
+ const { flow, formState } = (0, import_elements_react3.useOryFlow)();
3031
+ const config = (0, import_elements_react3.useOryConfiguration)();
2960
3032
  const visibleGroups = useNodeGroupsWithVisibleNodes(flow.ui.nodes);
2961
3033
  const authMethodBlocks = toAuthMethodPickerOptions(visibleGroups);
2962
3034
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
@@ -2965,11 +3037,12 @@ function RegistrationCardFooter() {
2965
3037
  if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
2966
3038
  return null;
2967
3039
  }
2968
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3040
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2969
3041
  "a",
2970
3042
  {
2971
3043
  className: "font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",
2972
3044
  href: "",
3045
+ "data-testid": "ory/screen/registration/action/selectMethod",
2973
3046
  children: intl.formatMessage({
2974
3047
  id: "card.footer.select-another-method",
2975
3048
  defaultMessage: "Select another method"
@@ -2978,13 +3051,13 @@ function RegistrationCardFooter() {
2978
3051
  ) });
2979
3052
  case "select_method":
2980
3053
  default:
2981
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3054
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2982
3055
  intl.formatMessage({
2983
3056
  id: "registration.login-label",
2984
3057
  defaultMessage: "Already have an account?"
2985
3058
  }),
2986
3059
  " ",
2987
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3060
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2988
3061
  "a",
2989
3062
  {
2990
3063
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -3013,26 +3086,26 @@ function ConsentCardFooter({ flow }) {
3013
3086
  node_type: "input",
3014
3087
  name: "remember"
3015
3088
  });
3016
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-8 flex-col", children: [
3017
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
3018
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
3089
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-8 flex-col", children: [
3090
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
3091
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
3019
3092
  "Make sure you trust ",
3020
3093
  (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
3021
3094
  ] }),
3022
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
3095
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
3023
3096
  ] }),
3024
- rememberNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3097
+ rememberNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3025
3098
  Node2.Checkbox,
3026
3099
  {
3027
3100
  attributes: rememberNode.attributes,
3028
3101
  node: rememberNode
3029
3102
  }
3030
3103
  ),
3031
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3104
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3032
3105
  (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
3033
3106
  ).map((n) => {
3034
3107
  const attributes = n.attributes;
3035
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3108
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3036
3109
  Node2.Button,
3037
3110
  {
3038
3111
  node: n,
@@ -3041,8 +3114,8 @@ function ConsentCardFooter({ flow }) {
3041
3114
  attributes.value
3042
3115
  );
3043
3116
  }) }),
3044
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-sm", children: [
3045
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
3117
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-sm", children: [
3118
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
3046
3119
  "Authorizing will redirect to",
3047
3120
  " "
3048
3121
  ] }),
@@ -3294,15 +3367,8 @@ function useCardHeaderText(container, opts) {
3294
3367
  // src/theme/default/components/card/current-identifier-button.tsx
3295
3368
  var import_client_fetch29 = require("@ory/client-fetch");
3296
3369
  var import_elements_react4 = require("@ory/elements-react");
3297
-
3298
- // src/theme/default/assets/icons/arrow-left.svg
3299
- var React3 = __toESM(require("react"));
3300
- var import_jsx_runtime35 = require("react/jsx-runtime");
3301
- var SvgArrowLeft = (props) => {
3302
- var _a, _b;
3303
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
3304
- };
3305
- var arrow_left_default = SvgArrowLeft;
3370
+ var import_react8 = require("react");
3371
+ var import_react_hook_form13 = require("react-hook-form");
3306
3372
 
3307
3373
  // src/theme/default/utils/attributes.ts
3308
3374
  function omit(obj, keys) {
@@ -3313,35 +3379,63 @@ function omit(obj, keys) {
3313
3379
  return ret;
3314
3380
  }
3315
3381
 
3316
- // src/theme/default/components/card/current-identifier-button.tsx
3317
- var import_react_hook_form13 = require("react-hook-form");
3318
- var import_jsx_runtime36 = require("react/jsx-runtime");
3319
- function DefaultCurrentIdentifierButton() {
3320
- const { flow, flowType, config, formState } = (0, import_elements_react4.useOryFlow)();
3321
- const { setValue } = (0, import_react_hook_form13.useFormContext)();
3322
- const ui = flow.ui;
3323
- if (formState.current === "provide_identifier") {
3324
- return null;
3325
- }
3326
- if (flowType === import_client_fetch29.FlowType.Login && flow.requested_aal === "aal2") {
3327
- return null;
3328
- }
3329
- const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
3330
- if (!nodeBackButton) {
3331
- return null;
3332
- }
3382
+ // src/util/omitAttributes.ts
3383
+ function omitInputAttributes({
3384
+ ...attrs
3385
+ }) {
3386
+ return omit(attrs, [
3387
+ "autocomplete",
3388
+ "label",
3389
+ "node_type",
3390
+ "maxlength",
3391
+ "onclick",
3392
+ "onclickTrigger",
3393
+ "onload",
3394
+ "onloadTrigger"
3395
+ ]);
3396
+ }
3397
+
3398
+ // src/theme/default/assets/icons/arrow-left.svg
3399
+ var React3 = __toESM(require("react"));
3400
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3401
+ var SvgArrowLeft = (props) => {
3402
+ var _a, _b;
3403
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
3404
+ };
3405
+ var arrow_left_default = SvgArrowLeft;
3406
+
3407
+ // src/theme/default/components/card/current-identifier-button.tsx
3408
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3409
+ function DefaultCurrentIdentifierButton() {
3410
+ var _a;
3411
+ const { flow, flowType, formState } = (0, import_elements_react4.useOryFlow)();
3412
+ const { setValue, getValues, watch } = (0, import_react_hook_form13.useFormContext)();
3413
+ const [turnstileResponse, setTurnstileResponse] = (0, import_react8.useState)();
3414
+ const config = (0, import_elements_react4.useOryConfiguration)();
3415
+ const ui = flow.ui;
3416
+ const captchaVerificationValue = (_a = watch("transient_payload")) == null ? void 0 : _a.captcha_turnstile_response;
3417
+ (0, import_react8.useEffect)(() => {
3418
+ if (captchaVerificationValue) {
3419
+ setTurnstileResponse(captchaVerificationValue);
3420
+ }
3421
+ }, [captchaVerificationValue]);
3422
+ if (formState.current === "provide_identifier") {
3423
+ return null;
3424
+ }
3425
+ if (flowType === import_client_fetch29.FlowType.Login && flow.requested_aal === "aal2") {
3426
+ return null;
3427
+ }
3428
+ const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
3429
+ if (!nodeBackButton) {
3430
+ return null;
3431
+ }
3333
3432
  const initFlowUrl2 = restartFlowUrl(
3334
3433
  flow,
3335
3434
  `${config.sdk.url}/self-service/${flowType}/browser`
3336
3435
  );
3337
- const attributes = omit(nodeBackButton, [
3338
- "autocomplete",
3339
- "node_type",
3340
- "maxlength"
3341
- ]);
3342
3436
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
3343
3437
  if (screenSelectionNode) {
3344
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
3438
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
3345
3439
  flow.ui.nodes.filter((n) => {
3346
3440
  if ((0, import_client_fetch29.isUiNodeInputAttributes)(n.attributes)) {
3347
3441
  return n.attributes.type === "hidden";
@@ -3349,21 +3443,25 @@ function DefaultCurrentIdentifierButton() {
3349
3443
  return false;
3350
3444
  }).map((n) => {
3351
3445
  const attrs = n.attributes;
3352
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3446
+ let value = getValues(attrs.name) || attrs.value;
3447
+ if (attrs.name === "transient_payload.captcha_turnstile_response" && turnstileResponse) {
3448
+ value = turnstileResponse;
3449
+ }
3450
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3353
3451
  "input",
3354
3452
  {
3355
3453
  type: "hidden",
3356
3454
  name: attrs.name,
3357
- value: attrs.value
3455
+ value
3358
3456
  },
3359
3457
  attrs.name
3360
3458
  );
3361
3459
  }),
3362
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3460
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3363
3461
  "button",
3364
3462
  {
3365
3463
  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",
3366
- ...attributes,
3464
+ ...omitInputAttributes(nodeBackButton),
3367
3465
  type: "submit",
3368
3466
  onClick: () => {
3369
3467
  setValue(
@@ -3376,8 +3474,8 @@ function DefaultCurrentIdentifierButton() {
3376
3474
  value: screenSelectionNode.attributes.value,
3377
3475
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3378
3476
  "data-testid": `ory/screen/${flowType}/action/restart`,
3379
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3380
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3477
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3478
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3381
3479
  arrow_left_default,
3382
3480
  {
3383
3481
  size: 16,
@@ -3385,22 +3483,22 @@ function DefaultCurrentIdentifierButton() {
3385
3483
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3386
3484
  }
3387
3485
  ),
3388
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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 })
3486
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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 })
3389
3487
  ] })
3390
3488
  }
3391
3489
  )
3392
3490
  ] });
3393
3491
  }
3394
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3492
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3395
3493
  "a",
3396
3494
  {
3397
3495
  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",
3398
- ...attributes,
3496
+ ...omitInputAttributes(nodeBackButton),
3399
3497
  href: initFlowUrl2,
3400
3498
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3401
3499
  "data-testid": `ory/screen/${flowType}/action/restart`,
3402
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3403
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3500
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3501
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3404
3502
  arrow_left_default,
3405
3503
  {
3406
3504
  size: 16,
@@ -3408,7 +3506,7 @@ function DefaultCurrentIdentifierButton() {
3408
3506
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3409
3507
  }
3410
3508
  ),
3411
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("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 })
3509
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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 })
3412
3510
  ] })
3413
3511
  }
3414
3512
  );
@@ -3450,18 +3548,18 @@ function guessRegistrationBackButton(uiNodes) {
3450
3548
  }
3451
3549
 
3452
3550
  // src/theme/default/components/card/header.tsx
3453
- var import_jsx_runtime37 = require("react/jsx-runtime");
3551
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3454
3552
  function InnerCardHeader({
3455
3553
  title,
3456
3554
  text,
3457
3555
  messageId
3458
3556
  }) {
3459
3557
  const { Card } = (0, import_elements_react5.useComponents)();
3460
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
3461
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Card.Logo, {}),
3462
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-2", children: [
3463
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3464
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3558
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
3559
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Card.Logo, {}),
3560
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-2", children: [
3561
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3562
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3465
3563
  "p",
3466
3564
  {
3467
3565
  className: "leading-normal text-interface-foreground-default-secondary",
@@ -3469,7 +3567,7 @@ function InnerCardHeader({
3469
3567
  children: text
3470
3568
  }
3471
3569
  ),
3472
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DefaultCurrentIdentifierButton, {})
3570
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DefaultCurrentIdentifierButton, {})
3473
3571
  ] })
3474
3572
  ] });
3475
3573
  }
@@ -3479,44 +3577,40 @@ function DefaultCardHeader() {
3479
3577
  context.flow.ui,
3480
3578
  context
3481
3579
  );
3482
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InnerCardHeader, { title, text: description, messageId });
3580
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InnerCardHeader, { title, text: description, messageId });
3483
3581
  }
3484
3582
 
3485
3583
  // src/theme/default/components/card/logo.tsx
3486
3584
  var import_elements_react6 = require("@ory/elements-react");
3487
- var import_jsx_runtime38 = require("react/jsx-runtime");
3585
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3488
3586
  function DefaultCardLogo() {
3489
- var _a;
3490
- const flow = (0, import_elements_react6.useOryFlow)();
3491
- if (flow.config.project.logo_light_url) {
3492
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3587
+ const config = (0, import_elements_react6.useOryConfiguration)();
3588
+ if (config.project.logo_light_url) {
3589
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3493
3590
  "img",
3494
3591
  {
3495
- src: flow.config.project.logo_light_url,
3592
+ src: config.project.logo_light_url,
3496
3593
  width: 100,
3497
3594
  height: 36,
3498
3595
  alt: "Logo"
3499
3596
  }
3500
3597
  );
3501
3598
  }
3502
- if (flow.config.logoUrl) {
3503
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
3504
- }
3505
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: (_a = flow.config.project.name) != null ? _a : flow.config.name });
3599
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.project.name });
3506
3600
  }
3507
3601
 
3508
3602
  // src/theme/default/components/card/layout.tsx
3509
- var import_jsx_runtime39 = require("react/jsx-runtime");
3603
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3510
3604
  function DefaultCardLayout({ children }) {
3511
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
3605
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
3512
3606
  }
3513
3607
 
3514
3608
  // src/theme/default/components/card/index.tsx
3515
- var import_jsx_runtime40 = require("react/jsx-runtime");
3609
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3516
3610
  function DefaultCard({ children }) {
3517
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("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__ */ (0, import_jsx_runtime40.jsxs)("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: [
3611
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("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__ */ (0, import_jsx_runtime41.jsxs)("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: [
3518
3612
  children,
3519
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
3613
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Badge, {})
3520
3614
  ] }) });
3521
3615
  }
3522
3616
 
@@ -3534,52 +3628,52 @@ var import_client_fetch31 = require("@ory/client-fetch");
3534
3628
 
3535
3629
  // src/theme/default/components/form/social.tsx
3536
3630
  var import_elements_react7 = require("@ory/elements-react");
3537
- var import_react7 = require("react");
3631
+ var import_react9 = require("react");
3538
3632
  var import_react_hook_form14 = require("react-hook-form");
3539
3633
  var import_react_intl12 = require("react-intl");
3540
3634
  var import_usehooks_ts = require("usehooks-ts");
3541
3635
 
3542
3636
  // src/theme/default/provider-logos/apple.svg
3543
3637
  var React4 = __toESM(require("react"));
3544
- var import_jsx_runtime41 = require("react/jsx-runtime");
3638
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3545
3639
  var SvgApple = (props) => {
3546
3640
  var _a, _b;
3547
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("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" }) });
3641
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("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" }) });
3548
3642
  };
3549
3643
  var apple_default = SvgApple;
3550
3644
 
3551
3645
  // src/theme/default/provider-logos/auth0.svg
3552
3646
  var React5 = __toESM(require("react"));
3553
- var import_jsx_runtime42 = require("react/jsx-runtime");
3647
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3554
3648
  var SvgAuth0 = (props) => {
3555
3649
  var _a, _b;
3556
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("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__ */ (0, import_jsx_runtime42.jsx)("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" }) });
3650
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("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__ */ (0, import_jsx_runtime43.jsx)("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" }) });
3557
3651
  };
3558
3652
  var auth0_default = SvgAuth0;
3559
3653
 
3560
3654
  // src/theme/default/provider-logos/discord.svg
3561
3655
  var React6 = __toESM(require("react"));
3562
- var import_jsx_runtime43 = require("react/jsx-runtime");
3656
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3563
3657
  var SvgDiscord = (props) => {
3564
3658
  var _a, _b;
3565
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("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: [
3566
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("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" }),
3567
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("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" })
3659
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("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: [
3660
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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" }),
3661
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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" })
3568
3662
  ] });
3569
3663
  };
3570
3664
  var discord_default = SvgDiscord;
3571
3665
 
3572
3666
  // src/theme/default/provider-logos/facebook.svg
3573
3667
  var React7 = __toESM(require("react"));
3574
- var import_jsx_runtime44 = require("react/jsx-runtime");
3668
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3575
3669
  var SvgFacebook = (props) => {
3576
3670
  var _a, _b;
3577
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("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: [
3578
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3579
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("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" }),
3580
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
3581
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { stopColor: "#18ACFE" }),
3582
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
3671
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("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: [
3672
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3673
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("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" }),
3674
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
3675
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { stopColor: "#18ACFE" }),
3676
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
3583
3677
  ] }) })
3584
3678
  ] });
3585
3679
  };
@@ -3587,111 +3681,111 @@ var facebook_default = SvgFacebook;
3587
3681
 
3588
3682
  // src/theme/default/provider-logos/github.svg
3589
3683
  var React8 = __toESM(require("react"));
3590
- var import_jsx_runtime45 = require("react/jsx-runtime");
3684
+ var import_jsx_runtime46 = require("react/jsx-runtime");
3591
3685
  var SvgGithub = (props) => {
3592
3686
  var _a, _b;
3593
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("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__ */ (0, import_jsx_runtime45.jsx)("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" }) });
3687
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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__ */ (0, import_jsx_runtime46.jsx)("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" }) });
3594
3688
  };
3595
3689
  var github_default = SvgGithub;
3596
3690
 
3597
3691
  // src/theme/default/provider-logos/gitlab.svg
3598
3692
  var React9 = __toESM(require("react"));
3599
- var import_jsx_runtime46 = require("react/jsx-runtime");
3693
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3600
3694
  var SvgGitlab = (props) => {
3601
3695
  var _a, _b;
3602
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("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: [
3603
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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" }),
3604
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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" }),
3605
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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" }),
3606
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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" })
3696
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("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: [
3697
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3698
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3699
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3700
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" })
3607
3701
  ] });
3608
3702
  };
3609
3703
  var gitlab_default = SvgGitlab;
3610
3704
 
3611
3705
  // src/theme/default/provider-logos/google.svg
3612
3706
  var React10 = __toESM(require("react"));
3613
- var import_jsx_runtime47 = require("react/jsx-runtime");
3707
+ var import_jsx_runtime48 = require("react/jsx-runtime");
3614
3708
  var SvgGoogle = (props) => {
3615
3709
  var _a, _b;
3616
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("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: [
3617
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3618
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3619
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
3620
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" })
3710
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("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: [
3711
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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" }),
3712
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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" }),
3713
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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" }),
3714
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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" })
3621
3715
  ] });
3622
3716
  };
3623
3717
  var google_default = SvgGoogle;
3624
3718
 
3625
3719
  // src/theme/default/provider-logos/linkedin.svg
3626
3720
  var React11 = __toESM(require("react"));
3627
- var import_jsx_runtime48 = require("react/jsx-runtime");
3721
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3628
3722
  var SvgLinkedin = (props) => {
3629
3723
  var _a, _b;
3630
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("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: [
3631
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3632
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("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" })
3724
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("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: [
3725
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3726
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("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" })
3633
3727
  ] });
3634
3728
  };
3635
3729
  var linkedin_default = SvgLinkedin;
3636
3730
 
3637
3731
  // src/theme/default/provider-logos/microsoft.svg
3638
3732
  var React12 = __toESM(require("react"));
3639
- var import_jsx_runtime49 = require("react/jsx-runtime");
3733
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3640
3734
  var SvgMicrosoft = (props) => {
3641
3735
  var _a, _b;
3642
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("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: [
3643
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3644
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3645
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3646
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3736
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("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: [
3737
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3738
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3739
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3740
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3647
3741
  ] });
3648
3742
  };
3649
3743
  var microsoft_default = SvgMicrosoft;
3650
3744
 
3651
3745
  // src/theme/default/provider-logos/slack.svg
3652
3746
  var React13 = __toESM(require("react"));
3653
- var import_jsx_runtime50 = require("react/jsx-runtime");
3747
+ var import_jsx_runtime51 = require("react/jsx-runtime");
3654
3748
  var SvgSlack = (props) => {
3655
3749
  var _a, _b;
3656
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("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: [
3657
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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" }),
3658
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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" }),
3659
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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" }),
3660
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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" })
3750
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("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: [
3751
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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" }),
3752
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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" }),
3753
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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" }),
3754
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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" })
3661
3755
  ] });
3662
3756
  };
3663
3757
  var slack_default = SvgSlack;
3664
3758
 
3665
3759
  // src/theme/default/provider-logos/spotify.svg
3666
3760
  var React14 = __toESM(require("react"));
3667
- var import_jsx_runtime51 = require("react/jsx-runtime");
3761
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3668
3762
  var SvgSpotify = (props) => {
3669
3763
  var _a, _b;
3670
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("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: [
3671
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3672
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("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" })
3764
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("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: [
3765
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3766
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("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" })
3673
3767
  ] });
3674
3768
  };
3675
3769
  var spotify_default = SvgSpotify;
3676
3770
 
3677
3771
  // src/theme/default/provider-logos/yandex.svg
3678
3772
  var React15 = __toESM(require("react"));
3679
- var import_jsx_runtime52 = require("react/jsx-runtime");
3773
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3680
3774
  var SvgYandex = (props) => {
3681
3775
  var _a, _b;
3682
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("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: [
3683
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3684
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("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" })
3776
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("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: [
3777
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3778
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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" })
3685
3779
  ] });
3686
3780
  };
3687
3781
  var yandex_default = SvgYandex;
3688
3782
 
3689
3783
  // src/theme/default/provider-logos/x.svg
3690
3784
  var React16 = __toESM(require("react"));
3691
- var import_jsx_runtime53 = require("react/jsx-runtime");
3785
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3692
3786
  var SvgX = (props) => {
3693
3787
  var _a, _b;
3694
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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" }) });
3788
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("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" }) });
3695
3789
  };
3696
3790
  var x_default = SvgX;
3697
3791
 
@@ -3714,9 +3808,9 @@ var logos = {
3714
3808
  var provider_logos_default = logos;
3715
3809
 
3716
3810
  // src/theme/default/components/form/spinner.tsx
3717
- var import_jsx_runtime54 = require("react/jsx-runtime");
3811
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3718
3812
  function Spinner({ className }) {
3719
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
3813
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3720
3814
  "svg",
3721
3815
  {
3722
3816
  "aria-hidden": "true",
@@ -3729,7 +3823,7 @@ function Spinner({ className }) {
3729
3823
  fill: "none",
3730
3824
  xmlns: "http://www.w3.org/2000/svg",
3731
3825
  children: [
3732
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3826
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3733
3827
  "path",
3734
3828
  {
3735
3829
  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",
@@ -3738,7 +3832,7 @@ function Spinner({ className }) {
3738
3832
  strokeLinejoin: "round"
3739
3833
  }
3740
3834
  ) }),
3741
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3835
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3742
3836
  "rect",
3743
3837
  {
3744
3838
  width: "24",
@@ -3754,25 +3848,7 @@ function Spinner({ className }) {
3754
3848
 
3755
3849
  // src/theme/default/components/form/social.tsx
3756
3850
  var import_client_fetch30 = require("@ory/client-fetch");
3757
-
3758
- // src/util/omitAttributes.ts
3759
- function omitInputAttributes({
3760
- ...attrs
3761
- }) {
3762
- return omit(attrs, [
3763
- "autocomplete",
3764
- "label",
3765
- "node_type",
3766
- "maxlength",
3767
- "onclick",
3768
- "onclickTrigger",
3769
- "onload",
3770
- "onloadTrigger"
3771
- ]);
3772
- }
3773
-
3774
- // src/theme/default/components/form/social.tsx
3775
- var import_jsx_runtime55 = require("react/jsx-runtime");
3851
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3776
3852
  function extractProvider(context) {
3777
3853
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
3778
3854
  return context.provider;
@@ -3807,13 +3883,13 @@ function DefaultButtonSocial({
3807
3883
  onClick == null ? void 0 : onClick();
3808
3884
  setClicked(true);
3809
3885
  };
3810
- (0, import_react7.useEffect)(() => {
3886
+ (0, import_react9.useEffect)(() => {
3811
3887
  if (!isSubmitting) {
3812
3888
  setClicked(false);
3813
3889
  }
3814
3890
  }, [isSubmitting, setClicked]);
3815
3891
  const label = node.meta.label ? (0, import_elements_react7.uiTextToFormattedMessage)(node.meta.label, intl) : "";
3816
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3892
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
3817
3893
  "button",
3818
3894
  {
3819
3895
  className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded-buttons flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
@@ -3827,21 +3903,21 @@ function DefaultButtonSocial({
3827
3903
  "aria-label": label,
3828
3904
  ...omitInputAttributes(rest),
3829
3905
  children: [
3830
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Spinner, { className: "size-5" }) }),
3831
- showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
3832
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3833
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 block" })
3906
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Spinner, { className: "size-5" }) }),
3907
+ showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
3908
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3909
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "size-5 block" })
3834
3910
  ] }) : null
3835
3911
  ]
3836
3912
  }
3837
3913
  );
3838
3914
  }
3839
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
3915
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
3840
3916
  function DefaultSocialButtonContainer({
3841
3917
  children,
3842
3918
  nodes
3843
3919
  }) {
3844
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3920
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3845
3921
  "div",
3846
3922
  {
3847
3923
  className: cn("grid gap-3", {
@@ -3855,11 +3931,11 @@ function DefaultSocialButtonContainer({
3855
3931
  );
3856
3932
  }
3857
3933
  function GenericLogo({ label }) {
3858
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("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 });
3934
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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 });
3859
3935
  }
3860
3936
 
3861
3937
  // src/theme/default/components/form/index.tsx
3862
- var import_jsx_runtime56 = require("react/jsx-runtime");
3938
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3863
3939
  function DefaultFormContainer({
3864
3940
  children,
3865
3941
  onSubmit,
@@ -3867,7 +3943,7 @@ function DefaultFormContainer({
3867
3943
  method,
3868
3944
  "data-testid": dataTestId
3869
3945
  }) {
3870
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3946
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3871
3947
  "form",
3872
3948
  {
3873
3949
  "data-testid": dataTestId,
@@ -3885,7 +3961,7 @@ function DefaultMessageContainer({ children }) {
3885
3961
  if (!children || Array.isArray(children) && children.length === 0) {
3886
3962
  return null;
3887
3963
  }
3888
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3964
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3889
3965
  "section",
3890
3966
  {
3891
3967
  className: cn(
@@ -3897,7 +3973,7 @@ function DefaultMessageContainer({ children }) {
3897
3973
  }
3898
3974
  function DefaultMessage({ message }) {
3899
3975
  const intl = (0, import_react_intl13.useIntl)();
3900
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3976
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3901
3977
  "span",
3902
3978
  {
3903
3979
  className: cn(
@@ -3917,60 +3993,60 @@ var import_react_intl14 = require("react-intl");
3917
3993
 
3918
3994
  // src/theme/default/assets/icons/code.svg
3919
3995
  var React17 = __toESM(require("react"));
3920
- var import_jsx_runtime57 = require("react/jsx-runtime");
3996
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3921
3997
  var SvgCode = (props) => {
3922
3998
  var _a, _b;
3923
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
3999
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
3924
4000
  };
3925
4001
  var code_default = SvgCode;
3926
4002
 
3927
4003
  // src/theme/default/assets/icons/passkey.svg
3928
4004
  var React18 = __toESM(require("react"));
3929
- var import_jsx_runtime58 = require("react/jsx-runtime");
4005
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3930
4006
  var SvgPasskey = (props) => {
3931
4007
  var _a, _b;
3932
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
4008
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
3933
4009
  };
3934
4010
  var passkey_default = SvgPasskey;
3935
4011
 
3936
4012
  // src/theme/default/assets/icons/password.svg
3937
4013
  var React19 = __toESM(require("react"));
3938
- var import_jsx_runtime59 = require("react/jsx-runtime");
4014
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3939
4015
  var SvgPassword = (props) => {
3940
4016
  var _a, _b;
3941
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
4017
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
3942
4018
  };
3943
4019
  var password_default = SvgPassword;
3944
4020
 
3945
4021
  // src/theme/default/assets/icons/webauthn.svg
3946
4022
  var React20 = __toESM(require("react"));
3947
- var import_jsx_runtime60 = require("react/jsx-runtime");
4023
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3948
4024
  var SvgWebauthn = (props) => {
3949
4025
  var _a, _b;
3950
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
4026
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
3951
4027
  };
3952
4028
  var webauthn_default = SvgWebauthn;
3953
4029
 
3954
4030
  // src/theme/default/assets/icons/totp.svg
3955
4031
  var React21 = __toESM(require("react"));
3956
- var import_jsx_runtime61 = require("react/jsx-runtime");
4032
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3957
4033
  var SvgTotp = (props) => {
3958
4034
  var _a, _b;
3959
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
4035
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
3960
4036
  };
3961
4037
  var totp_default = SvgTotp;
3962
4038
 
3963
4039
  // src/theme/default/assets/icons/code-asterix.svg
3964
4040
  var React22 = __toESM(require("react"));
3965
- var import_jsx_runtime62 = require("react/jsx-runtime");
4041
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3966
4042
  var SvgCodeAsterix = (props) => {
3967
4043
  var _a, _b;
3968
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
4044
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
3969
4045
  };
3970
4046
  var code_asterix_default = SvgCodeAsterix;
3971
4047
 
3972
4048
  // src/theme/default/components/card/list-item.tsx
3973
- var import_jsx_runtime63 = require("react/jsx-runtime");
4049
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3974
4050
  function ListItem({
3975
4051
  icon: Icon,
3976
4052
  as,
@@ -3981,7 +4057,7 @@ function ListItem({
3981
4057
  ...props
3982
4058
  }) {
3983
4059
  const Comp = as || "div";
3984
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4060
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3985
4061
  Comp,
3986
4062
  {
3987
4063
  ...props,
@@ -3990,10 +4066,10 @@ function ListItem({
3990
4066
  className
3991
4067
  ),
3992
4068
  children: [
3993
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
3994
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
3995
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
3996
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4069
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
4070
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4071
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4072
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
3997
4073
  ] }),
3998
4074
  children
3999
4075
  ]
@@ -4002,7 +4078,7 @@ function ListItem({
4002
4078
  }
4003
4079
 
4004
4080
  // src/theme/default/components/card/auth-method-list-item.tsx
4005
- var import_jsx_runtime64 = require("react/jsx-runtime");
4081
+ var import_jsx_runtime65 = require("react/jsx-runtime");
4006
4082
  var iconsMap = {
4007
4083
  code: code_default,
4008
4084
  passkey: passkey_default,
@@ -4021,7 +4097,7 @@ function DefaultAuthMethodListItem({
4021
4097
  var _a;
4022
4098
  const intl = (0, import_react_intl14.useIntl)();
4023
4099
  const Icon = iconsMap[group] || null;
4024
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4100
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4025
4101
  ListItem,
4026
4102
  {
4027
4103
  as: "button",
@@ -4046,8 +4122,8 @@ var import_elements_react9 = require("@ory/elements-react");
4046
4122
  var import_class_variance_authority = require("class-variance-authority");
4047
4123
  var import_react_hook_form15 = require("react-hook-form");
4048
4124
  var import_react_intl15 = require("react-intl");
4049
- var import_react8 = require("react");
4050
- var import_jsx_runtime65 = require("react/jsx-runtime");
4125
+ var import_react10 = require("react");
4126
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4051
4127
  var buttonStyles = (0, import_class_variance_authority.cva)(
4052
4128
  [
4053
4129
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -4087,20 +4163,20 @@ var DefaultButton = ({
4087
4163
  }) => {
4088
4164
  var _a;
4089
4165
  const { type, name, value, ...rest } = attributes;
4090
- const [clicked, setClicked] = (0, import_react8.useState)(false);
4166
+ const [clicked, setClicked] = (0, import_react10.useState)(false);
4091
4167
  const intl = (0, import_react_intl15.useIntl)();
4092
4168
  const label = (0, import_client_fetch32.getNodeLabel)(node);
4093
4169
  const {
4094
4170
  formState: { isSubmitting },
4095
4171
  setValue
4096
4172
  } = (0, import_react_hook_form15.useFormContext)();
4097
- (0, import_react8.useEffect)(() => {
4173
+ (0, import_react10.useEffect)(() => {
4098
4174
  if (!isSubmitting) {
4099
4175
  setClicked(false);
4100
4176
  }
4101
4177
  }, [isSubmitting]);
4102
4178
  const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret") || attributes.name.includes("action") && attributes.value === "accept";
4103
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4179
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
4104
4180
  "button",
4105
4181
  {
4106
4182
  ...omitInputAttributes(rest),
@@ -4120,8 +4196,8 @@ var DefaultButton = ({
4120
4196
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
4121
4197
  "data-loading": clicked,
4122
4198
  children: [
4123
- clicked ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Spinner, {}) : null,
4124
- label ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) }) : ""
4199
+ clicked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, {}) : null,
4200
+ label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) }) : ""
4125
4201
  ]
4126
4202
  }
4127
4203
  );
@@ -4136,7 +4212,7 @@ var import_react_intl17 = require("react-intl");
4136
4212
 
4137
4213
  // src/theme/default/components/ui/checkbox-label.tsx
4138
4214
  var import_react_intl16 = require("react-intl");
4139
- var import_jsx_runtime66 = require("react/jsx-runtime");
4215
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4140
4216
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
4141
4217
  function computeLabelElements(labelText) {
4142
4218
  const elements = [];
@@ -4152,7 +4228,7 @@ function computeLabelElements(labelText) {
4152
4228
  elements.push(labelText.slice(lastIndex, matchStart));
4153
4229
  }
4154
4230
  elements.push(
4155
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4231
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4156
4232
  "a",
4157
4233
  {
4158
4234
  href: url,
@@ -4177,13 +4253,13 @@ function CheckboxLabel({ label }) {
4177
4253
  return null;
4178
4254
  }
4179
4255
  const labelText = uiTextToFormattedMessage(label, intl);
4180
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: computeLabelElements(labelText) });
4256
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: computeLabelElements(labelText) });
4181
4257
  }
4182
4258
 
4183
4259
  // src/theme/default/components/form/checkbox.tsx
4184
- var import_jsx_runtime67 = require("react/jsx-runtime");
4260
+ var import_jsx_runtime68 = require("react/jsx-runtime");
4185
4261
  function CheckboxSVG() {
4186
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4262
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4187
4263
  "svg",
4188
4264
  {
4189
4265
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -4192,7 +4268,7 @@ function CheckboxSVG() {
4192
4268
  height: "16",
4193
4269
  viewBox: "0 0 16 16",
4194
4270
  fill: "none",
4195
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4271
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4196
4272
  "path",
4197
4273
  {
4198
4274
  fillRule: "evenodd",
@@ -4212,9 +4288,9 @@ var DefaultCheckbox = ({
4212
4288
  const label = (0, import_client_fetch33.getNodeLabel)(node);
4213
4289
  const { register } = (0, import_react_hook_form16.useFormContext)();
4214
4290
  const hasError = node.messages.some((m) => m.type === "error");
4215
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4216
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "flex h-5 items-center", children: [
4217
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4291
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4292
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex h-5 items-center", children: [
4293
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4218
4294
  "input",
4219
4295
  {
4220
4296
  ...omitInputAttributes(attributes),
@@ -4224,14 +4300,15 @@ var DefaultCheckbox = ({
4224
4300
  "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",
4225
4301
  hasError && "border-interface-border-validation-danger"
4226
4302
  ),
4303
+ "data-testid": `ory/form/node/input/${name}`,
4227
4304
  ...register(name)
4228
4305
  }
4229
4306
  ),
4230
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckboxSVG, {})
4307
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxSVG, {})
4231
4308
  ] }),
4232
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "flex flex-col", children: [
4233
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckboxLabel, { label }) }),
4234
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4309
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex flex-col", children: [
4310
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxLabel, { label }) }),
4311
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4235
4312
  "span",
4236
4313
  {
4237
4314
  className: cn(
@@ -4252,10 +4329,10 @@ var import_elements_react11 = require("@ory/elements-react");
4252
4329
  var import_client_fetch34 = require("@ory/client-fetch");
4253
4330
 
4254
4331
  // src/util/childCounter.ts
4255
- var import_react9 = require("react");
4332
+ var import_react11 = require("react");
4256
4333
  function countRenderableChildren(children) {
4257
- return import_react9.Children.toArray(children).filter((c) => {
4258
- if ((0, import_react9.isValidElement)(c)) {
4334
+ return import_react11.Children.toArray(children).filter((c) => {
4335
+ if ((0, import_react11.isValidElement)(c)) {
4259
4336
  return true;
4260
4337
  }
4261
4338
  return false;
@@ -4263,14 +4340,14 @@ function countRenderableChildren(children) {
4263
4340
  }
4264
4341
 
4265
4342
  // src/theme/default/components/form/group-container.tsx
4266
- var import_jsx_runtime68 = require("react/jsx-runtime");
4343
+ var import_jsx_runtime69 = require("react/jsx-runtime");
4267
4344
  function DefaultGroupContainer({ children }) {
4268
4345
  const { flowType } = (0, import_elements_react11.useOryFlow)();
4269
4346
  const count = countRenderableChildren(children);
4270
4347
  if (count === 0) {
4271
4348
  return null;
4272
4349
  }
4273
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4350
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4274
4351
  "div",
4275
4352
  {
4276
4353
  className: cn(
@@ -4283,16 +4360,16 @@ function DefaultGroupContainer({ children }) {
4283
4360
  }
4284
4361
 
4285
4362
  // src/theme/default/components/form/horizontal-divider.tsx
4286
- var import_jsx_runtime69 = require("react/jsx-runtime");
4363
+ var import_jsx_runtime70 = require("react/jsx-runtime");
4287
4364
  function DefaultHorizontalDivider() {
4288
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("hr", { className: "border-interface-border-default-primary" });
4365
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("hr", { className: "border-interface-border-default-primary" });
4289
4366
  }
4290
4367
 
4291
4368
  // src/theme/default/components/form/image.tsx
4292
- var import_jsx_runtime70 = require("react/jsx-runtime");
4369
+ var import_jsx_runtime71 = require("react/jsx-runtime");
4293
4370
  function DefaultImage({ attributes, node }) {
4294
4371
  var _a;
4295
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4372
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4296
4373
  "img",
4297
4374
  {
4298
4375
  ...omitInputAttributes(attributes),
@@ -4304,33 +4381,33 @@ function DefaultImage({ attributes, node }) {
4304
4381
  // src/theme/default/components/form/input.tsx
4305
4382
  var import_client_fetch35 = require("@ory/client-fetch");
4306
4383
  var import_elements_react12 = require("@ory/elements-react");
4307
- var import_react10 = require("react");
4384
+ var import_react12 = require("react");
4308
4385
  var import_react_hook_form17 = require("react-hook-form");
4309
4386
  var import_react_intl18 = require("react-intl");
4310
4387
 
4311
4388
  // src/theme/default/assets/icons/eye-off.svg
4312
4389
  var React23 = __toESM(require("react"));
4313
- var import_jsx_runtime71 = require("react/jsx-runtime");
4390
+ var import_jsx_runtime72 = require("react/jsx-runtime");
4314
4391
  var SvgEyeOff = (props) => {
4315
4392
  var _a, _b;
4316
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
4393
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
4317
4394
  };
4318
4395
  var eye_off_default = SvgEyeOff;
4319
4396
 
4320
4397
  // src/theme/default/assets/icons/eye.svg
4321
4398
  var React24 = __toESM(require("react"));
4322
- var import_jsx_runtime72 = require("react/jsx-runtime");
4399
+ var import_jsx_runtime73 = require("react/jsx-runtime");
4323
4400
  var SvgEye = (props) => {
4324
4401
  var _a, _b;
4325
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4326
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4327
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4402
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4403
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4404
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4328
4405
  ] }) });
4329
4406
  };
4330
4407
  var eye_default = SvgEye;
4331
4408
 
4332
4409
  // src/theme/default/components/form/input.tsx
4333
- var import_jsx_runtime73 = require("react/jsx-runtime");
4410
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4334
4411
  var defaultInputClassName = cn(
4335
4412
  "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",
4336
4413
  "bg-input-background-default border-input-border-default text-input-foreground-primary",
@@ -4349,7 +4426,7 @@ var DefaultInput = ({
4349
4426
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
4350
4427
  const intl = (0, import_react_intl18.useIntl)();
4351
4428
  const { flowType } = (0, import_elements_react12.useOryFlow)();
4352
- const inputRef = (0, import_react10.useRef)(null);
4429
+ const inputRef = (0, import_react12.useRef)(null);
4353
4430
  const formattedLabel = label ? intl.formatMessage(
4354
4431
  {
4355
4432
  id: "input.placeholder",
@@ -4360,10 +4437,10 @@ var DefaultInput = ({
4360
4437
  }
4361
4438
  ) : "";
4362
4439
  if (rest.type === "hidden") {
4363
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4440
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4364
4441
  "input",
4365
4442
  {
4366
- ...rest,
4443
+ ...omitInputAttributes(rest),
4367
4444
  onClick,
4368
4445
  maxLength: maxlength,
4369
4446
  autoComplete: autocomplete,
@@ -4374,7 +4451,7 @@ var DefaultInput = ({
4374
4451
  );
4375
4452
  }
4376
4453
  const { ref, ...restRegister } = register(name, { value });
4377
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4454
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4378
4455
  "div",
4379
4456
  {
4380
4457
  className: cn(
@@ -4383,7 +4460,7 @@ var DefaultInput = ({
4383
4460
  flowType === import_client_fetch35.FlowType.Settings && "max-w-[488px]"
4384
4461
  ),
4385
4462
  children: [
4386
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4463
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4387
4464
  "input",
4388
4465
  {
4389
4466
  ...omitInputAttributes(rest),
@@ -4400,7 +4477,7 @@ var DefaultInput = ({
4400
4477
  ...restRegister
4401
4478
  }
4402
4479
  ),
4403
- rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(PasswordToggle, { inputRef })
4480
+ rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PasswordToggle, { inputRef })
4404
4481
  ]
4405
4482
  }
4406
4483
  );
@@ -4408,21 +4485,21 @@ var DefaultInput = ({
4408
4485
  function PasswordToggle({
4409
4486
  inputRef
4410
4487
  }) {
4411
- const [shown, setShown] = (0, import_react10.useState)(false);
4488
+ const [shown, setShown] = (0, import_react12.useState)(false);
4412
4489
  const handleClick = () => {
4413
4490
  setShown(!shown);
4414
4491
  if (inputRef.current) {
4415
4492
  inputRef.current.type = shown ? "password" : "text";
4416
4493
  }
4417
4494
  };
4418
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4495
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4419
4496
  "button",
4420
4497
  {
4421
4498
  onClick: handleClick,
4422
4499
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
4423
4500
  type: "button",
4424
4501
  "aria-label": "Toggle password visibility",
4425
- children: shown ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(eye_default, {})
4502
+ children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
4426
4503
  }
4427
4504
  );
4428
4505
  }
@@ -4432,7 +4509,7 @@ var import_client_fetch36 = require("@ory/client-fetch");
4432
4509
  var import_elements_react13 = require("@ory/elements-react");
4433
4510
  var import_react_hook_form18 = require("react-hook-form");
4434
4511
  var import_react_intl19 = require("react-intl");
4435
- var import_jsx_runtime74 = require("react/jsx-runtime");
4512
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4436
4513
  function findResendNode(nodes) {
4437
4514
  return nodes.find(
4438
4515
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -4447,7 +4524,8 @@ function DefaultLabel({
4447
4524
  const intl = (0, import_react_intl19.useIntl)();
4448
4525
  const label = (0, import_client_fetch36.getNodeLabel)(node);
4449
4526
  const { Message } = (0, import_elements_react13.useComponents)();
4450
- const { config, flowType, flow } = (0, import_elements_react13.useOryFlow)();
4527
+ const { flowType, flow } = (0, import_elements_react13.useOryFlow)();
4528
+ const config = (0, import_elements_react13.useOryConfiguration)();
4451
4529
  const { setValue, formState } = (0, import_react_hook_form18.useFormContext)();
4452
4530
  const isPassword = attributes.type === "password";
4453
4531
  const resendNode = findResendNode(flow.ui.nodes);
@@ -4457,9 +4535,9 @@ function DefaultLabel({
4457
4535
  }
4458
4536
  };
4459
4537
  const fieldError = formState.errors[attributes.name];
4460
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4461
- label && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "inline-flex justify-between", children: [
4462
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4538
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4539
+ label && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "inline-flex justify-between", children: [
4540
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4463
4541
  "label",
4464
4542
  {
4465
4543
  ...(0, import_elements_react13.messageTestId)(label),
@@ -4471,7 +4549,7 @@ function DefaultLabel({
4471
4549
  }
4472
4550
  ),
4473
4551
  isPassword && config.project.recovery_enabled && flowType === import_client_fetch36.FlowType.Login && // TODO: make it possible to override with a custom component
4474
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4552
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4475
4553
  "a",
4476
4554
  {
4477
4555
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -4482,7 +4560,7 @@ function DefaultLabel({
4482
4560
  })
4483
4561
  }
4484
4562
  ),
4485
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4563
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4486
4564
  "button",
4487
4565
  {
4488
4566
  type: "submit",
@@ -4495,21 +4573,21 @@ function DefaultLabel({
4495
4573
  )
4496
4574
  ] }),
4497
4575
  children,
4498
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Message.Content, { message }, message.id)),
4499
- fieldError && (0, import_client_fetch36.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Message.Content, { message: fieldError })
4576
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message }, message.id)),
4577
+ fieldError && (0, import_client_fetch36.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message: fieldError })
4500
4578
  ] });
4501
4579
  }
4502
4580
 
4503
4581
  // src/theme/default/components/form/link-button.tsx
4504
4582
  var import_client_fetch37 = require("@ory/client-fetch");
4505
4583
  var import_elements_react14 = require("@ory/elements-react");
4506
- var import_react11 = require("react");
4584
+ var import_react13 = require("react");
4507
4585
  var import_react_intl20 = require("react-intl");
4508
- var import_jsx_runtime75 = require("react/jsx-runtime");
4509
- var DefaultLinkButton = (0, import_react11.forwardRef)(({ attributes, node }, ref) => {
4586
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4587
+ var DefaultLinkButton = (0, import_react13.forwardRef)(({ attributes, node }, ref) => {
4510
4588
  const intl = (0, import_react_intl20.useIntl)();
4511
4589
  const label = (0, import_client_fetch37.getNodeLabel)(node);
4512
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4590
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4513
4591
  "a",
4514
4592
  {
4515
4593
  ...omitInputAttributes(attributes),
@@ -4531,8 +4609,8 @@ var import_react_hook_form19 = require("react-hook-form");
4531
4609
  // src/theme/default/components/form/shadcn/otp-input.tsx
4532
4610
  var import_input_otp = require("input-otp");
4533
4611
  var React25 = __toESM(require("react"));
4534
- var import_jsx_runtime76 = require("react/jsx-runtime");
4535
- var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4612
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4613
+ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4536
4614
  import_input_otp.OTPInput,
4537
4615
  {
4538
4616
  ref,
@@ -4545,12 +4623,12 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
4545
4623
  }
4546
4624
  ));
4547
4625
  InputOTP.displayName = "InputOTP";
4548
- var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4626
+ var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4549
4627
  InputOTPGroup.displayName = "InputOTPGroup";
4550
4628
  var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4551
4629
  const inputOTPContext = React25.useContext(import_input_otp.OTPInputContext);
4552
4630
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
4553
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
4631
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
4554
4632
  "div",
4555
4633
  {
4556
4634
  ref,
@@ -4562,8 +4640,8 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4562
4640
  ),
4563
4641
  ...props,
4564
4642
  children: [
4565
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "inline-block size-4", children: char }),
4566
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4643
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "inline-block size-4", children: char }),
4644
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
4567
4645
  ]
4568
4646
  }
4569
4647
  );
@@ -4573,7 +4651,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
4573
4651
  // src/theme/default/components/form/pin-code-input.tsx
4574
4652
  var import_elements_react15 = require("@ory/elements-react");
4575
4653
  var import_client_fetch38 = require("@ory/client-fetch");
4576
- var import_jsx_runtime77 = require("react/jsx-runtime");
4654
+ var import_jsx_runtime78 = require("react/jsx-runtime");
4577
4655
  var DefaultPinCodeInput = ({ attributes }) => {
4578
4656
  const { setValue, watch } = (0, import_react_hook_form19.useFormContext)();
4579
4657
  const { maxlength, name } = attributes;
@@ -4583,14 +4661,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
4583
4661
  setValue(name, v);
4584
4662
  };
4585
4663
  const value = watch(name);
4586
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4664
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4587
4665
  InputOTP,
4588
4666
  {
4589
4667
  maxLength: maxlength != null ? maxlength : 6,
4590
4668
  onChange: handleInputChange,
4591
4669
  name,
4592
4670
  value,
4593
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4671
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4594
4672
  InputOTPGroup,
4595
4673
  {
4596
4674
  className: cn(
@@ -4598,7 +4676,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
4598
4676
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4599
4677
  flowType === import_client_fetch38.FlowType.Settings && "max-w-[488px]"
4600
4678
  ),
4601
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(InputOTPSlot, { index }, index))
4679
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(InputOTPSlot, { index }, index))
4602
4680
  }
4603
4681
  )
4604
4682
  }
@@ -4606,13 +4684,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
4606
4684
  };
4607
4685
 
4608
4686
  // src/theme/default/components/form/section.tsx
4609
- var import_jsx_runtime78 = require("react/jsx-runtime");
4687
+ var import_jsx_runtime79 = require("react/jsx-runtime");
4610
4688
  var DefaultFormSection = ({
4611
4689
  children,
4612
4690
  nodes: _nodes,
4613
4691
  ...rest
4614
4692
  }) => {
4615
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4693
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4616
4694
  "form",
4617
4695
  {
4618
4696
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -4626,10 +4704,10 @@ var DefaultFormSectionContent = ({
4626
4704
  description,
4627
4705
  children
4628
4706
  }) => {
4629
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
4630
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-2", children: [
4631
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4632
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4707
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
4708
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
4709
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4710
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4633
4711
  ] }),
4634
4712
  children
4635
4713
  ] });
@@ -4638,14 +4716,14 @@ var DefaultFormSectionFooter = ({
4638
4716
  children,
4639
4717
  text
4640
4718
  }) => {
4641
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4719
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4642
4720
  "div",
4643
4721
  {
4644
4722
  className: cn(
4645
4723
  "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"
4646
4724
  ),
4647
4725
  children: [
4648
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: text }),
4726
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: text }),
4649
4727
  children
4650
4728
  ]
4651
4729
  }
@@ -4655,31 +4733,31 @@ var DefaultFormSectionFooter = ({
4655
4733
  // src/theme/default/components/form/text.tsx
4656
4734
  var import_elements_react16 = require("@ory/elements-react");
4657
4735
  var import_react_intl21 = require("react-intl");
4658
- var import_jsx_runtime79 = require("react/jsx-runtime");
4736
+ var import_jsx_runtime80 = require("react/jsx-runtime");
4659
4737
  function DefaultText({ node, attributes }) {
4660
4738
  var _a;
4661
4739
  const intl = (0, import_react_intl21.useIntl)();
4662
4740
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
4663
4741
  if (lookup) {
4664
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
4665
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
4666
- lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4742
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
4743
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
4744
+ lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4667
4745
  "pre",
4668
4746
  {
4669
4747
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
4670
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("code", { children: text ? (0, import_elements_react16.uiTextToFormattedMessage)(text, intl) : "" })
4748
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0, import_elements_react16.uiTextToFormattedMessage)(text, intl) : "" })
4671
4749
  },
4672
4750
  index
4673
4751
  ))
4674
4752
  ] });
4675
4753
  }
4676
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4754
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4677
4755
  "p",
4678
4756
  {
4679
4757
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
4680
4758
  id: attributes.id,
4681
4759
  children: [
4682
- node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("label", { children: (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4760
+ node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4683
4761
  attributes.text ? (0, import_elements_react16.uiTextToFormattedMessage)(attributes.text, intl) : ""
4684
4762
  ]
4685
4763
  }
@@ -4695,21 +4773,21 @@ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
4695
4773
 
4696
4774
  // src/theme/default/assets/icons/logout.svg
4697
4775
  var React26 = __toESM(require("react"));
4698
- var import_jsx_runtime80 = require("react/jsx-runtime");
4776
+ var import_jsx_runtime81 = require("react/jsx-runtime");
4699
4777
  var SvgLogout = (props) => {
4700
4778
  var _a, _b;
4701
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
4779
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
4702
4780
  };
4703
4781
  var logout_default = SvgLogout;
4704
4782
 
4705
4783
  // src/theme/default/assets/icons/settings.svg
4706
4784
  var React27 = __toESM(require("react"));
4707
- var import_jsx_runtime81 = require("react/jsx-runtime");
4785
+ var import_jsx_runtime82 = require("react/jsx-runtime");
4708
4786
  var SvgSettings = (props) => {
4709
4787
  var _a, _b;
4710
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4711
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
4712
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4788
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
4789
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
4790
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4713
4791
  ] }) });
4714
4792
  };
4715
4793
  var settings_default = SvgSettings;
@@ -4754,12 +4832,12 @@ var getUserInitials = (session) => {
4754
4832
  };
4755
4833
 
4756
4834
  // src/theme/default/components/ui/dropdown-menu.tsx
4757
- var import_react12 = require("react");
4835
+ var import_react14 = require("react");
4758
4836
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
4759
- var import_jsx_runtime82 = require("react/jsx-runtime");
4837
+ var import_jsx_runtime83 = require("react/jsx-runtime");
4760
4838
  var DropdownMenu = DropdownMenuPrimitive.Root;
4761
4839
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
4762
- var DropdownMenuContent = (0, import_react12.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4840
+ var DropdownMenuContent = (0, import_react14.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4763
4841
  DropdownMenuPrimitive.Content,
4764
4842
  {
4765
4843
  ref,
@@ -4774,7 +4852,7 @@ var DropdownMenuContent = (0, import_react12.forwardRef)(({ className, sideOffse
4774
4852
  }
4775
4853
  ) }));
4776
4854
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4777
- var DropdownMenuItem = (0, import_react12.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4855
+ var DropdownMenuItem = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4778
4856
  DropdownMenuPrimitive.Item,
4779
4857
  {
4780
4858
  ref,
@@ -4792,7 +4870,7 @@ var DropdownMenuItem = (0, import_react12.forwardRef)(({ className, inset, ...pr
4792
4870
  }
4793
4871
  ));
4794
4872
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4795
- var DropdownMenuLabel = (0, import_react12.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4873
+ var DropdownMenuLabel = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4796
4874
  DropdownMenuPrimitive.Label,
4797
4875
  {
4798
4876
  ref,
@@ -4807,35 +4885,35 @@ var DropdownMenuLabel = (0, import_react12.forwardRef)(({ className, inset, ...p
4807
4885
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4808
4886
 
4809
4887
  // src/theme/default/components/ui/user-avater.tsx
4810
- var import_react13 = require("react");
4888
+ var import_react15 = require("react");
4811
4889
 
4812
4890
  // src/theme/default/assets/icons/user.svg
4813
4891
  var React28 = __toESM(require("react"));
4814
- var import_jsx_runtime83 = require("react/jsx-runtime");
4892
+ var import_jsx_runtime84 = require("react/jsx-runtime");
4815
4893
  var SvgUser = (props) => {
4816
4894
  var _a, _b;
4817
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
4895
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
4818
4896
  };
4819
4897
  var user_default = SvgUser;
4820
4898
 
4821
4899
  // src/theme/default/components/ui/user-avater.tsx
4822
- var import_jsx_runtime84 = require("react/jsx-runtime");
4823
- var UserAvatar = (0, import_react13.forwardRef)(
4900
+ var import_jsx_runtime85 = require("react/jsx-runtime");
4901
+ var UserAvatar = (0, import_react15.forwardRef)(
4824
4902
  ({ initials, ...rest }, ref) => {
4825
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4903
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4826
4904
  "button",
4827
4905
  {
4828
4906
  ref,
4829
4907
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
4830
4908
  ...rest,
4831
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4909
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4832
4910
  "img",
4833
4911
  {
4834
4912
  src: initials.avatar,
4835
4913
  alt: initials.primary,
4836
4914
  className: "w-full object-contain"
4837
4915
  }
4838
- ) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4916
+ ) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4839
4917
  user_default,
4840
4918
  {
4841
4919
  size: 24,
@@ -4849,27 +4927,27 @@ var UserAvatar = (0, import_react13.forwardRef)(
4849
4927
  UserAvatar.displayName = "UserAvatar";
4850
4928
 
4851
4929
  // src/theme/default/components/ui/user-menu.tsx
4852
- var import_jsx_runtime85 = require("react/jsx-runtime");
4930
+ var import_jsx_runtime86 = require("react/jsx-runtime");
4853
4931
  var UserMenu = ({ session }) => {
4854
- const { config } = (0, import_elements_react17.useOryFlow)();
4932
+ const config = (0, import_elements_react17.useOryConfiguration)();
4855
4933
  const initials = getUserInitials(session);
4856
4934
  const { logoutFlow } = useClientLogout(config);
4857
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(DropdownMenu, { children: [
4858
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
4859
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(DropdownMenuContent, { children: [
4860
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
4861
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UserAvatar, { disabled: true, initials }),
4862
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4863
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4864
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4935
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenu, { children: [
4936
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
4937
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenuContent, { children: [
4938
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
4939
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { disabled: true, initials }),
4940
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4941
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4942
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4865
4943
  ] })
4866
4944
  ] }),
4867
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("a", { href: "/settings", children: [
4868
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(settings_default, { size: 16 }),
4945
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: "/settings", children: [
4946
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(settings_default, { size: 16 }),
4869
4947
  " User settings"
4870
4948
  ] }) }),
4871
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
4872
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(logout_default, { size: 16 }),
4949
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
4950
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(logout_default, { size: 16 }),
4873
4951
  " Logout"
4874
4952
  ] }) })
4875
4953
  ] })
@@ -4877,29 +4955,30 @@ var UserMenu = ({ session }) => {
4877
4955
  };
4878
4956
 
4879
4957
  // src/theme/default/components/generic/page-header.tsx
4880
- var import_client7 = require("@ory/elements-react/client");
4958
+ var import_client4 = require("@ory/elements-react/client");
4881
4959
  var import_react_intl22 = require("react-intl");
4882
- var import_jsx_runtime86 = require("react/jsx-runtime");
4960
+ var import_jsx_runtime87 = require("react/jsx-runtime");
4883
4961
  var DefaultPageHeader = (_props) => {
4884
4962
  var _a;
4885
4963
  const { Card } = (0, import_elements_react18.useComponents)();
4886
- const { session } = (0, import_client7.useSession)();
4964
+ const { session } = (0, import_client4.useSession)();
4887
4965
  const intl = (0, import_react_intl22.useIntl)();
4888
- const { config, flow } = (0, import_elements_react18.useOryFlow)();
4966
+ const { flow } = (0, import_elements_react18.useOryFlow)();
4967
+ const config = (0, import_elements_react18.useOryConfiguration)();
4889
4968
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
4890
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-12", children: [
4891
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
4892
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Card.Logo, {}),
4893
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserMenu, { session })
4969
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
4970
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
4971
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}),
4972
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
4894
4973
  ] }),
4895
- returnUrl && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
4974
+ returnUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
4896
4975
  "a",
4897
4976
  {
4898
4977
  "data-testid": "ory/screen/settings/back-button",
4899
4978
  href: returnUrl,
4900
4979
  className: "inline-flex gap-2 items-center",
4901
4980
  children: [
4902
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(arrow_left_default, {}),
4981
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
4903
4982
  " ",
4904
4983
  intl.formatMessage({
4905
4984
  id: "settings.navigation-back-button",
@@ -4912,31 +4991,31 @@ var DefaultPageHeader = (_props) => {
4912
4991
  };
4913
4992
 
4914
4993
  // src/theme/default/components/settings/settings-oidc.tsx
4915
- var import_react14 = require("react");
4994
+ var import_react16 = require("react");
4916
4995
  var import_react_hook_form20 = require("react-hook-form");
4917
4996
  var import_usehooks_ts2 = require("usehooks-ts");
4918
4997
 
4919
4998
  // src/theme/default/assets/icons/trash.svg
4920
4999
  var React29 = __toESM(require("react"));
4921
- var import_jsx_runtime87 = require("react/jsx-runtime");
5000
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4922
5001
  var SvgTrash = (props) => {
4923
5002
  var _a, _b;
4924
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
5003
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
4925
5004
  };
4926
5005
  var trash_default = SvgTrash;
4927
5006
 
4928
5007
  // src/theme/default/components/settings/settings-oidc.tsx
4929
- var import_jsx_runtime88 = require("react/jsx-runtime");
5008
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4930
5009
  function DefaultSettingsOidc({
4931
5010
  linkButtons,
4932
5011
  unlinkButtons
4933
5012
  }) {
4934
5013
  const hasLinkButtons = linkButtons.length > 0;
4935
5014
  const hasUnlinkButtons = unlinkButtons.length > 0;
4936
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-8", children: [
4937
- hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
5015
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5016
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
4938
5017
  const attrs = button.attributes;
4939
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5018
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4940
5019
  DefaultButtonSocial,
4941
5020
  {
4942
5021
  showLabel: true,
@@ -4947,12 +5026,12 @@ function DefaultSettingsOidc({
4947
5026
  attrs.value
4948
5027
  );
4949
5028
  }) }),
4950
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DefaultHorizontalDivider, {}) : null,
5029
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}) : null,
4951
5030
  unlinkButtons.map((button) => {
4952
5031
  if (button.attributes.node_type !== "input") {
4953
5032
  return null;
4954
5033
  }
4955
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UnlinkRow, { button }, button.attributes.value);
5034
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UnlinkRow, { button }, button.attributes.value);
4956
5035
  })
4957
5036
  ] });
4958
5037
  }
@@ -4969,18 +5048,18 @@ function UnlinkRow({ button }) {
4969
5048
  button.onClick();
4970
5049
  setClicked(true);
4971
5050
  };
4972
- (0, import_react14.useEffect)(() => {
5051
+ (0, import_react16.useEffect)(() => {
4973
5052
  if (!isSubmitting) {
4974
5053
  setClicked(false);
4975
5054
  }
4976
5055
  }, [isSubmitting, setClicked]);
4977
5056
  console.log((_c = button.meta.label) == null ? void 0 : _c.context);
4978
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex justify-between", children: [
4979
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex items-center gap-6", children: [
4980
- Logo ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
4981
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5057
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between", children: [
5058
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-6", children: [
5059
+ Logo ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
5060
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
4982
5061
  ] }),
4983
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5062
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4984
5063
  "button",
4985
5064
  {
4986
5065
  ...omitInputAttributes(attrs),
@@ -4989,7 +5068,7 @@ function UnlinkRow({ button }) {
4989
5068
  disabled: isSubmitting,
4990
5069
  className: "relative",
4991
5070
  title: `Unlink ${provider}`,
4992
- children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5071
+ children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4993
5072
  trash_default,
4994
5073
  {
4995
5074
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5004,7 +5083,7 @@ function UnlinkRow({ button }) {
5004
5083
  // src/theme/default/components/settings/settings-passkey.tsx
5005
5084
  var import_elements_react19 = require("@ory/elements-react");
5006
5085
  var import_react_hook_form21 = require("react-hook-form");
5007
- var import_jsx_runtime89 = require("react/jsx-runtime");
5086
+ var import_jsx_runtime90 = require("react/jsx-runtime");
5008
5087
  function DefaultSettingsPasskey({
5009
5088
  triggerButton,
5010
5089
  removeButtons
@@ -5014,8 +5093,8 @@ function DefaultSettingsPasskey({
5014
5093
  } = (0, import_react_hook_form21.useFormContext)();
5015
5094
  const { Node: Node2 } = (0, import_elements_react19.useComponents)();
5016
5095
  const hasRemoveButtons = removeButtons.length > 0;
5017
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5018
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5096
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5097
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5019
5098
  Node2.Button,
5020
5099
  {
5021
5100
  node: triggerButton,
@@ -5023,38 +5102,38 @@ function DefaultSettingsPasskey({
5023
5102
  onClick: triggerButton.onClick
5024
5103
  }
5025
5104
  ) }),
5026
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5027
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}),
5028
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5105
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5106
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DefaultHorizontalDivider, {}),
5107
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5029
5108
  var _a, _b;
5030
5109
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5031
5110
  const addedAt = "added_at" in context ? context.added_at : null;
5032
5111
  const displayName = "display_name" in context ? context.display_name : null;
5033
5112
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5034
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
5113
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
5035
5114
  "div",
5036
5115
  {
5037
5116
  className: "flex justify-between gap-6 md:items-center",
5038
5117
  children: [
5039
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5040
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5118
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5119
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5041
5120
  passkey_default,
5042
5121
  {
5043
5122
  size: 32,
5044
5123
  className: "text-interface-foreground-default-primary"
5045
5124
  }
5046
5125
  ),
5047
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5048
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5049
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5050
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5126
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5127
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5128
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5129
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5051
5130
  ] }),
5052
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5131
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5053
5132
  dateStyle: "long"
5054
5133
  }).format(new Date(addedAt)) })
5055
5134
  ] })
5056
5135
  ] }),
5057
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5136
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5058
5137
  "button",
5059
5138
  {
5060
5139
  ...node.attributes,
@@ -5062,7 +5141,7 @@ function DefaultSettingsPasskey({
5062
5141
  onClick: node.onClick,
5063
5142
  disabled: isSubmitting,
5064
5143
  className: "relative",
5065
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5144
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5066
5145
  trash_default,
5067
5146
  {
5068
5147
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5082,25 +5161,25 @@ function DefaultSettingsPasskey({
5082
5161
 
5083
5162
  // src/theme/default/assets/icons/download.svg
5084
5163
  var React30 = __toESM(require("react"));
5085
- var import_jsx_runtime90 = require("react/jsx-runtime");
5164
+ var import_jsx_runtime91 = require("react/jsx-runtime");
5086
5165
  var SvgDownload = (props) => {
5087
5166
  var _a, _b;
5088
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
5167
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
5089
5168
  };
5090
5169
  var download_default = SvgDownload;
5091
5170
 
5092
5171
  // src/theme/default/assets/icons/refresh.svg
5093
5172
  var React31 = __toESM(require("react"));
5094
- var import_jsx_runtime91 = require("react/jsx-runtime");
5173
+ var import_jsx_runtime92 = require("react/jsx-runtime");
5095
5174
  var SvgRefresh = (props) => {
5096
5175
  var _a, _b;
5097
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "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" }) });
5176
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
5098
5177
  };
5099
5178
  var refresh_default = SvgRefresh;
5100
5179
 
5101
5180
  // src/theme/default/components/settings/settings-recovery-codes.tsx
5102
5181
  var import_react_hook_form22 = require("react-hook-form");
5103
- var import_jsx_runtime92 = require("react/jsx-runtime");
5182
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5104
5183
  function DefaultSettingsRecoveryCodes({
5105
5184
  codes,
5106
5185
  regnerateButton,
@@ -5122,12 +5201,12 @@ function DefaultSettingsRecoveryCodes({
5122
5201
  element.click();
5123
5202
  };
5124
5203
  const hasCodes = codes.length >= 1;
5125
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-8", children: [
5126
- codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(DefaultHorizontalDivider, {}),
5127
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5128
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5129
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex gap-2", children: [
5130
- regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5204
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
5205
+ codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DefaultHorizontalDivider, {}),
5206
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5207
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5208
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2", children: [
5209
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5131
5210
  "button",
5132
5211
  {
5133
5212
  ...regnerateButton.attributes,
@@ -5136,7 +5215,7 @@ function DefaultSettingsRecoveryCodes({
5136
5215
  onClick: onRegenerate,
5137
5216
  disabled: isSubmitting,
5138
5217
  "data-loading": isSubmitting,
5139
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5218
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5140
5219
  refresh_default,
5141
5220
  {
5142
5221
  size: 24,
@@ -5145,7 +5224,7 @@ function DefaultSettingsRecoveryCodes({
5145
5224
  )
5146
5225
  }
5147
5226
  ),
5148
- revealButton && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5227
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5149
5228
  "button",
5150
5229
  {
5151
5230
  ...revealButton.attributes,
@@ -5153,7 +5232,7 @@ function DefaultSettingsRecoveryCodes({
5153
5232
  className: "ml-auto",
5154
5233
  onClick: onReveal,
5155
5234
  title: "Reveal recovery codes",
5156
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5235
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5157
5236
  eye_default,
5158
5237
  {
5159
5238
  size: 24,
@@ -5162,7 +5241,7 @@ function DefaultSettingsRecoveryCodes({
5162
5241
  )
5163
5242
  }
5164
5243
  ) }),
5165
- hasCodes && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5244
+ hasCodes && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5166
5245
  "button",
5167
5246
  {
5168
5247
  onClick: onDownload,
@@ -5170,7 +5249,7 @@ function DefaultSettingsRecoveryCodes({
5170
5249
  className: "ml-auto",
5171
5250
  "data-testid": "ory/screen/settings/group/recovery_code/download",
5172
5251
  title: "Download recovery codes",
5173
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5252
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5174
5253
  download_default,
5175
5254
  {
5176
5255
  size: 24,
@@ -5181,12 +5260,12 @@ function DefaultSettingsRecoveryCodes({
5181
5260
  )
5182
5261
  ] })
5183
5262
  ] }),
5184
- hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5263
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5185
5264
  "div",
5186
5265
  {
5187
5266
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5188
5267
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5189
- children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { children: code }, code))
5268
+ children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { children: code }, code))
5190
5269
  }
5191
5270
  ) }) : null
5192
5271
  ] });
@@ -5197,16 +5276,16 @@ var import_elements_react20 = require("@ory/elements-react");
5197
5276
 
5198
5277
  // src/theme/default/assets/icons/qrcode.svg
5199
5278
  var React32 = __toESM(require("react"));
5200
- var import_jsx_runtime93 = require("react/jsx-runtime");
5279
+ var import_jsx_runtime94 = require("react/jsx-runtime");
5201
5280
  var SvgQrcode = (props) => {
5202
5281
  var _a, _b;
5203
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "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" }) });
5282
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
5204
5283
  };
5205
5284
  var qrcode_default = SvgQrcode;
5206
5285
 
5207
5286
  // src/theme/default/components/settings/settings-totp.tsx
5208
5287
  var import_react_hook_form23 = require("react-hook-form");
5209
- var import_jsx_runtime94 = require("react/jsx-runtime");
5288
+ var import_jsx_runtime95 = require("react/jsx-runtime");
5210
5289
  function DefaultSettingsTotp({
5211
5290
  totpImage,
5212
5291
  totpInput,
@@ -5226,19 +5305,19 @@ function DefaultSettingsTotp({
5226
5305
  node_type: _ignoredNodeType,
5227
5306
  ...buttonAttrs
5228
5307
  } = totpUnlink.attributes;
5229
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5230
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card.Divider, {}) }),
5231
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5232
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(qrcode_default, { size: 32 }) }),
5233
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5234
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5308
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5309
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card.Divider, {}) }),
5310
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5311
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
5312
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
5313
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5235
5314
  "button",
5236
5315
  {
5237
5316
  type: type === "button" ? "button" : "submit",
5238
5317
  ...buttonAttrs,
5239
5318
  onClick: onUnlink,
5240
5319
  disabled: isSubmitting,
5241
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5320
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5242
5321
  trash_default,
5243
5322
  {
5244
5323
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5251,9 +5330,9 @@ function DefaultSettingsTotp({
5251
5330
  ] });
5252
5331
  }
5253
5332
  if (totpImage && totpSecret && totpInput) {
5254
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5255
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DefaultHorizontalDivider, {}) }),
5256
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5333
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5334
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultHorizontalDivider, {}) }),
5335
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5257
5336
  Node2.Image,
5258
5337
  {
5259
5338
  node: totpImage,
@@ -5262,13 +5341,13 @@ function DefaultSettingsTotp({
5262
5341
  }
5263
5342
  }
5264
5343
  ) }) }) }),
5265
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-6", children: [
5266
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5344
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-6", children: [
5345
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5267
5346
  Node2.Label,
5268
5347
  {
5269
5348
  node: totpSecret,
5270
5349
  attributes: totpSecret.attributes,
5271
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5350
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5272
5351
  "input",
5273
5352
  {
5274
5353
  disabled: true,
@@ -5281,12 +5360,12 @@ function DefaultSettingsTotp({
5281
5360
  ) })
5282
5361
  }
5283
5362
  ),
5284
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5363
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5285
5364
  Node2.Label,
5286
5365
  {
5287
5366
  attributes: totpInput.attributes,
5288
5367
  node: totpInput,
5289
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5368
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5290
5369
  Node2.CodeInput,
5291
5370
  {
5292
5371
  node: totpInput,
@@ -5305,16 +5384,16 @@ var import_elements_react21 = require("@ory/elements-react");
5305
5384
 
5306
5385
  // src/theme/default/assets/icons/key.svg
5307
5386
  var React33 = __toESM(require("react"));
5308
- var import_jsx_runtime95 = require("react/jsx-runtime");
5387
+ var import_jsx_runtime96 = require("react/jsx-runtime");
5309
5388
  var SvgKey = (props) => {
5310
5389
  var _a, _b;
5311
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
5390
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
5312
5391
  };
5313
5392
  var key_default = SvgKey;
5314
5393
 
5315
5394
  // src/theme/default/components/settings/settings-webauthn.tsx
5316
5395
  var import_react_hook_form24 = require("react-hook-form");
5317
- var import_jsx_runtime96 = require("react/jsx-runtime");
5396
+ var import_jsx_runtime97 = require("react/jsx-runtime");
5318
5397
  function DefaultSettingsWebauthn({
5319
5398
  nameInput,
5320
5399
  triggerButton,
@@ -5325,14 +5404,14 @@ function DefaultSettingsWebauthn({
5325
5404
  } = (0, import_react_hook_form24.useFormContext)();
5326
5405
  const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
5327
5406
  const hasRemoveButtons = removeButtons.length > 0;
5328
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-8", children: [
5329
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5330
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5407
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5408
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5409
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5331
5410
  Node2.Label,
5332
5411
  {
5333
5412
  node: nameInput,
5334
5413
  attributes: nameInput.attributes,
5335
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5414
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5336
5415
  Node2.Input,
5337
5416
  {
5338
5417
  node: nameInput,
@@ -5341,7 +5420,7 @@ function DefaultSettingsWebauthn({
5341
5420
  )
5342
5421
  }
5343
5422
  ) }),
5344
- triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5423
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5345
5424
  Node2.Button,
5346
5425
  {
5347
5426
  node: triggerButton,
@@ -5350,38 +5429,38 @@ function DefaultSettingsWebauthn({
5350
5429
  }
5351
5430
  ) : null
5352
5431
  ] }),
5353
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-8", children: [
5354
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card.Divider, {}),
5355
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5432
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5433
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card.Divider, {}),
5434
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5356
5435
  var _a, _b;
5357
5436
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5358
5437
  const addedAt = "added_at" in context ? context.added_at : null;
5359
5438
  const displayName = "display_name" in context ? context.display_name : null;
5360
5439
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5361
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
5440
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
5362
5441
  "div",
5363
5442
  {
5364
5443
  className: "flex justify-between gap-6 md:items-center",
5365
5444
  children: [
5366
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5367
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5445
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5446
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5368
5447
  key_default,
5369
5448
  {
5370
5449
  size: 32,
5371
5450
  className: "text-interface-foreground-default-primary"
5372
5451
  }
5373
5452
  ),
5374
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5375
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5376
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5377
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5453
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
5454
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5455
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5456
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5378
5457
  ] }),
5379
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5458
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5380
5459
  dateStyle: "long"
5381
5460
  }).format(new Date(addedAt)) })
5382
5461
  ] })
5383
5462
  ] }),
5384
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5463
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5385
5464
  "button",
5386
5465
  {
5387
5466
  ...node.attributes,
@@ -5389,7 +5468,7 @@ function DefaultSettingsWebauthn({
5389
5468
  onClick: node.onClick,
5390
5469
  disabled: isSubmitting,
5391
5470
  className: "relative",
5392
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5471
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5393
5472
  trash_default,
5394
5473
  {
5395
5474
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5408,91 +5487,96 @@ function DefaultSettingsWebauthn({
5408
5487
  }
5409
5488
 
5410
5489
  // src/theme/default/components/card/auth-method-list-container.tsx
5411
- var import_jsx_runtime97 = require("react/jsx-runtime");
5490
+ var import_jsx_runtime98 = require("react/jsx-runtime");
5412
5491
  function DefaultAuthMethodListContainer({
5413
5492
  children
5414
5493
  }) {
5415
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5494
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5416
5495
  }
5417
5496
 
5418
5497
  // src/theme/default/components/form/captcha.tsx
5419
5498
  var import_client_fetch39 = require("@ory/client-fetch");
5420
5499
  var import_react_turnstile = require("@marsidev/react-turnstile");
5421
- var import_react15 = require("react");
5500
+ var import_react17 = require("react");
5422
5501
  var import_react_hook_form25 = require("react-hook-form");
5423
- var import_jsx_runtime98 = require("react/jsx-runtime");
5502
+ var import_jsx_runtime99 = require("react/jsx-runtime");
5424
5503
  var DefaultCaptcha = ({ node }) => {
5425
- const { setValue } = (0, import_react_hook_form25.useFormContext)();
5426
- const ref = (0, import_react15.useRef)();
5427
- const nodes = [];
5428
- if ((0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes)) {
5429
- if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5430
- nodes.push(
5431
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DefaultInput, { node, attributes: node.attributes }, 1)
5432
- );
5504
+ const { setValue, formState } = (0, import_react_hook_form25.useFormContext)();
5505
+ const ref = (0, import_react17.useRef)();
5506
+ const prevSubmitCount = (0, import_react17.useRef)(formState.submitCount);
5507
+ (0, import_react17.useEffect)(() => {
5508
+ if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
5509
+ prevSubmitCount.current = formState.submitCount;
5510
+ setTimeout(() => {
5511
+ if (ref.current) {
5512
+ ref.current.reset();
5513
+ }
5514
+ }, 100);
5433
5515
  }
5516
+ }, [formState.submitCount, formState.isSubmitSuccessful]);
5517
+ if (!(0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes)) {
5518
+ return null;
5434
5519
  }
5435
- if ((0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
5520
+ if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5521
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DefaultInput, { node, attributes: node.attributes }, 1);
5522
+ } else if (node.attributes.name === "captcha_turnstile_options") {
5436
5523
  const options = JSON.parse(node.attributes.value);
5437
- nodes.push(
5438
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5439
- import_react_turnstile.Turnstile,
5440
- {
5441
- ref,
5442
- siteKey: options.sitekey,
5443
- options: {
5444
- action: options.action,
5445
- size: "flexible",
5446
- theme: options.theme,
5447
- responseField: false,
5448
- responseFieldName: options.response_field_name
5449
- },
5450
- onExpire: () => {
5451
- var _a;
5452
- return (_a = ref.current) == null ? void 0 : _a.reset();
5453
- },
5454
- onSuccess: (token) => {
5455
- setValue(options.response_field_name, token);
5456
- }
5524
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5525
+ import_react_turnstile.Turnstile,
5526
+ {
5527
+ ref,
5528
+ siteKey: options.sitekey,
5529
+ options: {
5530
+ action: options.action,
5531
+ size: "flexible",
5532
+ theme: options.theme,
5533
+ responseField: false,
5534
+ responseFieldName: options.response_field_name
5457
5535
  },
5458
- 2
5459
- )
5536
+ onExpire: () => {
5537
+ var _a;
5538
+ return (_a = ref.current) == null ? void 0 : _a.reset();
5539
+ },
5540
+ onSuccess: (token) => {
5541
+ setValue(options.response_field_name, token);
5542
+ }
5543
+ }
5460
5544
  );
5461
5545
  }
5462
- return nodes;
5546
+ return null;
5463
5547
  };
5464
5548
 
5465
5549
  // src/theme/default/assets/icons/personal.svg
5466
5550
  var React34 = __toESM(require("react"));
5467
- var import_jsx_runtime99 = require("react/jsx-runtime");
5551
+ var import_jsx_runtime100 = require("react/jsx-runtime");
5468
5552
  var SvgPersonal = (props) => {
5469
5553
  var _a, _b;
5470
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("path", { stroke: "#0F172A", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
5554
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { stroke: "#0F172A", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
5471
5555
  };
5472
5556
  var personal_default = SvgPersonal;
5473
5557
 
5474
5558
  // src/theme/default/assets/icons/message.svg
5475
5559
  var React35 = __toESM(require("react"));
5476
- var import_jsx_runtime100 = require("react/jsx-runtime");
5560
+ var import_jsx_runtime101 = require("react/jsx-runtime");
5477
5561
  var SvgMessage = (props) => {
5478
5562
  var _a, _b;
5479
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
5563
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
5480
5564
  };
5481
5565
  var message_default = SvgMessage;
5482
5566
 
5483
5567
  // src/theme/default/assets/icons/phone.svg
5484
5568
  var React36 = __toESM(require("react"));
5485
- var import_jsx_runtime101 = require("react/jsx-runtime");
5569
+ var import_jsx_runtime102 = require("react/jsx-runtime");
5486
5570
  var SvgPhone = (props) => {
5487
5571
  var _a, _b;
5488
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("path", { stroke: "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" }) });
5572
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
5489
5573
  };
5490
5574
  var phone_default = SvgPhone;
5491
5575
 
5492
5576
  // src/theme/default/components/form/consent-scope-checkbox.tsx
5493
5577
  var import_react_intl23 = require("react-intl");
5494
5578
  var Switch = __toESM(require("@radix-ui/react-switch"));
5495
- var import_jsx_runtime102 = require("react/jsx-runtime");
5579
+ var import_jsx_runtime103 = require("react/jsx-runtime");
5496
5580
  var ScopeIcons = {
5497
5581
  openid: personal_default,
5498
5582
  offline_access: personal_default,
@@ -5507,7 +5591,7 @@ function DefaultConsentScopeCheckbox({
5507
5591
  var _a;
5508
5592
  const intl = (0, import_react_intl23.useIntl)();
5509
5593
  const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
5510
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5594
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5511
5595
  ListItem,
5512
5596
  {
5513
5597
  as: "label",
@@ -5522,7 +5606,7 @@ function DefaultConsentScopeCheckbox({
5522
5606
  }),
5523
5607
  className: "col-span-2",
5524
5608
  "data-testid": "ory/screen/consent/scope-checkbox-label",
5525
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5609
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5526
5610
  Switch.Root,
5527
5611
  {
5528
5612
  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",
@@ -5530,7 +5614,7 @@ function DefaultConsentScopeCheckbox({
5530
5614
  value: attributes.value,
5531
5615
  onCheckedChange,
5532
5616
  defaultChecked: true,
5533
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
5617
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
5534
5618
  }
5535
5619
  )
5536
5620
  }
@@ -5589,9 +5673,10 @@ function getOryComponents(overrides) {
5589
5673
 
5590
5674
  // src/theme/default/flows/error.tsx
5591
5675
  var import_client_fetch40 = require("@ory/client-fetch");
5592
- var import_react16 = require("react");
5676
+ var import_elements_react22 = require("@ory/elements-react");
5677
+ var import_react18 = require("react");
5593
5678
  var import_react_intl24 = require("react-intl");
5594
- var import_jsx_runtime103 = require("react/jsx-runtime");
5679
+ var import_jsx_runtime104 = require("react/jsx-runtime");
5595
5680
  function isOAuth2Error(error) {
5596
5681
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5597
5682
  }
@@ -5600,7 +5685,7 @@ var errorDescriptions = {
5600
5685
  5: "The server encountered an error and could not complete your request"
5601
5686
  };
5602
5687
  function useStandardize(error) {
5603
- return (0, import_react16.useMemo)(() => {
5688
+ return (0, import_react18.useMemo)(() => {
5604
5689
  var _a;
5605
5690
  if (isOAuth2Error(error)) {
5606
5691
  return {
@@ -5644,47 +5729,47 @@ function Error2({
5644
5729
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5645
5730
  const parsed = useStandardize(error);
5646
5731
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5647
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5732
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5648
5733
  IntlProvider,
5649
5734
  {
5650
5735
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5651
5736
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5652
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
5737
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
5653
5738
  "div",
5654
5739
  {
5655
5740
  className: "flex flex-col gap-6 antialiased",
5656
5741
  "data-testid": "ory/screen/error",
5657
5742
  children: [
5658
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5659
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ErrorLogo, { config }),
5660
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-2", children: [
5661
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-happened" }) }),
5662
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5663
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5743
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5744
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ErrorLogo, {}),
5745
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5746
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-happened" }) }),
5747
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5748
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5664
5749
  ] })
5665
5750
  ] }),
5666
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Divider, {}),
5667
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-2", children: [
5668
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5669
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.instructions" }) }),
5670
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(LoggedInActions, { config }) : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(GoBackButton, { config }) })
5751
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5752
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5753
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5754
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.instructions" }) }),
5755
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(GoBackButton, {}) })
5671
5756
  ] }),
5672
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Divider, {}),
5673
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5674
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.text" }) }),
5675
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5757
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5758
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5759
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.text" }) }),
5760
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5676
5761
  "ID: ",
5677
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: parsed.id })
5762
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.id })
5678
5763
  ] }),
5679
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5764
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5680
5765
  "Time: ",
5681
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5766
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5682
5767
  ] }),
5683
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5768
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5684
5769
  "Message: ",
5685
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: parsed.reason })
5770
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.reason })
5686
5771
  ] }),
5687
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5772
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5688
5773
  "button",
5689
5774
  {
5690
5775
  className: "text-interface-foreground-default-primary underline",
@@ -5696,7 +5781,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5696
5781
  `;
5697
5782
  void navigator.clipboard.writeText(text);
5698
5783
  },
5699
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5784
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5700
5785
  }
5701
5786
  ) })
5702
5787
  ] })
@@ -5704,55 +5789,46 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5704
5789
  }
5705
5790
  ) })
5706
5791
  }
5707
- );
5792
+ ) });
5708
5793
  }
5709
- function LoggedInActions({ config }) {
5794
+ function LoggedInActions() {
5795
+ const config = (0, import_elements_react22.useOryConfiguration)();
5710
5796
  const { logoutFlow } = useClientLogout(config);
5711
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5797
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5712
5798
  "a",
5713
5799
  {
5714
5800
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
5715
5801
  className: "text-interface-foreground-default-primary underline",
5716
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5802
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5717
5803
  }
5718
5804
  );
5719
5805
  }
5720
- function GoBackButton({ config }) {
5806
+ function GoBackButton() {
5807
+ const config = (0, import_elements_react22.useOryConfiguration)();
5721
5808
  if ("default_redirect_url" in config.project) {
5722
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5809
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5723
5810
  "a",
5724
5811
  {
5725
5812
  className: "text-interface-foreground-default-primary underline",
5726
5813
  href: config.project.default_redirect_url,
5727
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5814
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5728
5815
  }
5729
5816
  );
5730
5817
  }
5731
5818
  return null;
5732
5819
  }
5733
- function ErrorLogo({ config }) {
5734
- var _a;
5735
- if (config.project.logo_light_url) {
5736
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5737
- "img",
5738
- {
5739
- src: config.project.logo_light_url,
5740
- width: 100,
5741
- height: 36,
5742
- alt: "Logo"
5743
- }
5744
- );
5745
- }
5746
- if (config.logoUrl) {
5747
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("img", { src: config.logoUrl, width: 100, height: 36, alt: "Logo" });
5820
+ function ErrorLogo() {
5821
+ const { project } = (0, import_elements_react22.useOryConfiguration)();
5822
+ if (project.logo_light_url) {
5823
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5748
5824
  }
5749
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: (_a = config.project.name) != null ? _a : config.name });
5825
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5750
5826
  }
5751
5827
 
5752
5828
  // src/theme/default/flows/login.tsx
5753
5829
  var import_client_fetch41 = require("@ory/client-fetch");
5754
- var import_elements_react22 = require("@ory/elements-react");
5755
- var import_jsx_runtime104 = require("react/jsx-runtime");
5830
+ var import_elements_react23 = require("@ory/elements-react");
5831
+ var import_jsx_runtime105 = require("react/jsx-runtime");
5756
5832
  function Login({
5757
5833
  flow,
5758
5834
  config,
@@ -5760,22 +5836,22 @@ function Login({
5760
5836
  components: flowOverrideComponents
5761
5837
  }) {
5762
5838
  const components = getOryComponents(flowOverrideComponents);
5763
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5764
- import_elements_react22.OryProvider,
5839
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5840
+ import_elements_react23.OryProvider,
5765
5841
  {
5766
5842
  config,
5767
5843
  flow,
5768
5844
  flowType: import_client_fetch41.FlowType.Login,
5769
5845
  components,
5770
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.OryTwoStepCard, {})
5846
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryTwoStepCard, {})
5771
5847
  }
5772
5848
  );
5773
5849
  }
5774
5850
 
5775
5851
  // src/theme/default/flows/recovery.tsx
5776
5852
  var import_client_fetch42 = require("@ory/client-fetch");
5777
- var import_elements_react23 = require("@ory/elements-react");
5778
- var import_jsx_runtime105 = require("react/jsx-runtime");
5853
+ var import_elements_react24 = require("@ory/elements-react");
5854
+ var import_jsx_runtime106 = require("react/jsx-runtime");
5779
5855
  function Recovery({
5780
5856
  flow,
5781
5857
  config,
@@ -5783,22 +5859,22 @@ function Recovery({
5783
5859
  components: flowOverrideComponents
5784
5860
  }) {
5785
5861
  const components = getOryComponents(flowOverrideComponents);
5786
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5787
- import_elements_react23.OryProvider,
5862
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5863
+ import_elements_react24.OryProvider,
5788
5864
  {
5789
5865
  config,
5790
5866
  flow,
5791
5867
  flowType: import_client_fetch42.FlowType.Recovery,
5792
5868
  components,
5793
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryTwoStepCard, {})
5869
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
5794
5870
  }
5795
5871
  );
5796
5872
  }
5797
5873
 
5798
5874
  // src/theme/default/flows/registration.tsx
5799
5875
  var import_client_fetch43 = require("@ory/client-fetch");
5800
- var import_elements_react24 = require("@ory/elements-react");
5801
- var import_jsx_runtime106 = require("react/jsx-runtime");
5876
+ var import_elements_react25 = require("@ory/elements-react");
5877
+ var import_jsx_runtime107 = require("react/jsx-runtime");
5802
5878
  function Registration({
5803
5879
  flow,
5804
5880
  children,
@@ -5806,22 +5882,22 @@ function Registration({
5806
5882
  config
5807
5883
  }) {
5808
5884
  const components = getOryComponents(flowOverrideComponents);
5809
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5810
- import_elements_react24.OryProvider,
5885
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5886
+ import_elements_react25.OryProvider,
5811
5887
  {
5812
5888
  config,
5813
5889
  flow,
5814
5890
  flowType: import_client_fetch43.FlowType.Registration,
5815
5891
  components,
5816
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
5892
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OryTwoStepCard, {})
5817
5893
  }
5818
5894
  );
5819
5895
  }
5820
5896
 
5821
5897
  // src/theme/default/flows/settings.tsx
5822
5898
  var import_client_fetch44 = require("@ory/client-fetch");
5823
- var import_elements_react25 = require("@ory/elements-react");
5824
- var import_jsx_runtime107 = require("react/jsx-runtime");
5899
+ var import_elements_react26 = require("@ory/elements-react");
5900
+ var import_jsx_runtime108 = require("react/jsx-runtime");
5825
5901
  function Settings({
5826
5902
  flow,
5827
5903
  config,
@@ -5829,16 +5905,16 @@ function Settings({
5829
5905
  components: flowOverrideComponents
5830
5906
  }) {
5831
5907
  const components = getOryComponents(flowOverrideComponents);
5832
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5833
- import_elements_react25.OryProvider,
5908
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5909
+ import_elements_react26.OryProvider,
5834
5910
  {
5835
5911
  config,
5836
5912
  flow,
5837
5913
  flowType: import_client_fetch44.FlowType.Settings,
5838
5914
  components,
5839
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
5840
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.HeadlessPageHeader, {}),
5841
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OrySettingsCard, {})
5915
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
5916
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.HeadlessPageHeader, {}),
5917
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OrySettingsCard, {})
5842
5918
  ] })
5843
5919
  }
5844
5920
  );
@@ -5846,8 +5922,8 @@ function Settings({
5846
5922
 
5847
5923
  // src/theme/default/flows/verification.tsx
5848
5924
  var import_client_fetch45 = require("@ory/client-fetch");
5849
- var import_elements_react26 = require("@ory/elements-react");
5850
- var import_jsx_runtime108 = require("react/jsx-runtime");
5925
+ var import_elements_react27 = require("@ory/elements-react");
5926
+ var import_jsx_runtime109 = require("react/jsx-runtime");
5851
5927
  function Verification({
5852
5928
  flow,
5853
5929
  config,
@@ -5855,21 +5931,21 @@ function Verification({
5855
5931
  components: flowOverrideComponents
5856
5932
  }) {
5857
5933
  const components = getOryComponents(flowOverrideComponents);
5858
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5859
- import_elements_react26.OryProvider,
5934
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5935
+ import_elements_react27.OryProvider,
5860
5936
  {
5861
5937
  config,
5862
5938
  flow,
5863
5939
  flowType: import_client_fetch45.FlowType.Verification,
5864
5940
  components,
5865
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OryTwoStepCard, {})
5941
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OryTwoStepCard, {})
5866
5942
  }
5867
5943
  );
5868
5944
  }
5869
5945
 
5870
5946
  // src/theme/default/flows/consent.tsx
5871
5947
  var import_client_fetch47 = require("@ory/client-fetch");
5872
- var import_elements_react27 = require("@ory/elements-react");
5948
+ var import_elements_react28 = require("@ory/elements-react");
5873
5949
 
5874
5950
  // src/theme/default/utils/oauth2.ts
5875
5951
  var import_client_fetch46 = require("@ory/client-fetch");
@@ -6010,7 +6086,7 @@ function challengeNode(challenge) {
6010
6086
  }
6011
6087
 
6012
6088
  // src/theme/default/flows/consent.tsx
6013
- var import_jsx_runtime109 = require("react/jsx-runtime");
6089
+ var import_jsx_runtime110 = require("react/jsx-runtime");
6014
6090
  function Consent({
6015
6091
  consentChallenge,
6016
6092
  session,
@@ -6027,14 +6103,14 @@ function Consent({
6027
6103
  formActionUrl,
6028
6104
  session
6029
6105
  );
6030
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6031
- import_elements_react27.OryProvider,
6106
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6107
+ import_elements_react28.OryProvider,
6032
6108
  {
6033
6109
  config,
6034
6110
  flow,
6035
6111
  flowType: import_client_fetch47.FlowType.OAuth2Consent,
6036
6112
  components,
6037
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OryConsentCard, {})
6113
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OryConsentCard, {})
6038
6114
  }
6039
6115
  );
6040
6116
  }