@ory/elements-react 0.0.0-pr.5cdcf132 → 0.0.0-pr.6a36702c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -92,46 +92,12 @@ function DefaultCardContent({ children }) {
92
92
  }
93
93
 
94
94
  // src/theme/default/components/card/footer.tsx
95
- var import_client_fetch27 = require("@ory/client-fetch");
95
+ var import_client_fetch29 = require("@ory/client-fetch");
96
96
  var import_elements_react3 = require("@ory/elements-react");
97
97
  var import_react_intl10 = require("react-intl");
98
98
 
99
- // 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_fetch28 = 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,160 +202,214 @@ 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");
252
298
 
253
299
  // src/components/form/form.tsx
254
- var import_client_fetch14 = require("@ory/client-fetch");
300
+ var import_client_fetch16 = require("@ory/client-fetch");
255
301
  var import_react_hook_form2 = require("react-hook-form");
256
302
  var import_react_intl = require("react-intl");
257
303
 
258
304
  // src/components/form/useOryFormSubmit.ts
259
- var import_client_fetch13 = require("@ory/client-fetch");
305
+ var import_client_fetch15 = require("@ory/client-fetch");
260
306
  var import_react_hook_form = require("react-hook-form");
261
307
 
262
308
  // src/util/onSubmitLogin.ts
309
+ var import_client_fetch9 = require("@ory/client-fetch");
310
+
311
+ // src/util/sdk-helpers/error.ts
263
312
  var import_client_fetch7 = require("@ory/client-fetch");
264
313
 
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
- headers: {
272
- Accept: "application/json",
273
- ...opts.headers
274
- }
275
- });
276
- return new import_client_fetch6.FrontendApi(config);
277
- }
314
+ // src/util/sdk-helpers/utils.ts
315
+ var import_client_fetch8 = require("@ory/client-fetch");
278
316
 
279
317
  // src/util/onSubmitRecovery.ts
280
- var import_client_fetch8 = require("@ory/client-fetch");
318
+ var import_client_fetch10 = require("@ory/client-fetch");
281
319
 
282
320
  // src/util/onSubmitRegistration.ts
283
- var import_client_fetch9 = require("@ory/client-fetch");
321
+ var import_client_fetch11 = require("@ory/client-fetch");
284
322
 
285
323
  // src/util/onSubmitSettings.ts
286
- var import_client_fetch10 = require("@ory/client-fetch");
324
+ var import_client_fetch12 = require("@ory/client-fetch");
287
325
 
288
326
  // src/util/onSubmitVerification.ts
289
- var import_client_fetch11 = require("@ory/client-fetch");
327
+ var import_client_fetch13 = require("@ory/client-fetch");
290
328
 
291
329
  // src/components/form/form-helpers.ts
292
- var import_client_fetch12 = require("@ory/client-fetch");
330
+ var import_client_fetch14 = require("@ory/client-fetch");
293
331
 
294
332
  // src/components/form/form.tsx
295
- var import_jsx_runtime6 = require("react/jsx-runtime");
333
+ var import_jsx_runtime7 = require("react/jsx-runtime");
296
334
 
297
335
  // src/components/form/groups.tsx
298
- var import_client_fetch17 = require("@ory/client-fetch");
336
+ var import_client_fetch19 = require("@ory/client-fetch");
299
337
 
300
338
  // src/components/form/nodes/input.tsx
301
- var import_client_fetch15 = require("@ory/client-fetch");
302
- var import_react5 = require("react");
339
+ var import_client_fetch17 = require("@ory/client-fetch");
340
+ var import_react6 = require("react");
303
341
  var import_react_hook_form3 = require("react-hook-form");
304
- var import_jsx_runtime7 = require("react/jsx-runtime");
342
+ var import_jsx_runtime8 = require("react/jsx-runtime");
305
343
 
306
344
  // src/components/form/nodes/node.tsx
307
- var import_client_fetch16 = require("@ory/client-fetch");
308
- var import_jsx_runtime8 = require("react/jsx-runtime");
345
+ var import_client_fetch18 = require("@ory/client-fetch");
346
+ var import_jsx_runtime9 = require("react/jsx-runtime");
309
347
 
310
348
  // src/components/form/groups.tsx
311
- var import_jsx_runtime9 = require("react/jsx-runtime");
349
+ var import_jsx_runtime10 = require("react/jsx-runtime");
312
350
 
313
351
  // src/components/form/messages.tsx
314
- var import_jsx_runtime10 = require("react/jsx-runtime");
352
+ var import_jsx_runtime11 = require("react/jsx-runtime");
315
353
 
316
354
  // src/components/form/social.tsx
317
- var import_client_fetch20 = require("@ory/client-fetch");
355
+ var import_client_fetch22 = require("@ory/client-fetch");
318
356
  var import_react_hook_form5 = require("react-hook-form");
319
357
 
320
358
  // src/components/form/form-provider.tsx
321
- var import_client_fetch19 = require("@ory/client-fetch");
359
+ var import_client_fetch21 = require("@ory/client-fetch");
322
360
  var import_react_hook_form4 = require("react-hook-form");
323
361
 
324
362
  // src/components/form/form-resolver.ts
325
- var import_client_fetch18 = require("@ory/client-fetch");
363
+ var import_client_fetch20 = require("@ory/client-fetch");
326
364
 
327
365
  // src/components/form/form-provider.tsx
328
- var import_jsx_runtime11 = require("react/jsx-runtime");
366
+ var import_jsx_runtime12 = require("react/jsx-runtime");
329
367
 
330
368
  // src/components/form/social.tsx
331
- var import_jsx_runtime12 = require("react/jsx-runtime");
369
+ var import_jsx_runtime13 = require("react/jsx-runtime");
332
370
 
333
371
  // src/components/form/section.tsx
334
372
  var import_react_hook_form6 = require("react-hook-form");
335
- var import_jsx_runtime13 = require("react/jsx-runtime");
373
+ var import_jsx_runtime14 = require("react/jsx-runtime");
336
374
 
337
375
  // src/components/generic/divider.tsx
338
- var import_client_fetch21 = require("@ory/client-fetch");
339
- var import_jsx_runtime14 = require("react/jsx-runtime");
376
+ var import_client_fetch23 = require("@ory/client-fetch");
377
+ var import_jsx_runtime15 = require("react/jsx-runtime");
340
378
 
341
379
  // src/components/generic/page-header.tsx
342
- var import_jsx_runtime15 = require("react/jsx-runtime");
380
+ var import_jsx_runtime16 = require("react/jsx-runtime");
343
381
 
344
382
  // src/components/settings/settings-card.tsx
345
- var import_client_fetch22 = require("@ory/client-fetch");
383
+ var import_client_fetch24 = require("@ory/client-fetch");
346
384
  var import_react_intl7 = require("react-intl");
347
385
 
348
386
  // src/components/settings/oidc-settings.tsx
349
387
  var import_react_intl2 = require("react-intl");
350
388
  var import_react_hook_form7 = require("react-hook-form");
351
- var import_jsx_runtime16 = require("react/jsx-runtime");
389
+ var import_jsx_runtime17 = require("react/jsx-runtime");
352
390
 
353
391
  // src/components/settings/passkey-settings.tsx
354
392
  var import_react_hook_form8 = require("react-hook-form");
355
393
  var import_react_intl3 = require("react-intl");
356
- var import_jsx_runtime17 = require("react/jsx-runtime");
394
+ var import_jsx_runtime18 = require("react/jsx-runtime");
357
395
 
358
396
  // src/components/settings/recovery-codes-settings.tsx
359
397
  var import_react_intl4 = require("react-intl");
360
398
  var import_react_hook_form9 = require("react-hook-form");
361
- var import_jsx_runtime18 = require("react/jsx-runtime");
399
+ var import_jsx_runtime19 = require("react/jsx-runtime");
362
400
 
363
401
  // src/components/settings/totp-settings.tsx
364
402
  var import_react_hook_form10 = require("react-hook-form");
365
403
  var import_react_intl5 = require("react-intl");
366
- var import_jsx_runtime19 = require("react/jsx-runtime");
404
+ var import_jsx_runtime20 = require("react/jsx-runtime");
367
405
 
368
406
  // src/components/settings/webauthn-settings.tsx
369
407
  var import_react_hook_form11 = require("react-hook-form");
370
408
  var import_react_intl6 = require("react-intl");
371
- var import_jsx_runtime20 = require("react/jsx-runtime");
409
+ var import_jsx_runtime21 = require("react/jsx-runtime");
372
410
 
373
411
  // src/components/settings/settings-card.tsx
374
- var import_jsx_runtime21 = require("react/jsx-runtime");
412
+ var import_jsx_runtime22 = require("react/jsx-runtime");
375
413
 
376
414
  // src/util/i18n/index.ts
377
415
  var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
@@ -2738,7 +2776,7 @@ var OryLocales = {
2738
2776
  };
2739
2777
 
2740
2778
  // src/context/intl-context.tsx
2741
- var import_jsx_runtime22 = require("react/jsx-runtime");
2779
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2742
2780
  function mergeTranslations(customTranslations) {
2743
2781
  return Object.keys(customTranslations).reduce((acc, key) => {
2744
2782
  acc[key] = { ...OryLocales[key], ...customTranslations[key] };
@@ -2751,12 +2789,12 @@ var IntlProvider = ({
2751
2789
  customTranslations
2752
2790
  }) => {
2753
2791
  const messages = mergeTranslations(customTranslations != null ? customTranslations : {});
2754
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2792
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2755
2793
  import_react_intl8.IntlProvider,
2756
2794
  {
2757
2795
  onWarn: () => ({}),
2758
2796
  defaultRichTextElements: {
2759
- del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("del", { children: chunks })
2797
+ del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("del", { children: chunks })
2760
2798
  },
2761
2799
  locale,
2762
2800
  messages: messages[locale],
@@ -2767,35 +2805,35 @@ var IntlProvider = ({
2767
2805
  };
2768
2806
 
2769
2807
  // src/context/provider.tsx
2770
- var import_jsx_runtime23 = require("react/jsx-runtime");
2808
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2771
2809
 
2772
2810
  // src/components/card/header.tsx
2773
- var import_jsx_runtime24 = require("react/jsx-runtime");
2811
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2774
2812
 
2775
2813
  // src/components/card/card.tsx
2776
- var import_jsx_runtime25 = require("react/jsx-runtime");
2814
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2777
2815
 
2778
2816
  // src/components/card/footer.tsx
2779
- var import_jsx_runtime26 = require("react/jsx-runtime");
2817
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2780
2818
 
2781
2819
  // src/components/card/content.tsx
2782
- var import_jsx_runtime27 = require("react/jsx-runtime");
2820
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2783
2821
 
2784
2822
  // src/components/card/two-step/state-method-active.tsx
2785
- var import_client_fetch23 = require("@ory/client-fetch");
2786
- var import_jsx_runtime28 = require("react/jsx-runtime");
2823
+ var import_client_fetch25 = require("@ory/client-fetch");
2824
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2787
2825
 
2788
2826
  // src/components/card/two-step/state-provide-identifier.tsx
2789
- var import_client_fetch24 = require("@ory/client-fetch");
2790
- var import_jsx_runtime29 = require("react/jsx-runtime");
2827
+ var import_client_fetch26 = require("@ory/client-fetch");
2828
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2791
2829
 
2792
2830
  // src/components/card/card-two-step.tsx
2793
2831
  var import_elements_react = require("@ory/elements-react");
2794
- var import_jsx_runtime30 = require("react/jsx-runtime");
2832
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2795
2833
 
2796
2834
  // src/components/card/card-consent.tsx
2797
- var import_client_fetch25 = require("@ory/client-fetch");
2798
- var import_jsx_runtime31 = require("react/jsx-runtime");
2835
+ var import_client_fetch27 = require("@ory/client-fetch");
2836
+ var import_jsx_runtime32 = require("react/jsx-runtime");
2799
2837
 
2800
2838
  // src/components/card/two-step/state-select-method.tsx
2801
2839
  var import_react_intl9 = require("react-intl");
@@ -2803,34 +2841,41 @@ var import_react_intl9 = require("react-intl");
2803
2841
  // src/components/card/two-step/list-methods.tsx
2804
2842
  var import_elements_react2 = require("@ory/elements-react");
2805
2843
  var import_react_hook_form12 = require("react-hook-form");
2806
- var import_jsx_runtime32 = require("react/jsx-runtime");
2844
+ var import_jsx_runtime33 = require("react/jsx-runtime");
2807
2845
 
2808
2846
  // src/components/card/two-step/state-select-method.tsx
2809
- var import_jsx_runtime33 = require("react/jsx-runtime");
2847
+ var import_jsx_runtime34 = require("react/jsx-runtime");
2810
2848
  function toAuthMethodPickerOptions(visibleGroups) {
2811
2849
  return Object.fromEntries(
2812
- Object.values(import_client_fetch26.UiNodeGroupEnum).filter((group) => {
2850
+ Object.values(import_client_fetch28.UiNodeGroupEnum).filter((group) => {
2813
2851
  var _a;
2814
2852
  return (_a = visibleGroups[group]) == null ? void 0 : _a.length;
2815
2853
  }).filter(
2816
2854
  (group) => ![
2817
- import_client_fetch26.UiNodeGroupEnum.Oidc,
2818
- import_client_fetch26.UiNodeGroupEnum.Saml,
2819
- import_client_fetch26.UiNodeGroupEnum.Default,
2820
- import_client_fetch26.UiNodeGroupEnum.IdentifierFirst,
2821
- import_client_fetch26.UiNodeGroupEnum.Profile,
2822
- import_client_fetch26.UiNodeGroupEnum.Captcha
2855
+ import_client_fetch28.UiNodeGroupEnum.Oidc,
2856
+ import_client_fetch28.UiNodeGroupEnum.Saml,
2857
+ import_client_fetch28.UiNodeGroupEnum.Default,
2858
+ import_client_fetch28.UiNodeGroupEnum.IdentifierFirst,
2859
+ import_client_fetch28.UiNodeGroupEnum.Profile,
2860
+ import_client_fetch28.UiNodeGroupEnum.Captcha
2823
2861
  ].includes(group)
2824
2862
  ).map((g) => [g, {}])
2825
2863
  );
2826
2864
  }
2827
2865
 
2866
+ // src/util/nodes.ts
2867
+ function findScreenSelectionButton(nodes) {
2868
+ return nodes.find(
2869
+ (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
2870
+ );
2871
+ }
2872
+
2828
2873
  // src/theme/default/utils/logout.ts
2829
- var import_react6 = require("react");
2874
+ var import_react7 = require("react");
2830
2875
  function useClientLogout(config) {
2831
- const [logoutFlow, setLogoutFlow] = (0, import_react6.useState)();
2832
- const [isLoading, setIsLoading] = (0, import_react6.useState)(true);
2833
- const fetchLogoutFlow = (0, import_react6.useCallback)(async () => {
2876
+ const [logoutFlow, setLogoutFlow] = (0, import_react7.useState)();
2877
+ const [isLoading, setIsLoading] = (0, import_react7.useState)(true);
2878
+ const fetchLogoutFlow = (0, import_react7.useCallback)(async () => {
2834
2879
  try {
2835
2880
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow().catch((err) => {
2836
2881
  var _a;
@@ -2844,39 +2889,88 @@ function useClientLogout(config) {
2844
2889
  setIsLoading(false);
2845
2890
  }
2846
2891
  }, [config.sdk.url]);
2847
- (0, import_react6.useEffect)(() => {
2892
+ (0, import_react7.useEffect)(() => {
2848
2893
  void fetchLogoutFlow();
2849
2894
  }, [fetchLogoutFlow]);
2850
2895
  return { logoutFlow, didLoad: !isLoading };
2851
2896
  }
2852
2897
 
2853
- // src/theme/default/components/card/footer.tsx
2854
- var import_jsx_runtime34 = require("react/jsx-runtime");
2855
- function DefaultCardFooter() {
2856
- const oryFlow = (0, import_elements_react3.useOryFlow)();
2857
- switch (oryFlow.flowType) {
2858
- case import_client_fetch27.FlowType.Login:
2859
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LoginCardFooter, {});
2860
- case import_client_fetch27.FlowType.Registration:
2861
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RegistrationCardFooter, {});
2862
- case import_client_fetch27.FlowType.Recovery:
2863
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(RecoveryCardFooter, {});
2864
- case import_client_fetch27.FlowType.Verification:
2865
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(VerificationCardFooter, {});
2866
- case import_client_fetch27.FlowType.OAuth2Consent:
2867
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
2868
- default:
2869
- return null;
2870
- }
2898
+ // src/theme/default/utils/url.ts
2899
+ function restartFlowUrl(flow, fallback) {
2900
+ return flow.request_url || appendReturnTo(fallback, flow.return_to);
2871
2901
  }
2872
- function LoginCardFooter() {
2873
- const { config, formState, flow, flowType } = (0, import_elements_react3.useOryFlow)();
2874
- const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
2875
- const intl = (0, import_react_intl10.useIntl)();
2876
- if (flowType !== import_client_fetch27.FlowType.Login) {
2877
- return null;
2902
+ function initFlowUrl(sdkUrl, flowType, flow) {
2903
+ const result = `${sdkUrl}/self-service/${flowType}/browser`;
2904
+ const qs = new URLSearchParams();
2905
+ if (flow.oauth2_login_challenge) {
2906
+ qs.set("login_challenge", flow.oauth2_login_challenge);
2878
2907
  }
2879
- const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
2908
+ if (flow.return_to) {
2909
+ qs.set("return_to", flow.return_to);
2910
+ } else if (typeof window !== "undefined") {
2911
+ const searchParams = new URLSearchParams(window.location.search);
2912
+ if (searchParams.has("return_to")) {
2913
+ qs.set("return_to", searchParams.get("return_to") || "");
2914
+ }
2915
+ }
2916
+ if (qs.toString().length === 0) {
2917
+ return result;
2918
+ }
2919
+ return result + "?" + qs.toString();
2920
+ }
2921
+ function appendReturnTo(url, returnTo) {
2922
+ if (!returnTo) {
2923
+ return url;
2924
+ }
2925
+ const urlObj = new URL(url);
2926
+ urlObj.searchParams.set("return_to", returnTo);
2927
+ return urlObj.toString();
2928
+ }
2929
+
2930
+ // src/theme/default/components/card/footer.tsx
2931
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2932
+ function DefaultCardFooter() {
2933
+ const oryFlow = (0, import_elements_react3.useOryFlow)();
2934
+ switch (oryFlow.flowType) {
2935
+ case import_client_fetch29.FlowType.Login:
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, {});
2937
+ case import_client_fetch29.FlowType.Registration:
2938
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RegistrationCardFooter, {});
2939
+ case import_client_fetch29.FlowType.Recovery:
2940
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RecoveryCardFooter, {});
2941
+ case import_client_fetch29.FlowType.Verification:
2942
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(VerificationCardFooter, {});
2943
+ case import_client_fetch29.FlowType.OAuth2Consent:
2944
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
2945
+ default:
2946
+ return null;
2947
+ }
2948
+ }
2949
+ function shouldShowLogoutButton(flow, formState, authMethods) {
2950
+ if (flow.refresh) {
2951
+ return true;
2952
+ }
2953
+ if (flow.requested_aal === "aal2") {
2954
+ if (formState.current === "select_method") {
2955
+ return true;
2956
+ }
2957
+ if (formState.current === "method_active" && flow.active === "code") {
2958
+ return true;
2959
+ }
2960
+ if (formState.current === "method_active" && authMethods.length === 1) {
2961
+ return true;
2962
+ }
2963
+ }
2964
+ return false;
2965
+ }
2966
+ function LoginCardFooter() {
2967
+ const { formState, flow, flowType, dispatchFormState } = (0, import_elements_react3.useOryFlow)();
2968
+ const config = (0, import_elements_react3.useOryConfiguration)();
2969
+ const intl = (0, import_react_intl10.useIntl)();
2970
+ if (flowType !== import_client_fetch29.FlowType.Login) {
2971
+ return null;
2972
+ }
2973
+ const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
2880
2974
  let returnTo = config.project.default_redirect_url;
2881
2975
  if (flow.return_to) {
2882
2976
  returnTo = flow.return_to;
@@ -2887,36 +2981,17 @@ function LoginCardFooter() {
2887
2981
  `${config.sdk.url}/self-service/${flowType}/browser`
2888
2982
  );
2889
2983
  }
2890
- if (flow.refresh || flow.requested_aal === "aal2") {
2891
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2892
- intl.formatMessage({
2893
- id: "login.2fa.go-back"
2894
- }),
2895
- " ",
2896
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2897
- "a",
2898
- {
2899
- className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
2900
- href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
2901
- "data-testid": (
2902
- // Only add the test-id when the logout link has loaded.
2903
- didLoadLogout ? "ory/screen/login/action/logout" : void 0
2904
- ),
2905
- children: intl.formatMessage({
2906
- id: !didLoadLogout || logout ? "login.logout-button" : "login.2fa.go-back.link"
2907
- })
2908
- }
2909
- )
2910
- ] });
2984
+ if (shouldShowLogoutButton(flow, formState, authMethods)) {
2985
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LogoutButton, { returnTo });
2911
2986
  }
2912
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
2913
- 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: [
2987
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
2988
+ 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: [
2914
2989
  intl.formatMessage({
2915
2990
  id: "login.registration-label",
2916
2991
  defaultMessage: "No account?"
2917
2992
  }),
2918
2993
  " ",
2919
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
2994
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2920
2995
  "a",
2921
2996
  {
2922
2997
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2929,18 +3004,22 @@ function LoginCardFooter() {
2929
3004
  }
2930
3005
  )
2931
3006
  ] }),
2932
- 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)(
2933
- "a",
3007
+ 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)(
3008
+ "button",
2934
3009
  {
2935
3010
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
2936
- href: "",
3011
+ onClick: () => {
3012
+ dispatchFormState({
3013
+ type: "action_clear_active_method"
3014
+ });
3015
+ },
2937
3016
  "data-testid": "ory/screen/login/mfa/action/selectMethod",
2938
3017
  children: intl.formatMessage({
2939
3018
  id: "login.2fa.method.go-back"
2940
3019
  })
2941
3020
  }
2942
3021
  ) }),
2943
- 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)(
3022
+ 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)(
2944
3023
  "a",
2945
3024
  {
2946
3025
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -2953,9 +3032,35 @@ function LoginCardFooter() {
2953
3032
  ) })
2954
3033
  ] });
2955
3034
  }
3035
+ function LogoutButton({ returnTo }) {
3036
+ const config = (0, import_elements_react3.useOryConfiguration)();
3037
+ const intl = (0, import_react_intl10.useIntl)();
3038
+ const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
3039
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3040
+ intl.formatMessage({
3041
+ id: "login.2fa.go-back"
3042
+ }),
3043
+ " ",
3044
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3045
+ "a",
3046
+ {
3047
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
3048
+ href: logout ? logout == null ? void 0 : logout.logout_url : returnTo,
3049
+ "data-testid": (
3050
+ // Only add the test-id when the logout link has loaded.
3051
+ didLoadLogout ? "ory/screen/login/action/logout" : void 0
3052
+ ),
3053
+ children: intl.formatMessage({
3054
+ id: !didLoadLogout || logout ? "login.logout-button" : "login.2fa.go-back.link"
3055
+ })
3056
+ }
3057
+ )
3058
+ ] });
3059
+ }
2956
3060
  function RegistrationCardFooter() {
2957
3061
  const intl = (0, import_react_intl10.useIntl)();
2958
- const { config, flow, formState } = (0, import_elements_react3.useOryFlow)();
3062
+ const { flow, formState } = (0, import_elements_react3.useOryFlow)();
3063
+ const config = (0, import_elements_react3.useOryConfiguration)();
2959
3064
  const visibleGroups = useNodeGroupsWithVisibleNodes(flow.ui.nodes);
2960
3065
  const authMethodBlocks = toAuthMethodPickerOptions(visibleGroups);
2961
3066
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
@@ -2964,11 +3069,12 @@ function RegistrationCardFooter() {
2964
3069
  if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
2965
3070
  return null;
2966
3071
  }
2967
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3072
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2968
3073
  "a",
2969
3074
  {
2970
3075
  className: "font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",
2971
3076
  href: "",
3077
+ "data-testid": "ory/screen/registration/action/selectMethod",
2972
3078
  children: intl.formatMessage({
2973
3079
  id: "card.footer.select-another-method",
2974
3080
  defaultMessage: "Select another method"
@@ -2977,13 +3083,13 @@ function RegistrationCardFooter() {
2977
3083
  ) });
2978
3084
  case "select_method":
2979
3085
  default:
2980
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
3086
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
2981
3087
  intl.formatMessage({
2982
3088
  id: "registration.login-label",
2983
3089
  defaultMessage: "Already have an account?"
2984
3090
  }),
2985
3091
  " ",
2986
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3092
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2987
3093
  "a",
2988
3094
  {
2989
3095
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -3012,26 +3118,26 @@ function ConsentCardFooter({ flow }) {
3012
3118
  node_type: "input",
3013
3119
  name: "remember"
3014
3120
  });
3015
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-8 flex-col", children: [
3016
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
3017
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
3121
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-8 flex-col", children: [
3122
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
3123
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
3018
3124
  "Make sure you trust ",
3019
3125
  (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
3020
3126
  ] }),
3021
- /* @__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." })
3127
+ /* @__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." })
3022
3128
  ] }),
3023
- rememberNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3129
+ rememberNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3024
3130
  Node2.Checkbox,
3025
3131
  {
3026
3132
  attributes: rememberNode.attributes,
3027
3133
  node: rememberNode
3028
3134
  }
3029
3135
  ),
3030
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3136
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
3031
3137
  (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
3032
3138
  ).map((n) => {
3033
3139
  const attributes = n.attributes;
3034
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3140
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3035
3141
  Node2.Button,
3036
3142
  {
3037
3143
  node: n,
@@ -3040,8 +3146,8 @@ function ConsentCardFooter({ flow }) {
3040
3146
  attributes.value
3041
3147
  );
3042
3148
  }) }),
3043
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("p", { className: "text-sm", children: [
3044
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
3149
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "text-sm", children: [
3150
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
3045
3151
  "Authorizing will redirect to",
3046
3152
  " "
3047
3153
  ] }),
@@ -3054,7 +3160,7 @@ function ConsentCardFooter({ flow }) {
3054
3160
  var import_elements_react5 = require("@ory/elements-react");
3055
3161
 
3056
3162
  // src/theme/default/utils/constructCardHeader.ts
3057
- var import_client_fetch28 = require("@ory/client-fetch");
3163
+ var import_client_fetch30 = require("@ory/client-fetch");
3058
3164
  var import_react_intl11 = require("react-intl");
3059
3165
  function joinWithCommaOr(list, orText = "or") {
3060
3166
  if (list.length === 0) {
@@ -3071,7 +3177,7 @@ function useCardHeaderText(container, opts) {
3071
3177
  const nodes = container.nodes;
3072
3178
  const intl = (0, import_react_intl11.useIntl)();
3073
3179
  switch (opts.flowType) {
3074
- case import_client_fetch28.FlowType.Recovery:
3180
+ case import_client_fetch30.FlowType.Recovery:
3075
3181
  if (nodes.find(
3076
3182
  (node) => "name" in node.attributes && node.attributes.name === "code"
3077
3183
  )) {
@@ -3093,7 +3199,7 @@ function useCardHeaderText(container, opts) {
3093
3199
  id: "recovery.subtitle"
3094
3200
  })
3095
3201
  };
3096
- case import_client_fetch28.FlowType.Settings:
3202
+ case import_client_fetch30.FlowType.Settings:
3097
3203
  return {
3098
3204
  title: intl.formatMessage({
3099
3205
  id: "settings.title"
@@ -3102,7 +3208,7 @@ function useCardHeaderText(container, opts) {
3102
3208
  id: "settings.subtitle"
3103
3209
  })
3104
3210
  };
3105
- case import_client_fetch28.FlowType.Verification:
3211
+ case import_client_fetch30.FlowType.Verification:
3106
3212
  if (nodes.find(
3107
3213
  (node) => "name" in node.attributes && node.attributes.name === "code"
3108
3214
  )) {
@@ -3124,7 +3230,7 @@ function useCardHeaderText(container, opts) {
3124
3230
  id: "verification.subtitle"
3125
3231
  })
3126
3232
  };
3127
- case import_client_fetch28.FlowType.Login: {
3233
+ case import_client_fetch30.FlowType.Login: {
3128
3234
  const accountLinkingMessage = (_a = container.messages) == null ? void 0 : _a.find(
3129
3235
  (m) => m.id === 1010016
3130
3236
  );
@@ -3147,7 +3253,7 @@ function useCardHeaderText(container, opts) {
3147
3253
  const parts = [];
3148
3254
  if (nodes.find((node) => node.group === "password")) {
3149
3255
  switch (opts.flowType) {
3150
- case import_client_fetch28.FlowType.Registration:
3256
+ case import_client_fetch30.FlowType.Registration:
3151
3257
  parts.push(
3152
3258
  intl.formatMessage(
3153
3259
  { id: "card.header.parts.password.registration" },
@@ -3190,7 +3296,7 @@ function useCardHeaderText(container, opts) {
3190
3296
  }
3191
3297
  if (nodes.find((node) => node.group === "identifier_first")) {
3192
3298
  const identifier = nodes.find(
3193
- (node) => (0, import_client_fetch28.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
3299
+ (node) => (0, import_client_fetch30.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
3194
3300
  );
3195
3301
  if (identifier) {
3196
3302
  parts.push(
@@ -3206,7 +3312,7 @@ function useCardHeaderText(container, opts) {
3206
3312
  }
3207
3313
  }
3208
3314
  switch (opts.flowType) {
3209
- case import_client_fetch28.FlowType.Login:
3315
+ case import_client_fetch30.FlowType.Login:
3210
3316
  if (opts.flow.refresh) {
3211
3317
  return {
3212
3318
  title: intl.formatMessage({
@@ -3247,7 +3353,7 @@ function useCardHeaderText(container, opts) {
3247
3353
  }
3248
3354
  ) : ""
3249
3355
  };
3250
- case import_client_fetch28.FlowType.Registration:
3356
+ case import_client_fetch30.FlowType.Registration:
3251
3357
  return {
3252
3358
  title: intl.formatMessage({
3253
3359
  id: "registration.title"
@@ -3264,7 +3370,7 @@ function useCardHeaderText(container, opts) {
3264
3370
  }
3265
3371
  ) : ""
3266
3372
  };
3267
- case import_client_fetch28.FlowType.OAuth2Consent:
3373
+ case import_client_fetch30.FlowType.OAuth2Consent:
3268
3374
  return {
3269
3375
  title: intl.formatMessage(
3270
3376
  {
@@ -3291,17 +3397,10 @@ function useCardHeaderText(container, opts) {
3291
3397
  }
3292
3398
 
3293
3399
  // src/theme/default/components/card/current-identifier-button.tsx
3294
- var import_client_fetch29 = require("@ory/client-fetch");
3400
+ var import_client_fetch31 = require("@ory/client-fetch");
3295
3401
  var import_elements_react4 = require("@ory/elements-react");
3296
-
3297
- // src/theme/default/assets/icons/arrow-left.svg
3298
- var React3 = __toESM(require("react"));
3299
- var import_jsx_runtime35 = require("react/jsx-runtime");
3300
- var SvgArrowLeft = (props) => {
3301
- var _a, _b;
3302
- 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" }) });
3303
- };
3304
- var arrow_left_default = SvgArrowLeft;
3402
+ var import_react8 = require("react");
3403
+ var import_react_hook_form13 = require("react-hook-form");
3305
3404
 
3306
3405
  // src/theme/default/utils/attributes.ts
3307
3406
  function omit(obj, keys) {
@@ -3312,17 +3411,50 @@ function omit(obj, keys) {
3312
3411
  return ret;
3313
3412
  }
3314
3413
 
3315
- // src/theme/default/components/card/current-identifier-button.tsx
3316
- var import_react_hook_form13 = require("react-hook-form");
3414
+ // src/util/omitAttributes.ts
3415
+ function omitInputAttributes({
3416
+ ...attrs
3417
+ }) {
3418
+ return omit(attrs, [
3419
+ "autocomplete",
3420
+ "label",
3421
+ "node_type",
3422
+ "maxlength",
3423
+ "onclick",
3424
+ "onclickTrigger",
3425
+ "onload",
3426
+ "onloadTrigger"
3427
+ ]);
3428
+ }
3429
+
3430
+ // src/theme/default/assets/icons/arrow-left.svg
3431
+ var React3 = __toESM(require("react"));
3317
3432
  var import_jsx_runtime36 = require("react/jsx-runtime");
3433
+ var SvgArrowLeft = (props) => {
3434
+ var _a, _b;
3435
+ 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" }) });
3436
+ };
3437
+ var arrow_left_default = SvgArrowLeft;
3438
+
3439
+ // src/theme/default/components/card/current-identifier-button.tsx
3440
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3318
3441
  function DefaultCurrentIdentifierButton() {
3319
- const { flow, flowType, config, formState } = (0, import_elements_react4.useOryFlow)();
3320
- const { setValue } = (0, import_react_hook_form13.useFormContext)();
3442
+ var _a;
3443
+ const { flow, flowType, formState } = (0, import_elements_react4.useOryFlow)();
3444
+ const { setValue, getValues, watch } = (0, import_react_hook_form13.useFormContext)();
3445
+ const [turnstileResponse, setTurnstileResponse] = (0, import_react8.useState)();
3446
+ const config = (0, import_elements_react4.useOryConfiguration)();
3321
3447
  const ui = flow.ui;
3448
+ const captchaVerificationValue = (_a = watch("transient_payload")) == null ? void 0 : _a.captcha_turnstile_response;
3449
+ (0, import_react8.useEffect)(() => {
3450
+ if (captchaVerificationValue) {
3451
+ setTurnstileResponse(captchaVerificationValue);
3452
+ }
3453
+ }, [captchaVerificationValue]);
3322
3454
  if (formState.current === "provide_identifier") {
3323
3455
  return null;
3324
3456
  }
3325
- if (flowType === import_client_fetch29.FlowType.Login && flow.requested_aal === "aal2") {
3457
+ if (flowType === import_client_fetch31.FlowType.Login && flow.requested_aal === "aal2") {
3326
3458
  return null;
3327
3459
  }
3328
3460
  const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
@@ -3333,36 +3465,35 @@ function DefaultCurrentIdentifierButton() {
3333
3465
  flow,
3334
3466
  `${config.sdk.url}/self-service/${flowType}/browser`
3335
3467
  );
3336
- const attributes = omit(nodeBackButton, [
3337
- "autocomplete",
3338
- "node_type",
3339
- "maxlength"
3340
- ]);
3341
3468
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
3342
3469
  if (screenSelectionNode) {
3343
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
3470
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
3344
3471
  flow.ui.nodes.filter((n) => {
3345
- if ((0, import_client_fetch29.isUiNodeInputAttributes)(n.attributes)) {
3472
+ if ((0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes)) {
3346
3473
  return n.attributes.type === "hidden";
3347
3474
  }
3348
3475
  return false;
3349
3476
  }).map((n) => {
3350
3477
  const attrs = n.attributes;
3351
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3478
+ let value = getValues(attrs.name) || attrs.value;
3479
+ if (attrs.name === "transient_payload.captcha_turnstile_response" && turnstileResponse) {
3480
+ value = turnstileResponse;
3481
+ }
3482
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3352
3483
  "input",
3353
3484
  {
3354
3485
  type: "hidden",
3355
3486
  name: attrs.name,
3356
- value: attrs.value
3487
+ value
3357
3488
  },
3358
3489
  attrs.name
3359
3490
  );
3360
3491
  }),
3361
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3492
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3362
3493
  "button",
3363
3494
  {
3364
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",
3365
- ...attributes,
3496
+ ...omitInputAttributes(nodeBackButton),
3366
3497
  type: "submit",
3367
3498
  onClick: () => {
3368
3499
  setValue(
@@ -3375,8 +3506,8 @@ function DefaultCurrentIdentifierButton() {
3375
3506
  value: screenSelectionNode.attributes.value,
3376
3507
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3377
3508
  "data-testid": `ory/screen/${flowType}/action/restart`,
3378
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3379
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3509
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3510
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3380
3511
  arrow_left_default,
3381
3512
  {
3382
3513
  size: 16,
@@ -3384,22 +3515,22 @@ function DefaultCurrentIdentifierButton() {
3384
3515
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3385
3516
  }
3386
3517
  ),
3387
- /* @__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 })
3518
+ /* @__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 })
3388
3519
  ] })
3389
3520
  }
3390
3521
  )
3391
3522
  ] });
3392
3523
  }
3393
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3524
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3394
3525
  "a",
3395
3526
  {
3396
3527
  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",
3397
- ...attributes,
3528
+ ...omitInputAttributes(nodeBackButton),
3398
3529
  href: initFlowUrl2,
3399
3530
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
3400
3531
  "data-testid": `ory/screen/${flowType}/action/restart`,
3401
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3402
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3532
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
3533
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3403
3534
  arrow_left_default,
3404
3535
  {
3405
3536
  size: 16,
@@ -3407,7 +3538,7 @@ function DefaultCurrentIdentifierButton() {
3407
3538
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
3408
3539
  }
3409
3540
  ),
3410
- /* @__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 })
3541
+ /* @__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 })
3411
3542
  ] })
3412
3543
  }
3413
3544
  );
@@ -3416,18 +3547,18 @@ function getBackButtonNodeAttributes(flowType, nodes) {
3416
3547
  var _a, _b;
3417
3548
  let nodeBackButtonAttributes;
3418
3549
  switch (flowType) {
3419
- case import_client_fetch29.FlowType.Login:
3550
+ case import_client_fetch31.FlowType.Login:
3420
3551
  nodeBackButtonAttributes = (_a = nodes.find(
3421
- (node) => (0, import_client_fetch29.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
3552
+ (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
3422
3553
  )) == null ? void 0 : _a.attributes;
3423
3554
  break;
3424
- case import_client_fetch29.FlowType.Registration:
3555
+ case import_client_fetch31.FlowType.Registration:
3425
3556
  nodeBackButtonAttributes = guessRegistrationBackButton(nodes);
3426
3557
  break;
3427
- case import_client_fetch29.FlowType.Recovery:
3428
- case import_client_fetch29.FlowType.Verification:
3558
+ case import_client_fetch31.FlowType.Recovery:
3559
+ case import_client_fetch31.FlowType.Verification:
3429
3560
  nodeBackButtonAttributes = (_b = nodes.find(
3430
- (n) => (0, import_client_fetch29.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
3561
+ (n) => (0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
3431
3562
  )) == null ? void 0 : _b.attributes;
3432
3563
  break;
3433
3564
  }
@@ -3444,23 +3575,23 @@ var backButtonCandiates = [
3444
3575
  function guessRegistrationBackButton(uiNodes) {
3445
3576
  var _a;
3446
3577
  return (_a = uiNodes.find(
3447
- (node) => (0, import_client_fetch29.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
3578
+ (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
3448
3579
  )) == null ? void 0 : _a.attributes;
3449
3580
  }
3450
3581
 
3451
3582
  // src/theme/default/components/card/header.tsx
3452
- var import_jsx_runtime37 = require("react/jsx-runtime");
3583
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3453
3584
  function InnerCardHeader({
3454
3585
  title,
3455
3586
  text,
3456
3587
  messageId
3457
3588
  }) {
3458
3589
  const { Card } = (0, import_elements_react5.useComponents)();
3459
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
3460
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Card.Logo, {}),
3461
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-2", children: [
3462
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3463
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3590
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
3591
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Card.Logo, {}),
3592
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-2", children: [
3593
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
3594
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3464
3595
  "p",
3465
3596
  {
3466
3597
  className: "leading-normal text-interface-foreground-default-secondary",
@@ -3468,7 +3599,7 @@ function InnerCardHeader({
3468
3599
  children: text
3469
3600
  }
3470
3601
  ),
3471
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DefaultCurrentIdentifierButton, {})
3602
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DefaultCurrentIdentifierButton, {})
3472
3603
  ] })
3473
3604
  ] });
3474
3605
  }
@@ -3478,32 +3609,40 @@ function DefaultCardHeader() {
3478
3609
  context.flow.ui,
3479
3610
  context
3480
3611
  );
3481
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(InnerCardHeader, { title, text: description, messageId });
3612
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InnerCardHeader, { title, text: description, messageId });
3482
3613
  }
3483
3614
 
3484
3615
  // src/theme/default/components/card/logo.tsx
3485
3616
  var import_elements_react6 = require("@ory/elements-react");
3486
- var import_jsx_runtime38 = require("react/jsx-runtime");
3617
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3487
3618
  function DefaultCardLogo() {
3488
- const flow = (0, import_elements_react6.useOryFlow)();
3489
- if (flow.config.logoUrl) {
3490
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
3619
+ const config = (0, import_elements_react6.useOryConfiguration)();
3620
+ if (config.project.logo_light_url) {
3621
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3622
+ "img",
3623
+ {
3624
+ src: config.project.logo_light_url,
3625
+ width: 100,
3626
+ height: 36,
3627
+ alt: "Logo"
3628
+ }
3629
+ );
3491
3630
  }
3492
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: flow.config.name });
3631
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.project.name });
3493
3632
  }
3494
3633
 
3495
3634
  // src/theme/default/components/card/layout.tsx
3496
- var import_jsx_runtime39 = require("react/jsx-runtime");
3635
+ var import_jsx_runtime40 = require("react/jsx-runtime");
3497
3636
  function DefaultCardLayout({ children }) {
3498
- 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 });
3637
+ 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 });
3499
3638
  }
3500
3639
 
3501
3640
  // src/theme/default/components/card/index.tsx
3502
- var import_jsx_runtime40 = require("react/jsx-runtime");
3641
+ var import_jsx_runtime41 = require("react/jsx-runtime");
3503
3642
  function DefaultCard({ children }) {
3504
- 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: [
3643
+ 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: [
3505
3644
  children,
3506
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
3645
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Badge, {})
3507
3646
  ] }) });
3508
3647
  }
3509
3648
 
@@ -3517,56 +3656,56 @@ function cn(...inputs) {
3517
3656
  // src/theme/default/components/form/index.tsx
3518
3657
  var import_react_intl13 = require("react-intl");
3519
3658
  var import_elements_react8 = require("@ory/elements-react");
3520
- var import_client_fetch31 = require("@ory/client-fetch");
3659
+ var import_client_fetch33 = require("@ory/client-fetch");
3521
3660
 
3522
3661
  // src/theme/default/components/form/social.tsx
3523
3662
  var import_elements_react7 = require("@ory/elements-react");
3524
- var import_react7 = require("react");
3663
+ var import_react9 = require("react");
3525
3664
  var import_react_hook_form14 = require("react-hook-form");
3526
3665
  var import_react_intl12 = require("react-intl");
3527
3666
  var import_usehooks_ts = require("usehooks-ts");
3528
3667
 
3529
3668
  // src/theme/default/provider-logos/apple.svg
3530
3669
  var React4 = __toESM(require("react"));
3531
- var import_jsx_runtime41 = require("react/jsx-runtime");
3670
+ var import_jsx_runtime42 = require("react/jsx-runtime");
3532
3671
  var SvgApple = (props) => {
3533
3672
  var _a, _b;
3534
- 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" }) });
3673
+ 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" }) });
3535
3674
  };
3536
3675
  var apple_default = SvgApple;
3537
3676
 
3538
3677
  // src/theme/default/provider-logos/auth0.svg
3539
3678
  var React5 = __toESM(require("react"));
3540
- var import_jsx_runtime42 = require("react/jsx-runtime");
3679
+ var import_jsx_runtime43 = require("react/jsx-runtime");
3541
3680
  var SvgAuth0 = (props) => {
3542
3681
  var _a, _b;
3543
- 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" }) });
3682
+ 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" }) });
3544
3683
  };
3545
3684
  var auth0_default = SvgAuth0;
3546
3685
 
3547
3686
  // src/theme/default/provider-logos/discord.svg
3548
3687
  var React6 = __toESM(require("react"));
3549
- var import_jsx_runtime43 = require("react/jsx-runtime");
3688
+ var import_jsx_runtime44 = require("react/jsx-runtime");
3550
3689
  var SvgDiscord = (props) => {
3551
3690
  var _a, _b;
3552
- 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: [
3553
- /* @__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" }),
3554
- /* @__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" })
3691
+ 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: [
3692
+ /* @__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" }),
3693
+ /* @__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" })
3555
3694
  ] });
3556
3695
  };
3557
3696
  var discord_default = SvgDiscord;
3558
3697
 
3559
3698
  // src/theme/default/provider-logos/facebook.svg
3560
3699
  var React7 = __toESM(require("react"));
3561
- var import_jsx_runtime44 = require("react/jsx-runtime");
3700
+ var import_jsx_runtime45 = require("react/jsx-runtime");
3562
3701
  var SvgFacebook = (props) => {
3563
3702
  var _a, _b;
3564
- 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: [
3565
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3566
- /* @__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" }),
3567
- /* @__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: [
3568
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { stopColor: "#18ACFE" }),
3569
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
3703
+ 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: [
3704
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
3705
+ /* @__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" }),
3706
+ /* @__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: [
3707
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { stopColor: "#18ACFE" }),
3708
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
3570
3709
  ] }) })
3571
3710
  ] });
3572
3711
  };
@@ -3574,111 +3713,111 @@ var facebook_default = SvgFacebook;
3574
3713
 
3575
3714
  // src/theme/default/provider-logos/github.svg
3576
3715
  var React8 = __toESM(require("react"));
3577
- var import_jsx_runtime45 = require("react/jsx-runtime");
3716
+ var import_jsx_runtime46 = require("react/jsx-runtime");
3578
3717
  var SvgGithub = (props) => {
3579
3718
  var _a, _b;
3580
- 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" }) });
3719
+ 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" }) });
3581
3720
  };
3582
3721
  var github_default = SvgGithub;
3583
3722
 
3584
3723
  // src/theme/default/provider-logos/gitlab.svg
3585
3724
  var React9 = __toESM(require("react"));
3586
- var import_jsx_runtime46 = require("react/jsx-runtime");
3725
+ var import_jsx_runtime47 = require("react/jsx-runtime");
3587
3726
  var SvgGitlab = (props) => {
3588
3727
  var _a, _b;
3589
- 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: [
3590
- /* @__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" }),
3591
- /* @__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" }),
3592
- /* @__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" }),
3593
- /* @__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" })
3728
+ 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: [
3729
+ /* @__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" }),
3730
+ /* @__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" }),
3731
+ /* @__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" }),
3732
+ /* @__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" })
3594
3733
  ] });
3595
3734
  };
3596
3735
  var gitlab_default = SvgGitlab;
3597
3736
 
3598
3737
  // src/theme/default/provider-logos/google.svg
3599
3738
  var React10 = __toESM(require("react"));
3600
- var import_jsx_runtime47 = require("react/jsx-runtime");
3739
+ var import_jsx_runtime48 = require("react/jsx-runtime");
3601
3740
  var SvgGoogle = (props) => {
3602
3741
  var _a, _b;
3603
- 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: [
3604
- /* @__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" }),
3605
- /* @__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" }),
3606
- /* @__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" }),
3607
- /* @__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" })
3742
+ 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: [
3743
+ /* @__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" }),
3744
+ /* @__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" }),
3745
+ /* @__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" }),
3746
+ /* @__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" })
3608
3747
  ] });
3609
3748
  };
3610
3749
  var google_default = SvgGoogle;
3611
3750
 
3612
3751
  // src/theme/default/provider-logos/linkedin.svg
3613
3752
  var React11 = __toESM(require("react"));
3614
- var import_jsx_runtime48 = require("react/jsx-runtime");
3753
+ var import_jsx_runtime49 = require("react/jsx-runtime");
3615
3754
  var SvgLinkedin = (props) => {
3616
3755
  var _a, _b;
3617
- 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: [
3618
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3619
- /* @__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" })
3756
+ 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: [
3757
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
3758
+ /* @__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" })
3620
3759
  ] });
3621
3760
  };
3622
3761
  var linkedin_default = SvgLinkedin;
3623
3762
 
3624
3763
  // src/theme/default/provider-logos/microsoft.svg
3625
3764
  var React12 = __toESM(require("react"));
3626
- var import_jsx_runtime49 = require("react/jsx-runtime");
3765
+ var import_jsx_runtime50 = require("react/jsx-runtime");
3627
3766
  var SvgMicrosoft = (props) => {
3628
3767
  var _a, _b;
3629
- 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: [
3630
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3631
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3632
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3633
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3768
+ 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: [
3769
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
3770
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
3771
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
3772
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
3634
3773
  ] });
3635
3774
  };
3636
3775
  var microsoft_default = SvgMicrosoft;
3637
3776
 
3638
3777
  // src/theme/default/provider-logos/slack.svg
3639
3778
  var React13 = __toESM(require("react"));
3640
- var import_jsx_runtime50 = require("react/jsx-runtime");
3779
+ var import_jsx_runtime51 = require("react/jsx-runtime");
3641
3780
  var SvgSlack = (props) => {
3642
3781
  var _a, _b;
3643
- 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: [
3644
- /* @__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" }),
3645
- /* @__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" }),
3646
- /* @__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" }),
3647
- /* @__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" })
3782
+ 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: [
3783
+ /* @__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" }),
3784
+ /* @__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" }),
3785
+ /* @__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" }),
3786
+ /* @__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" })
3648
3787
  ] });
3649
3788
  };
3650
3789
  var slack_default = SvgSlack;
3651
3790
 
3652
3791
  // src/theme/default/provider-logos/spotify.svg
3653
3792
  var React14 = __toESM(require("react"));
3654
- var import_jsx_runtime51 = require("react/jsx-runtime");
3793
+ var import_jsx_runtime52 = require("react/jsx-runtime");
3655
3794
  var SvgSpotify = (props) => {
3656
3795
  var _a, _b;
3657
- 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: [
3658
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3659
- /* @__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" })
3796
+ 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: [
3797
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
3798
+ /* @__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" })
3660
3799
  ] });
3661
3800
  };
3662
3801
  var spotify_default = SvgSpotify;
3663
3802
 
3664
3803
  // src/theme/default/provider-logos/yandex.svg
3665
3804
  var React15 = __toESM(require("react"));
3666
- var import_jsx_runtime52 = require("react/jsx-runtime");
3805
+ var import_jsx_runtime53 = require("react/jsx-runtime");
3667
3806
  var SvgYandex = (props) => {
3668
3807
  var _a, _b;
3669
- 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: [
3670
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3671
- /* @__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" })
3808
+ 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: [
3809
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
3810
+ /* @__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" })
3672
3811
  ] });
3673
3812
  };
3674
3813
  var yandex_default = SvgYandex;
3675
3814
 
3676
3815
  // src/theme/default/provider-logos/x.svg
3677
3816
  var React16 = __toESM(require("react"));
3678
- var import_jsx_runtime53 = require("react/jsx-runtime");
3817
+ var import_jsx_runtime54 = require("react/jsx-runtime");
3679
3818
  var SvgX = (props) => {
3680
3819
  var _a, _b;
3681
- 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" }) });
3820
+ 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" }) });
3682
3821
  };
3683
3822
  var x_default = SvgX;
3684
3823
 
@@ -3701,9 +3840,9 @@ var logos = {
3701
3840
  var provider_logos_default = logos;
3702
3841
 
3703
3842
  // src/theme/default/components/form/spinner.tsx
3704
- var import_jsx_runtime54 = require("react/jsx-runtime");
3843
+ var import_jsx_runtime55 = require("react/jsx-runtime");
3705
3844
  function Spinner({ className }) {
3706
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
3845
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3707
3846
  "svg",
3708
3847
  {
3709
3848
  "aria-hidden": "true",
@@ -3716,7 +3855,7 @@ function Spinner({ className }) {
3716
3855
  fill: "none",
3717
3856
  xmlns: "http://www.w3.org/2000/svg",
3718
3857
  children: [
3719
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
3858
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3720
3859
  "path",
3721
3860
  {
3722
3861
  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",
@@ -3725,7 +3864,7 @@ function Spinner({ className }) {
3725
3864
  strokeLinejoin: "round"
3726
3865
  }
3727
3866
  ) }),
3728
- /* @__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)(
3867
+ /* @__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)(
3729
3868
  "rect",
3730
3869
  {
3731
3870
  width: "24",
@@ -3740,26 +3879,8 @@ function Spinner({ className }) {
3740
3879
  }
3741
3880
 
3742
3881
  // src/theme/default/components/form/social.tsx
3743
- var import_client_fetch30 = require("@ory/client-fetch");
3744
-
3745
- // src/util/omitAttributes.ts
3746
- function omitInputAttributes({
3747
- ...attrs
3748
- }) {
3749
- return omit(attrs, [
3750
- "autocomplete",
3751
- "label",
3752
- "node_type",
3753
- "maxlength",
3754
- "onclick",
3755
- "onclickTrigger",
3756
- "onload",
3757
- "onloadTrigger"
3758
- ]);
3759
- }
3760
-
3761
- // src/theme/default/components/form/social.tsx
3762
- var import_jsx_runtime55 = require("react/jsx-runtime");
3882
+ var import_client_fetch32 = require("@ory/client-fetch");
3883
+ var import_jsx_runtime56 = require("react/jsx-runtime");
3763
3884
  function extractProvider(context) {
3764
3885
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
3765
3886
  return context.provider;
@@ -3785,7 +3906,7 @@ function DefaultButtonSocial({
3785
3906
  formState: { isSubmitting }
3786
3907
  } = (0, import_react_hook_form14.useFormContext)();
3787
3908
  const oidcNodeCount = (_a = ui.nodes.filter(
3788
- (node2) => node2.group === import_client_fetch30.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch30.UiNodeGroupEnum.Saml
3909
+ (node2) => node2.group === import_client_fetch32.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch32.UiNodeGroupEnum.Saml
3789
3910
  ).length) != null ? _a : 0;
3790
3911
  const Logo = logos2[attributes.value.split("-")[0]];
3791
3912
  const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
@@ -3794,13 +3915,13 @@ function DefaultButtonSocial({
3794
3915
  onClick == null ? void 0 : onClick();
3795
3916
  setClicked(true);
3796
3917
  };
3797
- (0, import_react7.useEffect)(() => {
3918
+ (0, import_react9.useEffect)(() => {
3798
3919
  if (!isSubmitting) {
3799
3920
  setClicked(false);
3800
3921
  }
3801
3922
  }, [isSubmitting, setClicked]);
3802
3923
  const label = node.meta.label ? (0, import_elements_react7.uiTextToFormattedMessage)(node.meta.label, intl) : "";
3803
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
3924
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
3804
3925
  "button",
3805
3926
  {
3806
3927
  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",
@@ -3814,21 +3935,21 @@ function DefaultButtonSocial({
3814
3935
  "aria-label": label,
3815
3936
  ...omitInputAttributes(rest),
3816
3937
  children: [
3817
- /* @__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" }) }),
3818
- showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
3819
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3820
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 block" })
3938
+ /* @__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" }) }),
3939
+ showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
3940
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
3941
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "size-5 block" })
3821
3942
  ] }) : null
3822
3943
  ]
3823
3944
  }
3824
3945
  );
3825
3946
  }
3826
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
3947
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
3827
3948
  function DefaultSocialButtonContainer({
3828
3949
  children,
3829
3950
  nodes
3830
3951
  }) {
3831
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
3952
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3832
3953
  "div",
3833
3954
  {
3834
3955
  className: cn("grid gap-3", {
@@ -3842,11 +3963,11 @@ function DefaultSocialButtonContainer({
3842
3963
  );
3843
3964
  }
3844
3965
  function GenericLogo({ label }) {
3845
- 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 });
3966
+ 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 });
3846
3967
  }
3847
3968
 
3848
3969
  // src/theme/default/components/form/index.tsx
3849
- var import_jsx_runtime56 = require("react/jsx-runtime");
3970
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3850
3971
  function DefaultFormContainer({
3851
3972
  children,
3852
3973
  onSubmit,
@@ -3854,7 +3975,7 @@ function DefaultFormContainer({
3854
3975
  method,
3855
3976
  "data-testid": dataTestId
3856
3977
  }) {
3857
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3978
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3858
3979
  "form",
3859
3980
  {
3860
3981
  "data-testid": dataTestId,
@@ -3872,11 +3993,11 @@ function DefaultMessageContainer({ children }) {
3872
3993
  if (!children || Array.isArray(children) && children.length === 0) {
3873
3994
  return null;
3874
3995
  }
3875
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3996
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3876
3997
  "section",
3877
3998
  {
3878
3999
  className: cn(
3879
- flowType === import_client_fetch31.FlowType.Settings ? "text-center" : "text-left"
4000
+ flowType === import_client_fetch33.FlowType.Settings ? "text-center" : "text-left"
3880
4001
  ),
3881
4002
  children
3882
4003
  }
@@ -3884,7 +4005,7 @@ function DefaultMessageContainer({ children }) {
3884
4005
  }
3885
4006
  function DefaultMessage({ message }) {
3886
4007
  const intl = (0, import_react_intl13.useIntl)();
3887
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
4008
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3888
4009
  "span",
3889
4010
  {
3890
4011
  className: cn(
@@ -3904,60 +4025,60 @@ var import_react_intl14 = require("react-intl");
3904
4025
 
3905
4026
  // src/theme/default/assets/icons/code.svg
3906
4027
  var React17 = __toESM(require("react"));
3907
- var import_jsx_runtime57 = require("react/jsx-runtime");
4028
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3908
4029
  var SvgCode = (props) => {
3909
4030
  var _a, _b;
3910
- 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" }) });
4031
+ 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" }) });
3911
4032
  };
3912
4033
  var code_default = SvgCode;
3913
4034
 
3914
4035
  // src/theme/default/assets/icons/passkey.svg
3915
4036
  var React18 = __toESM(require("react"));
3916
- var import_jsx_runtime58 = require("react/jsx-runtime");
4037
+ var import_jsx_runtime59 = require("react/jsx-runtime");
3917
4038
  var SvgPasskey = (props) => {
3918
4039
  var _a, _b;
3919
- 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" }) });
4040
+ 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" }) });
3920
4041
  };
3921
4042
  var passkey_default = SvgPasskey;
3922
4043
 
3923
4044
  // src/theme/default/assets/icons/password.svg
3924
4045
  var React19 = __toESM(require("react"));
3925
- var import_jsx_runtime59 = require("react/jsx-runtime");
4046
+ var import_jsx_runtime60 = require("react/jsx-runtime");
3926
4047
  var SvgPassword = (props) => {
3927
4048
  var _a, _b;
3928
- 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" }) });
4049
+ 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" }) });
3929
4050
  };
3930
4051
  var password_default = SvgPassword;
3931
4052
 
3932
4053
  // src/theme/default/assets/icons/webauthn.svg
3933
4054
  var React20 = __toESM(require("react"));
3934
- var import_jsx_runtime60 = require("react/jsx-runtime");
4055
+ var import_jsx_runtime61 = require("react/jsx-runtime");
3935
4056
  var SvgWebauthn = (props) => {
3936
4057
  var _a, _b;
3937
- 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" }) });
4058
+ 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" }) });
3938
4059
  };
3939
4060
  var webauthn_default = SvgWebauthn;
3940
4061
 
3941
4062
  // src/theme/default/assets/icons/totp.svg
3942
4063
  var React21 = __toESM(require("react"));
3943
- var import_jsx_runtime61 = require("react/jsx-runtime");
4064
+ var import_jsx_runtime62 = require("react/jsx-runtime");
3944
4065
  var SvgTotp = (props) => {
3945
4066
  var _a, _b;
3946
- 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" }) });
4067
+ 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" }) });
3947
4068
  };
3948
4069
  var totp_default = SvgTotp;
3949
4070
 
3950
4071
  // src/theme/default/assets/icons/code-asterix.svg
3951
4072
  var React22 = __toESM(require("react"));
3952
- var import_jsx_runtime62 = require("react/jsx-runtime");
4073
+ var import_jsx_runtime63 = require("react/jsx-runtime");
3953
4074
  var SvgCodeAsterix = (props) => {
3954
4075
  var _a, _b;
3955
- 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" }) });
4076
+ 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" }) });
3956
4077
  };
3957
4078
  var code_asterix_default = SvgCodeAsterix;
3958
4079
 
3959
4080
  // src/theme/default/components/card/list-item.tsx
3960
- var import_jsx_runtime63 = require("react/jsx-runtime");
4081
+ var import_jsx_runtime64 = require("react/jsx-runtime");
3961
4082
  function ListItem({
3962
4083
  icon: Icon,
3963
4084
  as,
@@ -3968,7 +4089,7 @@ function ListItem({
3968
4089
  ...props
3969
4090
  }) {
3970
4091
  const Comp = as || "div";
3971
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
4092
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
3972
4093
  Comp,
3973
4094
  {
3974
4095
  ...props,
@@ -3977,10 +4098,10 @@ function ListItem({
3977
4098
  className
3978
4099
  ),
3979
4100
  children: [
3980
- /* @__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" }) }),
3981
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
3982
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
3983
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4101
+ /* @__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" }) }),
4102
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
4103
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
4104
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
3984
4105
  ] }),
3985
4106
  children
3986
4107
  ]
@@ -3989,7 +4110,7 @@ function ListItem({
3989
4110
  }
3990
4111
 
3991
4112
  // src/theme/default/components/card/auth-method-list-item.tsx
3992
- var import_jsx_runtime64 = require("react/jsx-runtime");
4113
+ var import_jsx_runtime65 = require("react/jsx-runtime");
3993
4114
  var iconsMap = {
3994
4115
  code: code_default,
3995
4116
  passkey: passkey_default,
@@ -4008,7 +4129,7 @@ function DefaultAuthMethodListItem({
4008
4129
  var _a;
4009
4130
  const intl = (0, import_react_intl14.useIntl)();
4010
4131
  const Icon = iconsMap[group] || null;
4011
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
4132
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
4012
4133
  ListItem,
4013
4134
  {
4014
4135
  as: "button",
@@ -4028,13 +4149,13 @@ function DefaultAuthMethodListItem({
4028
4149
  }
4029
4150
 
4030
4151
  // src/theme/default/components/form/button.tsx
4031
- var import_client_fetch32 = require("@ory/client-fetch");
4152
+ var import_client_fetch34 = require("@ory/client-fetch");
4032
4153
  var import_elements_react9 = require("@ory/elements-react");
4033
4154
  var import_class_variance_authority = require("class-variance-authority");
4034
4155
  var import_react_hook_form15 = require("react-hook-form");
4035
4156
  var import_react_intl15 = require("react-intl");
4036
- var import_react8 = require("react");
4037
- var import_jsx_runtime65 = require("react/jsx-runtime");
4157
+ var import_react10 = require("react");
4158
+ var import_jsx_runtime66 = require("react/jsx-runtime");
4038
4159
  var buttonStyles = (0, import_class_variance_authority.cva)(
4039
4160
  [
4040
4161
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -4074,20 +4195,20 @@ var DefaultButton = ({
4074
4195
  }) => {
4075
4196
  var _a;
4076
4197
  const { type, name, value, ...rest } = attributes;
4077
- const [clicked, setClicked] = (0, import_react8.useState)(false);
4198
+ const [clicked, setClicked] = (0, import_react10.useState)(false);
4078
4199
  const intl = (0, import_react_intl15.useIntl)();
4079
- const label = (0, import_client_fetch32.getNodeLabel)(node);
4200
+ const label = (0, import_client_fetch34.getNodeLabel)(node);
4080
4201
  const {
4081
4202
  formState: { isSubmitting },
4082
4203
  setValue
4083
4204
  } = (0, import_react_hook_form15.useFormContext)();
4084
- (0, import_react8.useEffect)(() => {
4205
+ (0, import_react10.useEffect)(() => {
4085
4206
  if (!isSubmitting) {
4086
4207
  setClicked(false);
4087
4208
  }
4088
4209
  }, [isSubmitting]);
4089
4210
  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";
4090
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
4211
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
4091
4212
  "button",
4092
4213
  {
4093
4214
  ...omitInputAttributes(rest),
@@ -4107,8 +4228,8 @@ var DefaultButton = ({
4107
4228
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
4108
4229
  "data-loading": clicked,
4109
4230
  children: [
4110
- clicked ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Spinner, {}) : null,
4111
- label ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) }) : ""
4231
+ clicked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, {}) : null,
4232
+ label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) }) : ""
4112
4233
  ]
4113
4234
  }
4114
4235
  );
@@ -4116,14 +4237,14 @@ var DefaultButton = ({
4116
4237
  DefaultButton.displayName = "DefaultButton";
4117
4238
 
4118
4239
  // src/theme/default/components/form/checkbox.tsx
4119
- var import_client_fetch33 = require("@ory/client-fetch");
4240
+ var import_client_fetch35 = require("@ory/client-fetch");
4120
4241
  var import_elements_react10 = require("@ory/elements-react");
4121
4242
  var import_react_hook_form16 = require("react-hook-form");
4122
4243
  var import_react_intl17 = require("react-intl");
4123
4244
 
4124
4245
  // src/theme/default/components/ui/checkbox-label.tsx
4125
4246
  var import_react_intl16 = require("react-intl");
4126
- var import_jsx_runtime66 = require("react/jsx-runtime");
4247
+ var import_jsx_runtime67 = require("react/jsx-runtime");
4127
4248
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
4128
4249
  function computeLabelElements(labelText) {
4129
4250
  const elements = [];
@@ -4139,7 +4260,7 @@ function computeLabelElements(labelText) {
4139
4260
  elements.push(labelText.slice(lastIndex, matchStart));
4140
4261
  }
4141
4262
  elements.push(
4142
- /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
4263
+ /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4143
4264
  "a",
4144
4265
  {
4145
4266
  href: url,
@@ -4164,13 +4285,13 @@ function CheckboxLabel({ label }) {
4164
4285
  return null;
4165
4286
  }
4166
4287
  const labelText = uiTextToFormattedMessage(label, intl);
4167
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: computeLabelElements(labelText) });
4288
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: computeLabelElements(labelText) });
4168
4289
  }
4169
4290
 
4170
4291
  // src/theme/default/components/form/checkbox.tsx
4171
- var import_jsx_runtime67 = require("react/jsx-runtime");
4292
+ var import_jsx_runtime68 = require("react/jsx-runtime");
4172
4293
  function CheckboxSVG() {
4173
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4294
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4174
4295
  "svg",
4175
4296
  {
4176
4297
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -4179,7 +4300,7 @@ function CheckboxSVG() {
4179
4300
  height: "16",
4180
4301
  viewBox: "0 0 16 16",
4181
4302
  fill: "none",
4182
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4303
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4183
4304
  "path",
4184
4305
  {
4185
4306
  fillRule: "evenodd",
@@ -4196,12 +4317,12 @@ var DefaultCheckbox = ({
4196
4317
  }) => {
4197
4318
  const { value, name, ...attributes } = initialAttributes;
4198
4319
  const intl = (0, import_react_intl17.useIntl)();
4199
- const label = (0, import_client_fetch33.getNodeLabel)(node);
4320
+ const label = (0, import_client_fetch35.getNodeLabel)(node);
4200
4321
  const { register } = (0, import_react_hook_form16.useFormContext)();
4201
4322
  const hasError = node.messages.some((m) => m.type === "error");
4202
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4203
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "flex h-5 items-center", children: [
4204
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4323
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
4324
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex h-5 items-center", children: [
4325
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4205
4326
  "input",
4206
4327
  {
4207
4328
  ...omitInputAttributes(attributes),
@@ -4211,14 +4332,15 @@ var DefaultCheckbox = ({
4211
4332
  "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",
4212
4333
  hasError && "border-interface-border-validation-danger"
4213
4334
  ),
4335
+ "data-testid": `ory/form/node/input/${name}`,
4214
4336
  ...register(name)
4215
4337
  }
4216
4338
  ),
4217
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckboxSVG, {})
4339
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxSVG, {})
4218
4340
  ] }),
4219
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "flex flex-col", children: [
4220
- /* @__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 }) }),
4221
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
4341
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex flex-col", children: [
4342
+ /* @__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 }) }),
4343
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4222
4344
  "span",
4223
4345
  {
4224
4346
  className: cn(
@@ -4236,13 +4358,13 @@ var DefaultCheckbox = ({
4236
4358
 
4237
4359
  // src/theme/default/components/form/group-container.tsx
4238
4360
  var import_elements_react11 = require("@ory/elements-react");
4239
- var import_client_fetch34 = require("@ory/client-fetch");
4361
+ var import_client_fetch36 = require("@ory/client-fetch");
4240
4362
 
4241
4363
  // src/util/childCounter.ts
4242
- var import_react9 = require("react");
4364
+ var import_react11 = require("react");
4243
4365
  function countRenderableChildren(children) {
4244
- return import_react9.Children.toArray(children).filter((c) => {
4245
- if ((0, import_react9.isValidElement)(c)) {
4366
+ return import_react11.Children.toArray(children).filter((c) => {
4367
+ if ((0, import_react11.isValidElement)(c)) {
4246
4368
  return true;
4247
4369
  }
4248
4370
  return false;
@@ -4250,19 +4372,19 @@ function countRenderableChildren(children) {
4250
4372
  }
4251
4373
 
4252
4374
  // src/theme/default/components/form/group-container.tsx
4253
- var import_jsx_runtime68 = require("react/jsx-runtime");
4375
+ var import_jsx_runtime69 = require("react/jsx-runtime");
4254
4376
  function DefaultGroupContainer({ children }) {
4255
4377
  const { flowType } = (0, import_elements_react11.useOryFlow)();
4256
4378
  const count = countRenderableChildren(children);
4257
4379
  if (count === 0) {
4258
4380
  return null;
4259
4381
  }
4260
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
4382
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4261
4383
  "div",
4262
4384
  {
4263
4385
  className: cn(
4264
4386
  "grid",
4265
- flowType === import_client_fetch34.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
4387
+ flowType === import_client_fetch36.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
4266
4388
  ),
4267
4389
  children
4268
4390
  }
@@ -4270,16 +4392,16 @@ function DefaultGroupContainer({ children }) {
4270
4392
  }
4271
4393
 
4272
4394
  // src/theme/default/components/form/horizontal-divider.tsx
4273
- var import_jsx_runtime69 = require("react/jsx-runtime");
4395
+ var import_jsx_runtime70 = require("react/jsx-runtime");
4274
4396
  function DefaultHorizontalDivider() {
4275
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("hr", { className: "border-interface-border-default-primary" });
4397
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("hr", { className: "border-interface-border-default-primary" });
4276
4398
  }
4277
4399
 
4278
4400
  // src/theme/default/components/form/image.tsx
4279
- var import_jsx_runtime70 = require("react/jsx-runtime");
4401
+ var import_jsx_runtime71 = require("react/jsx-runtime");
4280
4402
  function DefaultImage({ attributes, node }) {
4281
4403
  var _a;
4282
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4404
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4283
4405
  "img",
4284
4406
  {
4285
4407
  ...omitInputAttributes(attributes),
@@ -4289,35 +4411,35 @@ function DefaultImage({ attributes, node }) {
4289
4411
  }
4290
4412
 
4291
4413
  // src/theme/default/components/form/input.tsx
4292
- var import_client_fetch35 = require("@ory/client-fetch");
4414
+ var import_client_fetch37 = require("@ory/client-fetch");
4293
4415
  var import_elements_react12 = require("@ory/elements-react");
4294
- var import_react10 = require("react");
4416
+ var import_react12 = require("react");
4295
4417
  var import_react_hook_form17 = require("react-hook-form");
4296
4418
  var import_react_intl18 = require("react-intl");
4297
4419
 
4298
4420
  // src/theme/default/assets/icons/eye-off.svg
4299
4421
  var React23 = __toESM(require("react"));
4300
- var import_jsx_runtime71 = require("react/jsx-runtime");
4422
+ var import_jsx_runtime72 = require("react/jsx-runtime");
4301
4423
  var SvgEyeOff = (props) => {
4302
4424
  var _a, _b;
4303
- 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" }) });
4425
+ 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" }) });
4304
4426
  };
4305
4427
  var eye_off_default = SvgEyeOff;
4306
4428
 
4307
4429
  // src/theme/default/assets/icons/eye.svg
4308
4430
  var React24 = __toESM(require("react"));
4309
- var import_jsx_runtime72 = require("react/jsx-runtime");
4431
+ var import_jsx_runtime73 = require("react/jsx-runtime");
4310
4432
  var SvgEye = (props) => {
4311
4433
  var _a, _b;
4312
- 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: [
4313
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4314
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4434
+ 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: [
4435
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
4436
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
4315
4437
  ] }) });
4316
4438
  };
4317
4439
  var eye_default = SvgEye;
4318
4440
 
4319
4441
  // src/theme/default/components/form/input.tsx
4320
- var import_jsx_runtime73 = require("react/jsx-runtime");
4442
+ var import_jsx_runtime74 = require("react/jsx-runtime");
4321
4443
  var defaultInputClassName = cn(
4322
4444
  "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",
4323
4445
  "bg-input-background-default border-input-border-default text-input-foreground-primary",
@@ -4331,12 +4453,12 @@ var DefaultInput = ({
4331
4453
  attributes,
4332
4454
  onClick
4333
4455
  }) => {
4334
- const label = (0, import_client_fetch35.getNodeLabel)(node);
4456
+ const label = (0, import_client_fetch37.getNodeLabel)(node);
4335
4457
  const { register } = (0, import_react_hook_form17.useFormContext)();
4336
4458
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
4337
4459
  const intl = (0, import_react_intl18.useIntl)();
4338
4460
  const { flowType } = (0, import_elements_react12.useOryFlow)();
4339
- const inputRef = (0, import_react10.useRef)(null);
4461
+ const inputRef = (0, import_react12.useRef)(null);
4340
4462
  const formattedLabel = label ? intl.formatMessage(
4341
4463
  {
4342
4464
  id: "input.placeholder",
@@ -4347,10 +4469,10 @@ var DefaultInput = ({
4347
4469
  }
4348
4470
  ) : "";
4349
4471
  if (rest.type === "hidden") {
4350
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4472
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4351
4473
  "input",
4352
4474
  {
4353
- ...rest,
4475
+ ...omitInputAttributes(rest),
4354
4476
  onClick,
4355
4477
  maxLength: maxlength,
4356
4478
  autoComplete: autocomplete,
@@ -4361,16 +4483,16 @@ var DefaultInput = ({
4361
4483
  );
4362
4484
  }
4363
4485
  const { ref, ...restRegister } = register(name, { value });
4364
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
4486
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
4365
4487
  "div",
4366
4488
  {
4367
4489
  className: cn(
4368
4490
  "relative flex justify-stretch",
4369
4491
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4370
- flowType === import_client_fetch35.FlowType.Settings && "max-w-[488px]"
4492
+ flowType === import_client_fetch37.FlowType.Settings && "max-w-[488px]"
4371
4493
  ),
4372
4494
  children: [
4373
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4495
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4374
4496
  "input",
4375
4497
  {
4376
4498
  ...omitInputAttributes(rest),
@@ -4387,7 +4509,7 @@ var DefaultInput = ({
4387
4509
  ...restRegister
4388
4510
  }
4389
4511
  ),
4390
- rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(PasswordToggle, { inputRef })
4512
+ rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PasswordToggle, { inputRef })
4391
4513
  ]
4392
4514
  }
4393
4515
  );
@@ -4395,31 +4517,31 @@ var DefaultInput = ({
4395
4517
  function PasswordToggle({
4396
4518
  inputRef
4397
4519
  }) {
4398
- const [shown, setShown] = (0, import_react10.useState)(false);
4520
+ const [shown, setShown] = (0, import_react12.useState)(false);
4399
4521
  const handleClick = () => {
4400
4522
  setShown(!shown);
4401
4523
  if (inputRef.current) {
4402
4524
  inputRef.current.type = shown ? "password" : "text";
4403
4525
  }
4404
4526
  };
4405
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
4527
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4406
4528
  "button",
4407
4529
  {
4408
4530
  onClick: handleClick,
4409
4531
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
4410
4532
  type: "button",
4411
4533
  "aria-label": "Toggle password visibility",
4412
- children: shown ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(eye_default, {})
4534
+ children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
4413
4535
  }
4414
4536
  );
4415
4537
  }
4416
4538
 
4417
4539
  // src/theme/default/components/form/label.tsx
4418
- var import_client_fetch36 = require("@ory/client-fetch");
4540
+ var import_client_fetch38 = require("@ory/client-fetch");
4419
4541
  var import_elements_react13 = require("@ory/elements-react");
4420
4542
  var import_react_hook_form18 = require("react-hook-form");
4421
4543
  var import_react_intl19 = require("react-intl");
4422
- var import_jsx_runtime74 = require("react/jsx-runtime");
4544
+ var import_jsx_runtime75 = require("react/jsx-runtime");
4423
4545
  function findResendNode(nodes) {
4424
4546
  return nodes.find(
4425
4547
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -4432,9 +4554,10 @@ function DefaultLabel({
4432
4554
  ...rest
4433
4555
  }) {
4434
4556
  const intl = (0, import_react_intl19.useIntl)();
4435
- const label = (0, import_client_fetch36.getNodeLabel)(node);
4557
+ const label = (0, import_client_fetch38.getNodeLabel)(node);
4436
4558
  const { Message } = (0, import_elements_react13.useComponents)();
4437
- const { config, flowType, flow } = (0, import_elements_react13.useOryFlow)();
4559
+ const { flowType, flow } = (0, import_elements_react13.useOryFlow)();
4560
+ const config = (0, import_elements_react13.useOryConfiguration)();
4438
4561
  const { setValue, formState } = (0, import_react_hook_form18.useFormContext)();
4439
4562
  const isPassword = attributes.type === "password";
4440
4563
  const resendNode = findResendNode(flow.ui.nodes);
@@ -4444,9 +4567,9 @@ function DefaultLabel({
4444
4567
  }
4445
4568
  };
4446
4569
  const fieldError = formState.errors[attributes.name];
4447
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4448
- label && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "inline-flex justify-between", children: [
4449
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4570
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
4571
+ label && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "inline-flex justify-between", children: [
4572
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4450
4573
  "label",
4451
4574
  {
4452
4575
  ...(0, import_elements_react13.messageTestId)(label),
@@ -4457,8 +4580,8 @@ function DefaultLabel({
4457
4580
  children: (0, import_elements_react13.uiTextToFormattedMessage)(label, intl)
4458
4581
  }
4459
4582
  ),
4460
- isPassword && config.project.recovery_enabled && flowType === import_client_fetch36.FlowType.Login && // TODO: make it possible to override with a custom component
4461
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4583
+ isPassword && config.project.recovery_enabled && flowType === import_client_fetch38.FlowType.Login && // TODO: make it possible to override with a custom component
4584
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4462
4585
  "a",
4463
4586
  {
4464
4587
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -4469,7 +4592,7 @@ function DefaultLabel({
4469
4592
  })
4470
4593
  }
4471
4594
  ),
4472
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
4595
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4473
4596
  "button",
4474
4597
  {
4475
4598
  type: "submit",
@@ -4482,21 +4605,21 @@ function DefaultLabel({
4482
4605
  )
4483
4606
  ] }),
4484
4607
  children,
4485
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Message.Content, { message }, message.id)),
4486
- fieldError && (0, import_client_fetch36.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Message.Content, { message: fieldError })
4608
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message }, message.id)),
4609
+ fieldError && (0, import_client_fetch38.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message: fieldError })
4487
4610
  ] });
4488
4611
  }
4489
4612
 
4490
4613
  // src/theme/default/components/form/link-button.tsx
4491
- var import_client_fetch37 = require("@ory/client-fetch");
4614
+ var import_client_fetch39 = require("@ory/client-fetch");
4492
4615
  var import_elements_react14 = require("@ory/elements-react");
4493
- var import_react11 = require("react");
4616
+ var import_react13 = require("react");
4494
4617
  var import_react_intl20 = require("react-intl");
4495
- var import_jsx_runtime75 = require("react/jsx-runtime");
4496
- var DefaultLinkButton = (0, import_react11.forwardRef)(({ attributes, node }, ref) => {
4618
+ var import_jsx_runtime76 = require("react/jsx-runtime");
4619
+ var DefaultLinkButton = (0, import_react13.forwardRef)(({ attributes, node }, ref) => {
4497
4620
  const intl = (0, import_react_intl20.useIntl)();
4498
- const label = (0, import_client_fetch37.getNodeLabel)(node);
4499
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
4621
+ const label = (0, import_client_fetch39.getNodeLabel)(node);
4622
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4500
4623
  "a",
4501
4624
  {
4502
4625
  ...omitInputAttributes(attributes),
@@ -4518,8 +4641,8 @@ var import_react_hook_form19 = require("react-hook-form");
4518
4641
  // src/theme/default/components/form/shadcn/otp-input.tsx
4519
4642
  var import_input_otp = require("input-otp");
4520
4643
  var React25 = __toESM(require("react"));
4521
- var import_jsx_runtime76 = require("react/jsx-runtime");
4522
- var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
4644
+ var import_jsx_runtime77 = require("react/jsx-runtime");
4645
+ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4523
4646
  import_input_otp.OTPInput,
4524
4647
  {
4525
4648
  ref,
@@ -4532,12 +4655,12 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
4532
4655
  }
4533
4656
  ));
4534
4657
  InputOTP.displayName = "InputOTP";
4535
- var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4658
+ var InputOTPGroup = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
4536
4659
  InputOTPGroup.displayName = "InputOTPGroup";
4537
4660
  var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4538
4661
  const inputOTPContext = React25.useContext(import_input_otp.OTPInputContext);
4539
4662
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
4540
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
4663
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
4541
4664
  "div",
4542
4665
  {
4543
4666
  ref,
@@ -4549,8 +4672,8 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
4549
4672
  ),
4550
4673
  ...props,
4551
4674
  children: [
4552
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "inline-block size-4", children: char }),
4553
- 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" }) })
4675
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "inline-block size-4", children: char }),
4676
+ 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" }) })
4554
4677
  ]
4555
4678
  }
4556
4679
  );
@@ -4559,8 +4682,8 @@ InputOTPSlot.displayName = "InputOTPSlot";
4559
4682
 
4560
4683
  // src/theme/default/components/form/pin-code-input.tsx
4561
4684
  var import_elements_react15 = require("@ory/elements-react");
4562
- var import_client_fetch38 = require("@ory/client-fetch");
4563
- var import_jsx_runtime77 = require("react/jsx-runtime");
4685
+ var import_client_fetch40 = require("@ory/client-fetch");
4686
+ var import_jsx_runtime78 = require("react/jsx-runtime");
4564
4687
  var DefaultPinCodeInput = ({ attributes }) => {
4565
4688
  const { setValue, watch } = (0, import_react_hook_form19.useFormContext)();
4566
4689
  const { maxlength, name } = attributes;
@@ -4570,22 +4693,22 @@ var DefaultPinCodeInput = ({ attributes }) => {
4570
4693
  setValue(name, v);
4571
4694
  };
4572
4695
  const value = watch(name);
4573
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4696
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4574
4697
  InputOTP,
4575
4698
  {
4576
4699
  maxLength: maxlength != null ? maxlength : 6,
4577
4700
  onChange: handleInputChange,
4578
4701
  name,
4579
4702
  value,
4580
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
4703
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4581
4704
  InputOTPGroup,
4582
4705
  {
4583
4706
  className: cn(
4584
4707
  "w-full flex gap-2 justify-stretch",
4585
4708
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
4586
- flowType === import_client_fetch38.FlowType.Settings && "max-w-[488px]"
4709
+ flowType === import_client_fetch40.FlowType.Settings && "max-w-[488px]"
4587
4710
  ),
4588
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(InputOTPSlot, { index }, index))
4711
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(InputOTPSlot, { index }, index))
4589
4712
  }
4590
4713
  )
4591
4714
  }
@@ -4593,13 +4716,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
4593
4716
  };
4594
4717
 
4595
4718
  // src/theme/default/components/form/section.tsx
4596
- var import_jsx_runtime78 = require("react/jsx-runtime");
4719
+ var import_jsx_runtime79 = require("react/jsx-runtime");
4597
4720
  var DefaultFormSection = ({
4598
4721
  children,
4599
4722
  nodes: _nodes,
4600
4723
  ...rest
4601
4724
  }) => {
4602
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
4725
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4603
4726
  "form",
4604
4727
  {
4605
4728
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -4613,10 +4736,10 @@ var DefaultFormSectionContent = ({
4613
4736
  description,
4614
4737
  children
4615
4738
  }) => {
4616
- 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: [
4617
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-2", children: [
4618
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4619
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4739
+ 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: [
4740
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
4741
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
4742
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
4620
4743
  ] }),
4621
4744
  children
4622
4745
  ] });
@@ -4625,14 +4748,14 @@ var DefaultFormSectionFooter = ({
4625
4748
  children,
4626
4749
  text
4627
4750
  }) => {
4628
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
4751
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4629
4752
  "div",
4630
4753
  {
4631
4754
  className: cn(
4632
4755
  "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"
4633
4756
  ),
4634
4757
  children: [
4635
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: text }),
4758
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: text }),
4636
4759
  children
4637
4760
  ]
4638
4761
  }
@@ -4642,31 +4765,31 @@ var DefaultFormSectionFooter = ({
4642
4765
  // src/theme/default/components/form/text.tsx
4643
4766
  var import_elements_react16 = require("@ory/elements-react");
4644
4767
  var import_react_intl21 = require("react-intl");
4645
- var import_jsx_runtime79 = require("react/jsx-runtime");
4768
+ var import_jsx_runtime80 = require("react/jsx-runtime");
4646
4769
  function DefaultText({ node, attributes }) {
4647
4770
  var _a;
4648
4771
  const intl = (0, import_react_intl21.useIntl)();
4649
4772
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
4650
4773
  if (lookup) {
4651
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
4652
- /* @__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) : "" }),
4653
- lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
4774
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
4775
+ /* @__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) : "" }),
4776
+ lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
4654
4777
  "pre",
4655
4778
  {
4656
4779
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
4657
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("code", { children: text ? (0, import_elements_react16.uiTextToFormattedMessage)(text, intl) : "" })
4780
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0, import_elements_react16.uiTextToFormattedMessage)(text, intl) : "" })
4658
4781
  },
4659
4782
  index
4660
4783
  ))
4661
4784
  ] });
4662
4785
  }
4663
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
4786
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
4664
4787
  "p",
4665
4788
  {
4666
4789
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
4667
4790
  id: attributes.id,
4668
4791
  children: [
4669
- node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("label", { children: (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4792
+ node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0, import_elements_react16.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
4670
4793
  attributes.text ? (0, import_elements_react16.uiTextToFormattedMessage)(attributes.text, intl) : ""
4671
4794
  ]
4672
4795
  }
@@ -4682,21 +4805,21 @@ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
4682
4805
 
4683
4806
  // src/theme/default/assets/icons/logout.svg
4684
4807
  var React26 = __toESM(require("react"));
4685
- var import_jsx_runtime80 = require("react/jsx-runtime");
4808
+ var import_jsx_runtime81 = require("react/jsx-runtime");
4686
4809
  var SvgLogout = (props) => {
4687
4810
  var _a, _b;
4688
- 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" }) });
4811
+ 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" }) });
4689
4812
  };
4690
4813
  var logout_default = SvgLogout;
4691
4814
 
4692
4815
  // src/theme/default/assets/icons/settings.svg
4693
4816
  var React27 = __toESM(require("react"));
4694
- var import_jsx_runtime81 = require("react/jsx-runtime");
4817
+ var import_jsx_runtime82 = require("react/jsx-runtime");
4695
4818
  var SvgSettings = (props) => {
4696
4819
  var _a, _b;
4697
- 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: [
4698
- /* @__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" }),
4699
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4820
+ 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: [
4821
+ /* @__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" }),
4822
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
4700
4823
  ] }) });
4701
4824
  };
4702
4825
  var settings_default = SvgSettings;
@@ -4741,12 +4864,12 @@ var getUserInitials = (session) => {
4741
4864
  };
4742
4865
 
4743
4866
  // src/theme/default/components/ui/dropdown-menu.tsx
4744
- var import_react12 = require("react");
4867
+ var import_react14 = require("react");
4745
4868
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
4746
- var import_jsx_runtime82 = require("react/jsx-runtime");
4869
+ var import_jsx_runtime83 = require("react/jsx-runtime");
4747
4870
  var DropdownMenu = DropdownMenuPrimitive.Root;
4748
4871
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
4749
- 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)(
4872
+ 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)(
4750
4873
  DropdownMenuPrimitive.Content,
4751
4874
  {
4752
4875
  ref,
@@ -4761,7 +4884,7 @@ var DropdownMenuContent = (0, import_react12.forwardRef)(({ className, sideOffse
4761
4884
  }
4762
4885
  ) }));
4763
4886
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
4764
- var DropdownMenuItem = (0, import_react12.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4887
+ var DropdownMenuItem = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4765
4888
  DropdownMenuPrimitive.Item,
4766
4889
  {
4767
4890
  ref,
@@ -4779,7 +4902,7 @@ var DropdownMenuItem = (0, import_react12.forwardRef)(({ className, inset, ...pr
4779
4902
  }
4780
4903
  ));
4781
4904
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
4782
- var DropdownMenuLabel = (0, import_react12.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
4905
+ var DropdownMenuLabel = (0, import_react14.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
4783
4906
  DropdownMenuPrimitive.Label,
4784
4907
  {
4785
4908
  ref,
@@ -4794,35 +4917,35 @@ var DropdownMenuLabel = (0, import_react12.forwardRef)(({ className, inset, ...p
4794
4917
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
4795
4918
 
4796
4919
  // src/theme/default/components/ui/user-avater.tsx
4797
- var import_react13 = require("react");
4920
+ var import_react15 = require("react");
4798
4921
 
4799
4922
  // src/theme/default/assets/icons/user.svg
4800
4923
  var React28 = __toESM(require("react"));
4801
- var import_jsx_runtime83 = require("react/jsx-runtime");
4924
+ var import_jsx_runtime84 = require("react/jsx-runtime");
4802
4925
  var SvgUser = (props) => {
4803
4926
  var _a, _b;
4804
- 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" }) });
4927
+ 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" }) });
4805
4928
  };
4806
4929
  var user_default = SvgUser;
4807
4930
 
4808
4931
  // src/theme/default/components/ui/user-avater.tsx
4809
- var import_jsx_runtime84 = require("react/jsx-runtime");
4810
- var UserAvatar = (0, import_react13.forwardRef)(
4932
+ var import_jsx_runtime85 = require("react/jsx-runtime");
4933
+ var UserAvatar = (0, import_react15.forwardRef)(
4811
4934
  ({ initials, ...rest }, ref) => {
4812
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4935
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4813
4936
  "button",
4814
4937
  {
4815
4938
  ref,
4816
4939
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
4817
4940
  ...rest,
4818
- 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)(
4941
+ 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)(
4819
4942
  "img",
4820
4943
  {
4821
4944
  src: initials.avatar,
4822
4945
  alt: initials.primary,
4823
4946
  className: "w-full object-contain"
4824
4947
  }
4825
- ) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
4948
+ ) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
4826
4949
  user_default,
4827
4950
  {
4828
4951
  size: 24,
@@ -4836,27 +4959,27 @@ var UserAvatar = (0, import_react13.forwardRef)(
4836
4959
  UserAvatar.displayName = "UserAvatar";
4837
4960
 
4838
4961
  // src/theme/default/components/ui/user-menu.tsx
4839
- var import_jsx_runtime85 = require("react/jsx-runtime");
4962
+ var import_jsx_runtime86 = require("react/jsx-runtime");
4840
4963
  var UserMenu = ({ session }) => {
4841
- const { config } = (0, import_elements_react17.useOryFlow)();
4964
+ const config = (0, import_elements_react17.useOryConfiguration)();
4842
4965
  const initials = getUserInitials(session);
4843
4966
  const { logoutFlow } = useClientLogout(config);
4844
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(DropdownMenu, { children: [
4845
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
4846
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(DropdownMenuContent, { children: [
4847
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
4848
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(UserAvatar, { disabled: true, initials }),
4849
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4850
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4851
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4967
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenu, { children: [
4968
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
4969
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenuContent, { children: [
4970
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
4971
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { disabled: true, initials }),
4972
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
4973
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
4974
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
4852
4975
  ] })
4853
4976
  ] }),
4854
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("a", { href: "/settings", children: [
4855
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(settings_default, { size: 16 }),
4977
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: "/settings", children: [
4978
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(settings_default, { size: 16 }),
4856
4979
  " User settings"
4857
4980
  ] }) }),
4858
- /* @__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: [
4859
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(logout_default, { size: 16 }),
4981
+ /* @__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: [
4982
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(logout_default, { size: 16 }),
4860
4983
  " Logout"
4861
4984
  ] }) })
4862
4985
  ] })
@@ -4864,29 +4987,30 @@ var UserMenu = ({ session }) => {
4864
4987
  };
4865
4988
 
4866
4989
  // src/theme/default/components/generic/page-header.tsx
4867
- var import_client7 = require("@ory/elements-react/client");
4990
+ var import_client4 = require("@ory/elements-react/client");
4868
4991
  var import_react_intl22 = require("react-intl");
4869
- var import_jsx_runtime86 = require("react/jsx-runtime");
4992
+ var import_jsx_runtime87 = require("react/jsx-runtime");
4870
4993
  var DefaultPageHeader = (_props) => {
4871
4994
  var _a;
4872
4995
  const { Card } = (0, import_elements_react18.useComponents)();
4873
- const { session } = (0, import_client7.useSession)();
4996
+ const { session } = (0, import_client4.useSession)();
4874
4997
  const intl = (0, import_react_intl22.useIntl)();
4875
- const { config, flow } = (0, import_elements_react18.useOryFlow)();
4998
+ const { flow } = (0, import_elements_react18.useOryFlow)();
4999
+ const config = (0, import_elements_react18.useOryConfiguration)();
4876
5000
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
4877
- 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: [
4878
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
4879
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Card.Logo, {}),
4880
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserMenu, { session })
5001
+ 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: [
5002
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
5003
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}),
5004
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
4881
5005
  ] }),
4882
- returnUrl && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
5006
+ returnUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
4883
5007
  "a",
4884
5008
  {
4885
5009
  "data-testid": "ory/screen/settings/back-button",
4886
5010
  href: returnUrl,
4887
5011
  className: "inline-flex gap-2 items-center",
4888
5012
  children: [
4889
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(arrow_left_default, {}),
5013
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
4890
5014
  " ",
4891
5015
  intl.formatMessage({
4892
5016
  id: "settings.navigation-back-button",
@@ -4899,31 +5023,31 @@ var DefaultPageHeader = (_props) => {
4899
5023
  };
4900
5024
 
4901
5025
  // src/theme/default/components/settings/settings-oidc.tsx
4902
- var import_react14 = require("react");
5026
+ var import_react16 = require("react");
4903
5027
  var import_react_hook_form20 = require("react-hook-form");
4904
5028
  var import_usehooks_ts2 = require("usehooks-ts");
4905
5029
 
4906
5030
  // src/theme/default/assets/icons/trash.svg
4907
5031
  var React29 = __toESM(require("react"));
4908
- var import_jsx_runtime87 = require("react/jsx-runtime");
5032
+ var import_jsx_runtime88 = require("react/jsx-runtime");
4909
5033
  var SvgTrash = (props) => {
4910
5034
  var _a, _b;
4911
- 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" }) });
5035
+ 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" }) });
4912
5036
  };
4913
5037
  var trash_default = SvgTrash;
4914
5038
 
4915
5039
  // src/theme/default/components/settings/settings-oidc.tsx
4916
- var import_jsx_runtime88 = require("react/jsx-runtime");
5040
+ var import_jsx_runtime89 = require("react/jsx-runtime");
4917
5041
  function DefaultSettingsOidc({
4918
5042
  linkButtons,
4919
5043
  unlinkButtons
4920
5044
  }) {
4921
5045
  const hasLinkButtons = linkButtons.length > 0;
4922
5046
  const hasUnlinkButtons = unlinkButtons.length > 0;
4923
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-8", children: [
4924
- 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) => {
5047
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5048
+ 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) => {
4925
5049
  const attrs = button.attributes;
4926
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5050
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4927
5051
  DefaultButtonSocial,
4928
5052
  {
4929
5053
  showLabel: true,
@@ -4934,12 +5058,12 @@ function DefaultSettingsOidc({
4934
5058
  attrs.value
4935
5059
  );
4936
5060
  }) }),
4937
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DefaultHorizontalDivider, {}) : null,
5061
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}) : null,
4938
5062
  unlinkButtons.map((button) => {
4939
5063
  if (button.attributes.node_type !== "input") {
4940
5064
  return null;
4941
5065
  }
4942
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(UnlinkRow, { button }, button.attributes.value);
5066
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UnlinkRow, { button }, button.attributes.value);
4943
5067
  })
4944
5068
  ] });
4945
5069
  }
@@ -4956,18 +5080,18 @@ function UnlinkRow({ button }) {
4956
5080
  button.onClick();
4957
5081
  setClicked(true);
4958
5082
  };
4959
- (0, import_react14.useEffect)(() => {
5083
+ (0, import_react16.useEffect)(() => {
4960
5084
  if (!isSubmitting) {
4961
5085
  setClicked(false);
4962
5086
  }
4963
5087
  }, [isSubmitting, setClicked]);
4964
5088
  console.log((_c = button.meta.label) == null ? void 0 : _c.context);
4965
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex justify-between", children: [
4966
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex items-center gap-6", children: [
4967
- Logo ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
4968
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
5089
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between", children: [
5090
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-6", children: [
5091
+ Logo ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
5092
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
4969
5093
  ] }),
4970
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5094
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4971
5095
  "button",
4972
5096
  {
4973
5097
  ...omitInputAttributes(attrs),
@@ -4976,7 +5100,7 @@ function UnlinkRow({ button }) {
4976
5100
  disabled: isSubmitting,
4977
5101
  className: "relative",
4978
5102
  title: `Unlink ${provider}`,
4979
- children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
5103
+ children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4980
5104
  trash_default,
4981
5105
  {
4982
5106
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -4991,7 +5115,7 @@ function UnlinkRow({ button }) {
4991
5115
  // src/theme/default/components/settings/settings-passkey.tsx
4992
5116
  var import_elements_react19 = require("@ory/elements-react");
4993
5117
  var import_react_hook_form21 = require("react-hook-form");
4994
- var import_jsx_runtime89 = require("react/jsx-runtime");
5118
+ var import_jsx_runtime90 = require("react/jsx-runtime");
4995
5119
  function DefaultSettingsPasskey({
4996
5120
  triggerButton,
4997
5121
  removeButtons
@@ -5001,8 +5125,8 @@ function DefaultSettingsPasskey({
5001
5125
  } = (0, import_react_hook_form21.useFormContext)();
5002
5126
  const { Node: Node2 } = (0, import_elements_react19.useComponents)();
5003
5127
  const hasRemoveButtons = removeButtons.length > 0;
5004
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5005
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5128
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5129
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5006
5130
  Node2.Button,
5007
5131
  {
5008
5132
  node: triggerButton,
@@ -5010,38 +5134,38 @@ function DefaultSettingsPasskey({
5010
5134
  onClick: triggerButton.onClick
5011
5135
  }
5012
5136
  ) }),
5013
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
5014
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}),
5015
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5137
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
5138
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DefaultHorizontalDivider, {}),
5139
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
5016
5140
  var _a, _b;
5017
5141
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5018
5142
  const addedAt = "added_at" in context ? context.added_at : null;
5019
5143
  const displayName = "display_name" in context ? context.display_name : null;
5020
5144
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5021
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
5145
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
5022
5146
  "div",
5023
5147
  {
5024
5148
  className: "flex justify-between gap-6 md:items-center",
5025
5149
  children: [
5026
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5027
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5150
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5151
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5028
5152
  passkey_default,
5029
5153
  {
5030
5154
  size: 32,
5031
5155
  className: "text-interface-foreground-default-primary"
5032
5156
  }
5033
5157
  ),
5034
- /* @__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: [
5035
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5036
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5037
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5158
+ /* @__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: [
5159
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5160
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5161
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5038
5162
  ] }),
5039
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5163
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5040
5164
  dateStyle: "long"
5041
5165
  }).format(new Date(addedAt)) })
5042
5166
  ] })
5043
5167
  ] }),
5044
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5168
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5045
5169
  "button",
5046
5170
  {
5047
5171
  ...node.attributes,
@@ -5049,7 +5173,7 @@ function DefaultSettingsPasskey({
5049
5173
  onClick: node.onClick,
5050
5174
  disabled: isSubmitting,
5051
5175
  className: "relative",
5052
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
5176
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
5053
5177
  trash_default,
5054
5178
  {
5055
5179
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5069,25 +5193,25 @@ function DefaultSettingsPasskey({
5069
5193
 
5070
5194
  // src/theme/default/assets/icons/download.svg
5071
5195
  var React30 = __toESM(require("react"));
5072
- var import_jsx_runtime90 = require("react/jsx-runtime");
5196
+ var import_jsx_runtime91 = require("react/jsx-runtime");
5073
5197
  var SvgDownload = (props) => {
5074
5198
  var _a, _b;
5075
- 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" }) });
5199
+ 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" }) });
5076
5200
  };
5077
5201
  var download_default = SvgDownload;
5078
5202
 
5079
5203
  // src/theme/default/assets/icons/refresh.svg
5080
5204
  var React31 = __toESM(require("react"));
5081
- var import_jsx_runtime91 = require("react/jsx-runtime");
5205
+ var import_jsx_runtime92 = require("react/jsx-runtime");
5082
5206
  var SvgRefresh = (props) => {
5083
5207
  var _a, _b;
5084
- 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" }) });
5208
+ 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" }) });
5085
5209
  };
5086
5210
  var refresh_default = SvgRefresh;
5087
5211
 
5088
5212
  // src/theme/default/components/settings/settings-recovery-codes.tsx
5089
5213
  var import_react_hook_form22 = require("react-hook-form");
5090
- var import_jsx_runtime92 = require("react/jsx-runtime");
5214
+ var import_jsx_runtime93 = require("react/jsx-runtime");
5091
5215
  function DefaultSettingsRecoveryCodes({
5092
5216
  codes,
5093
5217
  regnerateButton,
@@ -5109,12 +5233,12 @@ function DefaultSettingsRecoveryCodes({
5109
5233
  element.click();
5110
5234
  };
5111
5235
  const hasCodes = codes.length >= 1;
5112
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-8", children: [
5113
- codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(DefaultHorizontalDivider, {}),
5114
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5115
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5116
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex gap-2", children: [
5117
- regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5236
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
5237
+ codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DefaultHorizontalDivider, {}),
5238
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-4 justify-between", children: [
5239
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
5240
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2", children: [
5241
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5118
5242
  "button",
5119
5243
  {
5120
5244
  ...regnerateButton.attributes,
@@ -5123,7 +5247,7 @@ function DefaultSettingsRecoveryCodes({
5123
5247
  onClick: onRegenerate,
5124
5248
  disabled: isSubmitting,
5125
5249
  "data-loading": isSubmitting,
5126
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5250
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5127
5251
  refresh_default,
5128
5252
  {
5129
5253
  size: 24,
@@ -5132,7 +5256,7 @@ function DefaultSettingsRecoveryCodes({
5132
5256
  )
5133
5257
  }
5134
5258
  ),
5135
- revealButton && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_jsx_runtime92.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5259
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5136
5260
  "button",
5137
5261
  {
5138
5262
  ...revealButton.attributes,
@@ -5140,7 +5264,7 @@ function DefaultSettingsRecoveryCodes({
5140
5264
  className: "ml-auto",
5141
5265
  onClick: onReveal,
5142
5266
  title: "Reveal recovery codes",
5143
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5267
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5144
5268
  eye_default,
5145
5269
  {
5146
5270
  size: 24,
@@ -5149,7 +5273,7 @@ function DefaultSettingsRecoveryCodes({
5149
5273
  )
5150
5274
  }
5151
5275
  ) }),
5152
- hasCodes && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5276
+ hasCodes && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5153
5277
  "button",
5154
5278
  {
5155
5279
  onClick: onDownload,
@@ -5157,7 +5281,7 @@ function DefaultSettingsRecoveryCodes({
5157
5281
  className: "ml-auto",
5158
5282
  "data-testid": "ory/screen/settings/group/recovery_code/download",
5159
5283
  title: "Download recovery codes",
5160
- children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
5284
+ children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5161
5285
  download_default,
5162
5286
  {
5163
5287
  size: 24,
@@ -5168,12 +5292,12 @@ function DefaultSettingsRecoveryCodes({
5168
5292
  )
5169
5293
  ] })
5170
5294
  ] }),
5171
- 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)(
5295
+ 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)(
5172
5296
  "div",
5173
5297
  {
5174
5298
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
5175
5299
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
5176
- children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { children: code }, code))
5300
+ children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { children: code }, code))
5177
5301
  }
5178
5302
  ) }) : null
5179
5303
  ] });
@@ -5184,16 +5308,16 @@ var import_elements_react20 = require("@ory/elements-react");
5184
5308
 
5185
5309
  // src/theme/default/assets/icons/qrcode.svg
5186
5310
  var React32 = __toESM(require("react"));
5187
- var import_jsx_runtime93 = require("react/jsx-runtime");
5311
+ var import_jsx_runtime94 = require("react/jsx-runtime");
5188
5312
  var SvgQrcode = (props) => {
5189
5313
  var _a, _b;
5190
- 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" }) });
5314
+ 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" }) });
5191
5315
  };
5192
5316
  var qrcode_default = SvgQrcode;
5193
5317
 
5194
5318
  // src/theme/default/components/settings/settings-totp.tsx
5195
5319
  var import_react_hook_form23 = require("react-hook-form");
5196
- var import_jsx_runtime94 = require("react/jsx-runtime");
5320
+ var import_jsx_runtime95 = require("react/jsx-runtime");
5197
5321
  function DefaultSettingsTotp({
5198
5322
  totpImage,
5199
5323
  totpInput,
@@ -5213,19 +5337,19 @@ function DefaultSettingsTotp({
5213
5337
  node_type: _ignoredNodeType,
5214
5338
  ...buttonAttrs
5215
5339
  } = totpUnlink.attributes;
5216
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5217
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card.Divider, {}) }),
5218
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5219
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(qrcode_default, { size: 32 }) }),
5220
- /* @__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" }) }),
5221
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5340
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5341
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card.Divider, {}) }),
5342
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
5343
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
5344
+ /* @__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" }) }),
5345
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5222
5346
  "button",
5223
5347
  {
5224
5348
  type: type === "button" ? "button" : "submit",
5225
5349
  ...buttonAttrs,
5226
5350
  onClick: onUnlink,
5227
5351
  disabled: isSubmitting,
5228
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5352
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5229
5353
  trash_default,
5230
5354
  {
5231
5355
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5238,9 +5362,9 @@ function DefaultSettingsTotp({
5238
5362
  ] });
5239
5363
  }
5240
5364
  if (totpImage && totpSecret && totpInput) {
5241
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5242
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DefaultHorizontalDivider, {}) }),
5243
- /* @__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)(
5365
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
5366
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultHorizontalDivider, {}) }),
5367
+ /* @__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)(
5244
5368
  Node2.Image,
5245
5369
  {
5246
5370
  node: totpImage,
@@ -5249,13 +5373,13 @@ function DefaultSettingsTotp({
5249
5373
  }
5250
5374
  }
5251
5375
  ) }) }) }),
5252
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-6", children: [
5253
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5376
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-6", children: [
5377
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5254
5378
  Node2.Label,
5255
5379
  {
5256
5380
  node: totpSecret,
5257
5381
  attributes: totpSecret.attributes,
5258
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5382
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex justify-stretch max-w-[488px]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5259
5383
  "input",
5260
5384
  {
5261
5385
  disabled: true,
@@ -5268,12 +5392,12 @@ function DefaultSettingsTotp({
5268
5392
  ) })
5269
5393
  }
5270
5394
  ),
5271
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5395
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5272
5396
  Node2.Label,
5273
5397
  {
5274
5398
  attributes: totpInput.attributes,
5275
5399
  node: totpInput,
5276
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5400
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5277
5401
  Node2.CodeInput,
5278
5402
  {
5279
5403
  node: totpInput,
@@ -5292,16 +5416,16 @@ var import_elements_react21 = require("@ory/elements-react");
5292
5416
 
5293
5417
  // src/theme/default/assets/icons/key.svg
5294
5418
  var React33 = __toESM(require("react"));
5295
- var import_jsx_runtime95 = require("react/jsx-runtime");
5419
+ var import_jsx_runtime96 = require("react/jsx-runtime");
5296
5420
  var SvgKey = (props) => {
5297
5421
  var _a, _b;
5298
- 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" }) });
5422
+ 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" }) });
5299
5423
  };
5300
5424
  var key_default = SvgKey;
5301
5425
 
5302
5426
  // src/theme/default/components/settings/settings-webauthn.tsx
5303
5427
  var import_react_hook_form24 = require("react-hook-form");
5304
- var import_jsx_runtime96 = require("react/jsx-runtime");
5428
+ var import_jsx_runtime97 = require("react/jsx-runtime");
5305
5429
  function DefaultSettingsWebauthn({
5306
5430
  nameInput,
5307
5431
  triggerButton,
@@ -5312,14 +5436,14 @@ function DefaultSettingsWebauthn({
5312
5436
  } = (0, import_react_hook_form24.useFormContext)();
5313
5437
  const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
5314
5438
  const hasRemoveButtons = removeButtons.length > 0;
5315
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-8", children: [
5316
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5317
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5439
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5440
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
5441
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5318
5442
  Node2.Label,
5319
5443
  {
5320
5444
  node: nameInput,
5321
5445
  attributes: nameInput.attributes,
5322
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5446
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5323
5447
  Node2.Input,
5324
5448
  {
5325
5449
  node: nameInput,
@@ -5328,7 +5452,7 @@ function DefaultSettingsWebauthn({
5328
5452
  )
5329
5453
  }
5330
5454
  ) }),
5331
- triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5455
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5332
5456
  Node2.Button,
5333
5457
  {
5334
5458
  node: triggerButton,
@@ -5337,38 +5461,38 @@ function DefaultSettingsWebauthn({
5337
5461
  }
5338
5462
  ) : null
5339
5463
  ] }),
5340
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-8", children: [
5341
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card.Divider, {}),
5342
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5464
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
5465
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card.Divider, {}),
5466
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
5343
5467
  var _a, _b;
5344
5468
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
5345
5469
  const addedAt = "added_at" in context ? context.added_at : null;
5346
5470
  const displayName = "display_name" in context ? context.display_name : null;
5347
5471
  const keyId = "value" in node.attributes ? node.attributes.value : null;
5348
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
5472
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
5349
5473
  "div",
5350
5474
  {
5351
5475
  className: "flex justify-between gap-6 md:items-center",
5352
5476
  children: [
5353
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5354
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5477
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
5478
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5355
5479
  key_default,
5356
5480
  {
5357
5481
  size: 32,
5358
5482
  className: "text-interface-foreground-default-primary"
5359
5483
  }
5360
5484
  ),
5361
- /* @__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: [
5362
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5363
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5364
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5485
+ /* @__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: [
5486
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
5487
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
5488
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
5365
5489
  ] }),
5366
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5490
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
5367
5491
  dateStyle: "long"
5368
5492
  }).format(new Date(addedAt)) })
5369
5493
  ] })
5370
5494
  ] }),
5371
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5495
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5372
5496
  "button",
5373
5497
  {
5374
5498
  ...node.attributes,
@@ -5376,7 +5500,7 @@ function DefaultSettingsWebauthn({
5376
5500
  onClick: node.onClick,
5377
5501
  disabled: isSubmitting,
5378
5502
  className: "relative",
5379
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5503
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5380
5504
  trash_default,
5381
5505
  {
5382
5506
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -5395,91 +5519,96 @@ function DefaultSettingsWebauthn({
5395
5519
  }
5396
5520
 
5397
5521
  // src/theme/default/components/card/auth-method-list-container.tsx
5398
- var import_jsx_runtime97 = require("react/jsx-runtime");
5522
+ var import_jsx_runtime98 = require("react/jsx-runtime");
5399
5523
  function DefaultAuthMethodListContainer({
5400
5524
  children
5401
5525
  }) {
5402
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5526
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
5403
5527
  }
5404
5528
 
5405
5529
  // src/theme/default/components/form/captcha.tsx
5406
- var import_client_fetch39 = require("@ory/client-fetch");
5530
+ var import_client_fetch41 = require("@ory/client-fetch");
5407
5531
  var import_react_turnstile = require("@marsidev/react-turnstile");
5408
- var import_react15 = require("react");
5532
+ var import_react17 = require("react");
5409
5533
  var import_react_hook_form25 = require("react-hook-form");
5410
- var import_jsx_runtime98 = require("react/jsx-runtime");
5534
+ var import_jsx_runtime99 = require("react/jsx-runtime");
5411
5535
  var DefaultCaptcha = ({ node }) => {
5412
- const { setValue } = (0, import_react_hook_form25.useFormContext)();
5413
- const ref = (0, import_react15.useRef)();
5414
- const nodes = [];
5415
- if ((0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes)) {
5416
- if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5417
- nodes.push(
5418
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DefaultInput, { node, attributes: node.attributes }, 1)
5419
- );
5536
+ const { setValue, formState } = (0, import_react_hook_form25.useFormContext)();
5537
+ const ref = (0, import_react17.useRef)();
5538
+ const prevSubmitCount = (0, import_react17.useRef)(formState.submitCount);
5539
+ (0, import_react17.useEffect)(() => {
5540
+ if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
5541
+ prevSubmitCount.current = formState.submitCount;
5542
+ setTimeout(() => {
5543
+ if (ref.current) {
5544
+ ref.current.reset();
5545
+ }
5546
+ }, 100);
5420
5547
  }
5548
+ }, [formState.submitCount, formState.isSubmitSuccessful]);
5549
+ if (!(0, import_client_fetch41.isUiNodeInputAttributes)(node.attributes)) {
5550
+ return null;
5421
5551
  }
5422
- if ((0, import_client_fetch39.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
5552
+ if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
5553
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DefaultInput, { node, attributes: node.attributes }, 1);
5554
+ } else if (node.attributes.name === "captcha_turnstile_options") {
5423
5555
  const options = JSON.parse(node.attributes.value);
5424
- nodes.push(
5425
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5426
- import_react_turnstile.Turnstile,
5427
- {
5428
- ref,
5429
- siteKey: options.sitekey,
5430
- options: {
5431
- action: options.action,
5432
- size: "flexible",
5433
- theme: options.theme,
5434
- responseField: false,
5435
- responseFieldName: options.response_field_name
5436
- },
5437
- onExpire: () => {
5438
- var _a;
5439
- return (_a = ref.current) == null ? void 0 : _a.reset();
5440
- },
5441
- onSuccess: (token) => {
5442
- setValue(options.response_field_name, token);
5443
- }
5556
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5557
+ import_react_turnstile.Turnstile,
5558
+ {
5559
+ ref,
5560
+ siteKey: options.sitekey,
5561
+ options: {
5562
+ action: options.action,
5563
+ size: "flexible",
5564
+ theme: options.theme,
5565
+ responseField: false,
5566
+ responseFieldName: options.response_field_name
5444
5567
  },
5445
- 2
5446
- )
5568
+ onExpire: () => {
5569
+ var _a;
5570
+ return (_a = ref.current) == null ? void 0 : _a.reset();
5571
+ },
5572
+ onSuccess: (token) => {
5573
+ setValue(options.response_field_name, token);
5574
+ }
5575
+ }
5447
5576
  );
5448
5577
  }
5449
- return nodes;
5578
+ return null;
5450
5579
  };
5451
5580
 
5452
5581
  // src/theme/default/assets/icons/personal.svg
5453
5582
  var React34 = __toESM(require("react"));
5454
- var import_jsx_runtime99 = require("react/jsx-runtime");
5583
+ var import_jsx_runtime100 = require("react/jsx-runtime");
5455
5584
  var SvgPersonal = (props) => {
5456
5585
  var _a, _b;
5457
- 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" }) });
5586
+ 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" }) });
5458
5587
  };
5459
5588
  var personal_default = SvgPersonal;
5460
5589
 
5461
5590
  // src/theme/default/assets/icons/message.svg
5462
5591
  var React35 = __toESM(require("react"));
5463
- var import_jsx_runtime100 = require("react/jsx-runtime");
5592
+ var import_jsx_runtime101 = require("react/jsx-runtime");
5464
5593
  var SvgMessage = (props) => {
5465
5594
  var _a, _b;
5466
- 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" }) });
5595
+ 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" }) });
5467
5596
  };
5468
5597
  var message_default = SvgMessage;
5469
5598
 
5470
5599
  // src/theme/default/assets/icons/phone.svg
5471
5600
  var React36 = __toESM(require("react"));
5472
- var import_jsx_runtime101 = require("react/jsx-runtime");
5601
+ var import_jsx_runtime102 = require("react/jsx-runtime");
5473
5602
  var SvgPhone = (props) => {
5474
5603
  var _a, _b;
5475
- 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" }) });
5604
+ 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" }) });
5476
5605
  };
5477
5606
  var phone_default = SvgPhone;
5478
5607
 
5479
5608
  // src/theme/default/components/form/consent-scope-checkbox.tsx
5480
5609
  var import_react_intl23 = require("react-intl");
5481
5610
  var Switch = __toESM(require("@radix-ui/react-switch"));
5482
- var import_jsx_runtime102 = require("react/jsx-runtime");
5611
+ var import_jsx_runtime103 = require("react/jsx-runtime");
5483
5612
  var ScopeIcons = {
5484
5613
  openid: personal_default,
5485
5614
  offline_access: personal_default,
@@ -5494,7 +5623,7 @@ function DefaultConsentScopeCheckbox({
5494
5623
  var _a;
5495
5624
  const intl = (0, import_react_intl23.useIntl)();
5496
5625
  const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
5497
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5626
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5498
5627
  ListItem,
5499
5628
  {
5500
5629
  as: "label",
@@ -5509,7 +5638,7 @@ function DefaultConsentScopeCheckbox({
5509
5638
  }),
5510
5639
  className: "col-span-2",
5511
5640
  "data-testid": "ory/screen/consent/scope-checkbox-label",
5512
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5641
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5513
5642
  Switch.Root,
5514
5643
  {
5515
5644
  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",
@@ -5517,7 +5646,7 @@ function DefaultConsentScopeCheckbox({
5517
5646
  value: attributes.value,
5518
5647
  onCheckedChange,
5519
5648
  defaultChecked: true,
5520
- 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" })
5649
+ 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" })
5521
5650
  }
5522
5651
  )
5523
5652
  }
@@ -5575,10 +5704,11 @@ function getOryComponents(overrides) {
5575
5704
  }
5576
5705
 
5577
5706
  // src/theme/default/flows/error.tsx
5578
- var import_client_fetch40 = require("@ory/client-fetch");
5579
- var import_react16 = require("react");
5707
+ var import_client_fetch42 = require("@ory/client-fetch");
5708
+ var import_elements_react22 = require("@ory/elements-react");
5709
+ var import_react18 = require("react");
5580
5710
  var import_react_intl24 = require("react-intl");
5581
- var import_jsx_runtime103 = require("react/jsx-runtime");
5711
+ var import_jsx_runtime104 = require("react/jsx-runtime");
5582
5712
  function isOAuth2Error(error) {
5583
5713
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5584
5714
  }
@@ -5587,7 +5717,7 @@ var errorDescriptions = {
5587
5717
  5: "The server encountered an error and could not complete your request"
5588
5718
  };
5589
5719
  function useStandardize(error) {
5590
- return (0, import_react16.useMemo)(() => {
5720
+ return (0, import_react18.useMemo)(() => {
5591
5721
  var _a;
5592
5722
  if (isOAuth2Error(error)) {
5593
5723
  return {
@@ -5597,14 +5727,14 @@ function useStandardize(error) {
5597
5727
  timestamp: /* @__PURE__ */ new Date()
5598
5728
  };
5599
5729
  }
5600
- if ((0, import_client_fetch40.instanceOfFlowError)(error)) {
5730
+ if ((0, import_client_fetch42.instanceOfFlowError)(error)) {
5601
5731
  const parsed = error.error;
5602
5732
  return {
5603
5733
  ...parsed,
5604
5734
  id: error.id,
5605
5735
  timestamp: error.created_at
5606
5736
  };
5607
- } else if (error.error && (0, import_client_fetch40.instanceOfGenericError)(error.error)) {
5737
+ } else if (error.error && (0, import_client_fetch42.instanceOfGenericError)(error.error)) {
5608
5738
  return {
5609
5739
  code: (_a = error.error.code) != null ? _a : 500,
5610
5740
  message: error.error.message,
@@ -5631,47 +5761,47 @@ function Error2({
5631
5761
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5632
5762
  const parsed = useStandardize(error);
5633
5763
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5634
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5764
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5635
5765
  IntlProvider,
5636
5766
  {
5637
5767
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5638
5768
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5639
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
5769
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
5640
5770
  "div",
5641
5771
  {
5642
5772
  className: "flex flex-col gap-6 antialiased",
5643
5773
  "data-testid": "ory/screen/error",
5644
5774
  children: [
5645
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5646
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ErrorLogo, { config }),
5647
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-2", children: [
5648
- /* @__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" }) }),
5649
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5650
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5775
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5776
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ErrorLogo, {}),
5777
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5778
+ /* @__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" }) }),
5779
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5780
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5651
5781
  ] })
5652
5782
  ] }),
5653
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Divider, {}),
5654
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-2", children: [
5655
- /* @__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" }) }),
5656
- /* @__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" }) }),
5657
- /* @__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 }) })
5783
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5784
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5785
+ /* @__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" }) }),
5786
+ /* @__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" }) }),
5787
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(GoBackButton, {}) })
5658
5788
  ] }),
5659
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Divider, {}),
5660
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5661
- /* @__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" }) }),
5662
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5789
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Divider, {}),
5790
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5791
+ /* @__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" }) }),
5792
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5663
5793
  "ID: ",
5664
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: parsed.id })
5794
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.id })
5665
5795
  ] }),
5666
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5796
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5667
5797
  "Time: ",
5668
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5798
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5669
5799
  ] }),
5670
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5800
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5671
5801
  "Message: ",
5672
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("code", { children: parsed.reason })
5802
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("code", { children: parsed.reason })
5673
5803
  ] }),
5674
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5804
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5675
5805
  "button",
5676
5806
  {
5677
5807
  className: "text-interface-foreground-default-primary underline",
@@ -5683,7 +5813,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5683
5813
  `;
5684
5814
  void navigator.clipboard.writeText(text);
5685
5815
  },
5686
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5816
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.footer.copy" })
5687
5817
  }
5688
5818
  ) })
5689
5819
  ] })
@@ -5691,43 +5821,46 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5691
5821
  }
5692
5822
  ) })
5693
5823
  }
5694
- );
5824
+ ) });
5695
5825
  }
5696
- function LoggedInActions({ config }) {
5826
+ function LoggedInActions() {
5827
+ const config = (0, import_elements_react22.useOryConfiguration)();
5697
5828
  const { logoutFlow } = useClientLogout(config);
5698
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5829
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5699
5830
  "a",
5700
5831
  {
5701
5832
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
5702
5833
  className: "text-interface-foreground-default-primary underline",
5703
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5834
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "login.logout-button" })
5704
5835
  }
5705
5836
  );
5706
5837
  }
5707
- function GoBackButton({ config }) {
5838
+ function GoBackButton() {
5839
+ const config = (0, import_elements_react22.useOryConfiguration)();
5708
5840
  if ("default_redirect_url" in config.project) {
5709
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5841
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5710
5842
  "a",
5711
5843
  {
5712
5844
  className: "text-interface-foreground-default-primary underline",
5713
5845
  href: config.project.default_redirect_url,
5714
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5846
+ children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_react_intl24.FormattedMessage, { id: "error.action.go-back" })
5715
5847
  }
5716
5848
  );
5717
5849
  }
5718
5850
  return null;
5719
5851
  }
5720
- function ErrorLogo({ config }) {
5721
- if (config.logoUrl) {
5722
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("img", { src: config.logoUrl, width: 100, height: 36, alt: "Logo" });
5852
+ function ErrorLogo() {
5853
+ const { project } = (0, import_elements_react22.useOryConfiguration)();
5854
+ if (project.logo_light_url) {
5855
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("img", { src: project.logo_light_url, width: 100, height: 36, alt: "Logo" });
5723
5856
  }
5724
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.name });
5857
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
5725
5858
  }
5726
5859
 
5727
5860
  // src/theme/default/flows/login.tsx
5728
- var import_client_fetch41 = require("@ory/client-fetch");
5729
- var import_elements_react22 = require("@ory/elements-react");
5730
- var import_jsx_runtime104 = require("react/jsx-runtime");
5861
+ var import_client_fetch43 = require("@ory/client-fetch");
5862
+ var import_elements_react23 = require("@ory/elements-react");
5863
+ var import_jsx_runtime105 = require("react/jsx-runtime");
5731
5864
  function Login({
5732
5865
  flow,
5733
5866
  config,
@@ -5735,22 +5868,22 @@ function Login({
5735
5868
  components: flowOverrideComponents
5736
5869
  }) {
5737
5870
  const components = getOryComponents(flowOverrideComponents);
5738
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5739
- import_elements_react22.OryProvider,
5871
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5872
+ import_elements_react23.OryProvider,
5740
5873
  {
5741
5874
  config,
5742
5875
  flow,
5743
- flowType: import_client_fetch41.FlowType.Login,
5876
+ flowType: import_client_fetch43.FlowType.Login,
5744
5877
  components,
5745
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.OryTwoStepCard, {})
5878
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryTwoStepCard, {})
5746
5879
  }
5747
5880
  );
5748
5881
  }
5749
5882
 
5750
5883
  // src/theme/default/flows/recovery.tsx
5751
- var import_client_fetch42 = require("@ory/client-fetch");
5752
- var import_elements_react23 = require("@ory/elements-react");
5753
- var import_jsx_runtime105 = require("react/jsx-runtime");
5884
+ var import_client_fetch44 = require("@ory/client-fetch");
5885
+ var import_elements_react24 = require("@ory/elements-react");
5886
+ var import_jsx_runtime106 = require("react/jsx-runtime");
5754
5887
  function Recovery({
5755
5888
  flow,
5756
5889
  config,
@@ -5758,22 +5891,22 @@ function Recovery({
5758
5891
  components: flowOverrideComponents
5759
5892
  }) {
5760
5893
  const components = getOryComponents(flowOverrideComponents);
5761
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5762
- import_elements_react23.OryProvider,
5894
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5895
+ import_elements_react24.OryProvider,
5763
5896
  {
5764
5897
  config,
5765
5898
  flow,
5766
- flowType: import_client_fetch42.FlowType.Recovery,
5899
+ flowType: import_client_fetch44.FlowType.Recovery,
5767
5900
  components,
5768
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react23.OryTwoStepCard, {})
5901
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
5769
5902
  }
5770
5903
  );
5771
5904
  }
5772
5905
 
5773
5906
  // src/theme/default/flows/registration.tsx
5774
- var import_client_fetch43 = require("@ory/client-fetch");
5775
- var import_elements_react24 = require("@ory/elements-react");
5776
- var import_jsx_runtime106 = require("react/jsx-runtime");
5907
+ var import_client_fetch45 = require("@ory/client-fetch");
5908
+ var import_elements_react25 = require("@ory/elements-react");
5909
+ var import_jsx_runtime107 = require("react/jsx-runtime");
5777
5910
  function Registration({
5778
5911
  flow,
5779
5912
  children,
@@ -5781,22 +5914,22 @@ function Registration({
5781
5914
  config
5782
5915
  }) {
5783
5916
  const components = getOryComponents(flowOverrideComponents);
5784
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5785
- import_elements_react24.OryProvider,
5917
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5918
+ import_elements_react25.OryProvider,
5786
5919
  {
5787
5920
  config,
5788
5921
  flow,
5789
- flowType: import_client_fetch43.FlowType.Registration,
5922
+ flowType: import_client_fetch45.FlowType.Registration,
5790
5923
  components,
5791
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryTwoStepCard, {})
5924
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OryTwoStepCard, {})
5792
5925
  }
5793
5926
  );
5794
5927
  }
5795
5928
 
5796
5929
  // src/theme/default/flows/settings.tsx
5797
- var import_client_fetch44 = require("@ory/client-fetch");
5798
- var import_elements_react25 = require("@ory/elements-react");
5799
- var import_jsx_runtime107 = require("react/jsx-runtime");
5930
+ var import_client_fetch46 = require("@ory/client-fetch");
5931
+ var import_elements_react26 = require("@ory/elements-react");
5932
+ var import_jsx_runtime108 = require("react/jsx-runtime");
5800
5933
  function Settings({
5801
5934
  flow,
5802
5935
  config,
@@ -5804,25 +5937,25 @@ function Settings({
5804
5937
  components: flowOverrideComponents
5805
5938
  }) {
5806
5939
  const components = getOryComponents(flowOverrideComponents);
5807
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5808
- import_elements_react25.OryProvider,
5940
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5941
+ import_elements_react26.OryProvider,
5809
5942
  {
5810
5943
  config,
5811
5944
  flow,
5812
- flowType: import_client_fetch44.FlowType.Settings,
5945
+ flowType: import_client_fetch46.FlowType.Settings,
5813
5946
  components,
5814
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
5815
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.HeadlessPageHeader, {}),
5816
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OrySettingsCard, {})
5947
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
5948
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.HeadlessPageHeader, {}),
5949
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OrySettingsCard, {})
5817
5950
  ] })
5818
5951
  }
5819
5952
  );
5820
5953
  }
5821
5954
 
5822
5955
  // src/theme/default/flows/verification.tsx
5823
- var import_client_fetch45 = require("@ory/client-fetch");
5824
- var import_elements_react26 = require("@ory/elements-react");
5825
- var import_jsx_runtime108 = require("react/jsx-runtime");
5956
+ var import_client_fetch47 = require("@ory/client-fetch");
5957
+ var import_elements_react27 = require("@ory/elements-react");
5958
+ var import_jsx_runtime109 = require("react/jsx-runtime");
5826
5959
  function Verification({
5827
5960
  flow,
5828
5961
  config,
@@ -5830,24 +5963,24 @@ function Verification({
5830
5963
  components: flowOverrideComponents
5831
5964
  }) {
5832
5965
  const components = getOryComponents(flowOverrideComponents);
5833
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5834
- import_elements_react26.OryProvider,
5966
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5967
+ import_elements_react27.OryProvider,
5835
5968
  {
5836
5969
  config,
5837
5970
  flow,
5838
- flowType: import_client_fetch45.FlowType.Verification,
5971
+ flowType: import_client_fetch47.FlowType.Verification,
5839
5972
  components,
5840
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OryTwoStepCard, {})
5973
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OryTwoStepCard, {})
5841
5974
  }
5842
5975
  );
5843
5976
  }
5844
5977
 
5845
5978
  // src/theme/default/flows/consent.tsx
5846
- var import_client_fetch47 = require("@ory/client-fetch");
5847
- var import_elements_react27 = require("@ory/elements-react");
5979
+ var import_client_fetch49 = require("@ory/client-fetch");
5980
+ var import_elements_react28 = require("@ory/elements-react");
5848
5981
 
5849
5982
  // src/theme/default/utils/oauth2.ts
5850
- var import_client_fetch46 = require("@ory/client-fetch");
5983
+ var import_client_fetch48 = require("@ory/client-fetch");
5851
5984
  var rememberCheckbox = {
5852
5985
  type: "input",
5853
5986
  group: "oauth2_consent",
@@ -5855,7 +5988,7 @@ var rememberCheckbox = {
5855
5988
  label: {
5856
5989
  id: 9999111,
5857
5990
  text: "Remember my decision",
5858
- type: import_client_fetch46.UiTextTypeEnum.Info
5991
+ type: import_client_fetch48.UiTextTypeEnum.Info
5859
5992
  }
5860
5993
  },
5861
5994
  attributes: {
@@ -5874,7 +6007,7 @@ var acceptButton = {
5874
6007
  label: {
5875
6008
  id: 9999111,
5876
6009
  text: "Accept",
5877
- type: import_client_fetch46.UiTextTypeEnum.Info
6010
+ type: import_client_fetch48.UiTextTypeEnum.Info
5878
6011
  }
5879
6012
  },
5880
6013
  attributes: {
@@ -5893,7 +6026,7 @@ var rejectButton = {
5893
6026
  label: {
5894
6027
  id: 9999111,
5895
6028
  text: "Reject",
5896
- type: import_client_fetch46.UiTextTypeEnum.Info
6029
+ type: import_client_fetch48.UiTextTypeEnum.Info
5897
6030
  }
5898
6031
  },
5899
6032
  attributes: {
@@ -5940,7 +6073,7 @@ function scopesToUiNodes(scopes) {
5940
6073
  label: {
5941
6074
  id: 9999111,
5942
6075
  text: scope,
5943
- type: import_client_fetch46.UiTextTypeEnum.Info
6076
+ type: import_client_fetch48.UiTextTypeEnum.Info
5944
6077
  }
5945
6078
  },
5946
6079
  attributes: {
@@ -5985,7 +6118,7 @@ function challengeNode(challenge) {
5985
6118
  }
5986
6119
 
5987
6120
  // src/theme/default/flows/consent.tsx
5988
- var import_jsx_runtime109 = require("react/jsx-runtime");
6121
+ var import_jsx_runtime110 = require("react/jsx-runtime");
5989
6122
  function Consent({
5990
6123
  consentChallenge,
5991
6124
  session,
@@ -6002,14 +6135,14 @@ function Consent({
6002
6135
  formActionUrl,
6003
6136
  session
6004
6137
  );
6005
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6006
- import_elements_react27.OryProvider,
6138
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6139
+ import_elements_react28.OryProvider,
6007
6140
  {
6008
6141
  config,
6009
6142
  flow,
6010
- flowType: import_client_fetch47.FlowType.OAuth2Consent,
6143
+ flowType: import_client_fetch49.FlowType.OAuth2Consent,
6011
6144
  components,
6012
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OryConsentCard, {})
6145
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OryConsentCard, {})
6013
6146
  }
6014
6147
  );
6015
6148
  }