@ory/elements-react 1.0.0-next.31 → 1.0.0-next.33

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.
@@ -46,6 +46,8 @@ import { useIntl } from "react-intl";
46
46
 
47
47
  // src/theme/default/utils/url.ts
48
48
  function restartFlowUrl(flow, fallback) {
49
+ if (flow.requested_aal === "aal2")
50
+ return appendRefresh(appendAal(fallback, "aal1"), true);
49
51
  return flow.request_url || appendReturnTo(fallback, flow.return_to);
50
52
  }
51
53
  function initFlowUrl(sdkUrl, flowType, flow) {
@@ -75,48 +77,216 @@ function appendReturnTo(url, returnTo) {
75
77
  urlObj.searchParams.set("return_to", returnTo);
76
78
  return urlObj.toString();
77
79
  }
80
+ function appendAal(url, aal) {
81
+ const urlObj = new URL(url);
82
+ urlObj.searchParams.set("aal", aal);
83
+ return urlObj.toString();
84
+ }
85
+ function appendRefresh(url, refresh) {
86
+ const urlObj = new URL(url);
87
+ urlObj.searchParams.set("refresh", refresh ? "true" : "false");
88
+ return urlObj.toString();
89
+ }
90
+
91
+ // src/util/ui/index.ts
92
+ import { UiNodeGroupEnum as UiNodeGroupEnum2 } from "@ory/client-fetch";
93
+ import { useMemo } from "react";
94
+
95
+ // src/context/component.tsx
96
+ import {
97
+ isUiNodeInputAttributes,
98
+ UiNodeGroupEnum
99
+ } from "@ory/client-fetch";
100
+ import { createContext, useContext } from "react";
101
+ import { jsx as jsx4 } from "react/jsx-runtime";
102
+ var ComponentContext = createContext({
103
+ components: null,
104
+ // fine because we throw an error if it's not provided
105
+ nodeSorter: () => 0,
106
+ groupSorter: () => 0
107
+ });
108
+ function useComponents() {
109
+ const ctx = useContext(ComponentContext);
110
+ if (!ctx) {
111
+ throw new Error("useComponents must be used within a ComponentProvider");
112
+ }
113
+ return ctx.components;
114
+ }
115
+ var defaultGroupOrder = [
116
+ UiNodeGroupEnum.Default,
117
+ UiNodeGroupEnum.Profile,
118
+ UiNodeGroupEnum.Password,
119
+ UiNodeGroupEnum.Oidc,
120
+ UiNodeGroupEnum.Code,
121
+ UiNodeGroupEnum.LookupSecret,
122
+ UiNodeGroupEnum.Passkey,
123
+ UiNodeGroupEnum.Webauthn,
124
+ UiNodeGroupEnum.Totp
125
+ ];
126
+
127
+ // src/util/ui/index.ts
128
+ function triggerToWindowCall(trigger) {
129
+ if (!trigger) {
130
+ return;
131
+ }
132
+ const fn = triggerToFunction(trigger);
133
+ if (fn) {
134
+ fn();
135
+ return;
136
+ }
137
+ let i = 0;
138
+ const ms = 100;
139
+ const interval = setInterval(() => {
140
+ i++;
141
+ if (i > 100) {
142
+ clearInterval(interval);
143
+ throw new Error(
144
+ "Unable to load Ory's WebAuthn script. Is it being blocked or otherwise failing to load? If you are running an old version of Ory Elements, please upgrade. For more information, please check your browser's developer console."
145
+ );
146
+ }
147
+ const fn2 = triggerToFunction(trigger);
148
+ if (fn2) {
149
+ clearInterval(interval);
150
+ return fn2();
151
+ }
152
+ }, ms);
153
+ return;
154
+ }
155
+ function triggerToFunction(trigger) {
156
+ if (typeof window === "undefined") {
157
+ console.debug(
158
+ "The Ory SDK is missing a required function: window is undefined."
159
+ );
160
+ return void 0;
161
+ }
162
+ const typedWindow = window;
163
+ if (!(trigger in typedWindow) || !typedWindow[trigger]) {
164
+ console.debug(`The Ory SDK is missing a required function: ${trigger}.`);
165
+ return void 0;
166
+ }
167
+ const triggerFn = typedWindow[trigger];
168
+ if (typeof triggerFn !== "function") {
169
+ console.debug(
170
+ `The Ory SDK is missing a required function: ${trigger}. It is not a function.`
171
+ );
172
+ return void 0;
173
+ }
174
+ return triggerFn;
175
+ }
176
+ function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
177
+ var _a;
178
+ const groups = {};
179
+ for (const node of nodes) {
180
+ if (node.type === "script") {
181
+ continue;
182
+ }
183
+ const groupNodes = (_a = groups[node.group]) != null ? _a : [];
184
+ groupNodes.push(node);
185
+ groups[node.group] = groupNodes;
186
+ }
187
+ return Object.values(UiNodeGroupEnum2).filter((group) => {
188
+ var _a2;
189
+ return (_a2 = groups[group]) == null ? void 0 : _a2.length;
190
+ }).filter(
191
+ (group) => ![
192
+ UiNodeGroupEnum2.Default,
193
+ UiNodeGroupEnum2.IdentifierFirst,
194
+ UiNodeGroupEnum2.Profile,
195
+ UiNodeGroupEnum2.Captcha,
196
+ ...excludeAuthMethods
197
+ ].includes(group)
198
+ );
199
+ }
78
200
 
79
201
  // src/theme/default/components/card/footer.tsx
80
- import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
202
+ import { Fragment, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
81
203
  function DefaultCardFooter() {
82
204
  const { flowType } = useOryFlow();
83
205
  switch (flowType) {
84
206
  case FlowType.Login:
85
- return /* @__PURE__ */ jsx4(LoginCardFooter, {});
207
+ return /* @__PURE__ */ jsx5(LoginCardFooter, {});
86
208
  case FlowType.Registration:
87
- return /* @__PURE__ */ jsx4(RegistrationCardFooter, {});
209
+ return /* @__PURE__ */ jsx5(RegistrationCardFooter, {});
88
210
  case FlowType.Recovery:
89
- return /* @__PURE__ */ jsx4(RecoveryCardFooter, {});
211
+ return /* @__PURE__ */ jsx5(RecoveryCardFooter, {});
90
212
  case FlowType.Verification:
91
- return /* @__PURE__ */ jsx4(VerificationCardFooter, {});
213
+ return /* @__PURE__ */ jsx5(VerificationCardFooter, {});
92
214
  default:
93
215
  return null;
94
216
  }
95
217
  }
96
218
  function LoginCardFooter() {
97
- const { config, formState, flow } = useOryFlow();
219
+ const { config, formState, flow, flowType } = useOryFlow();
98
220
  const intl = useIntl();
99
- if (!config.project.registration_enabled || formState.current !== "provide_identifier") {
221
+ const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
222
+ if (flowType === FlowType.Login && flow.refresh) {
100
223
  return null;
101
224
  }
102
- return /* @__PURE__ */ jsxs4("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
103
- intl.formatMessage({
104
- id: "login.registration-label",
105
- defaultMessage: "No account?"
106
- }),
107
- " ",
108
- /* @__PURE__ */ jsx4(
225
+ return /* @__PURE__ */ jsxs4(Fragment, { children: [
226
+ formState.current === "provide_identifier" && /* @__PURE__ */ jsxs4("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
227
+ intl.formatMessage({
228
+ id: "login.registration-label",
229
+ defaultMessage: "No account?"
230
+ }),
231
+ " ",
232
+ /* @__PURE__ */ jsx5(
233
+ "a",
234
+ {
235
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
236
+ href: initFlowUrl(config.sdk.url, "registration", flow),
237
+ "data-testid": "ory/screen/registration/action/login",
238
+ children: intl.formatMessage({
239
+ id: "login.registration-button",
240
+ defaultMessage: "Sign up"
241
+ })
242
+ }
243
+ )
244
+ ] }),
245
+ authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ jsx5("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx5(
109
246
  "a",
110
247
  {
111
248
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
112
- href: initFlowUrl(config.sdk.url, "registration", flow),
113
- "data-testid": "ory/screen/registration/action/login",
249
+ href: "",
250
+ "data-testid": "ory/screen/login/mfa/action/selectMethod",
114
251
  children: intl.formatMessage({
115
- id: "login.registration-button",
116
- defaultMessage: "Sign up"
252
+ id: "login.2fa.method.go-back"
117
253
  })
118
254
  }
119
- )
255
+ ) }),
256
+ authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ jsx5("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx5(
257
+ "a",
258
+ {
259
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
260
+ href: restartFlowUrl(
261
+ flow,
262
+ `${config.sdk.url}/self-service/${flowType}/browser`
263
+ ),
264
+ "data-testid": "ory/screen/login/mfa/action/reauthenticate",
265
+ children: intl.formatMessage({
266
+ id: "login.2fa.go-back.link"
267
+ })
268
+ }
269
+ ) }),
270
+ flowType === FlowType.Login && flow.requested_aal === "aal2" && (formState.current === "select_method" || authMethods.length === 0) && /* @__PURE__ */ jsxs4("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: [
271
+ intl.formatMessage({
272
+ id: "login.2fa.go-back"
273
+ }),
274
+ " ",
275
+ /* @__PURE__ */ jsx5(
276
+ "a",
277
+ {
278
+ className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
279
+ href: restartFlowUrl(
280
+ flow,
281
+ `${config.sdk.url}/self-service/${flowType}/browser`
282
+ ),
283
+ "data-testid": "ory/screen/login/mfa/action/reauthenticate",
284
+ children: intl.formatMessage({
285
+ id: "login.2fa.go-back.link"
286
+ })
287
+ }
288
+ )
289
+ ] })
120
290
  ] });
121
291
  }
122
292
  function findScreenSelectionButton(nodes) {
@@ -141,7 +311,7 @@ function RegistrationCardFooter() {
141
311
  );
142
312
  }
143
313
  }
144
- return /* @__PURE__ */ jsx4("span", { className: "font-normal leading-normal antialiased", children: formState.current === "method_active" ? /* @__PURE__ */ jsx4(Fragment, { children: screenSelectionNode && /* @__PURE__ */ jsx4(
314
+ return /* @__PURE__ */ jsx5("span", { className: "font-normal leading-normal antialiased", children: formState.current === "method_active" ? /* @__PURE__ */ jsx5(Fragment, { children: screenSelectionNode && /* @__PURE__ */ jsx5(
145
315
  "button",
146
316
  {
147
317
  className: "font-medium text-button-link-brand-brand hover:text-button-link-brand-brand-hover",
@@ -160,7 +330,7 @@ function RegistrationCardFooter() {
160
330
  defaultMessage: "Already have an account?"
161
331
  }),
162
332
  " ",
163
- /* @__PURE__ */ jsx4(
333
+ /* @__PURE__ */ jsx5(
164
334
  "a",
165
335
  {
166
336
  className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
@@ -182,12 +352,12 @@ function VerificationCardFooter() {
182
352
  }
183
353
 
184
354
  // src/theme/default/components/card/header.tsx
185
- import { useComponents, useOryFlow as useOryFlow3 } from "@ory/elements-react";
355
+ import { useComponents as useComponents2, useOryFlow as useOryFlow3 } from "@ory/elements-react";
186
356
 
187
357
  // src/theme/default/utils/constructCardHeader.ts
188
358
  import {
189
359
  FlowType as FlowType2,
190
- isUiNodeInputAttributes
360
+ isUiNodeInputAttributes as isUiNodeInputAttributes2
191
361
  } from "@ory/client-fetch";
192
362
  import { useIntl as useIntl2 } from "react-intl";
193
363
  function joinWithCommaOr(list, orText = "or") {
@@ -201,7 +371,7 @@ function joinWithCommaOr(list, orText = "or") {
201
371
  }
202
372
  }
203
373
  function useCardHeaderText(container, opts) {
204
- var _a, _b;
374
+ var _a, _b, _c;
205
375
  const nodes = container.nodes;
206
376
  const intl = useIntl2();
207
377
  switch (opts.flowType) {
@@ -315,7 +485,7 @@ function useCardHeaderText(container, opts) {
315
485
  }
316
486
  if (nodes.find((node) => node.group === "identifier_first")) {
317
487
  const identifier = nodes.find(
318
- (node) => isUiNodeInputAttributes(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
488
+ (node) => isUiNodeInputAttributes2(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
319
489
  );
320
490
  if (identifier) {
321
491
  parts.push(
@@ -346,6 +516,15 @@ function useCardHeaderText(container, opts) {
346
516
  }
347
517
  )
348
518
  };
519
+ } else if (opts.flow.requested_aal === "aal2") {
520
+ return {
521
+ title: intl.formatMessage({
522
+ id: "login.title-aal2"
523
+ }),
524
+ description: intl.formatMessage({
525
+ id: ((_c = opts.formState) == null ? void 0 : _c.current) === "method_active" ? `login.${opts.formState.method}.subtitle` : "login.subtitle-aal2"
526
+ })
527
+ };
349
528
  }
350
529
  return {
351
530
  title: intl.formatMessage({
@@ -393,10 +572,10 @@ import { useOryFlow as useOryFlow2 } from "@ory/elements-react";
393
572
 
394
573
  // src/theme/default/assets/icons/arrow-left.svg
395
574
  import * as React3 from "react";
396
- import { jsx as jsx5 } from "react/jsx-runtime";
575
+ import { jsx as jsx6 } from "react/jsx-runtime";
397
576
  var SvgArrowLeft = (props) => {
398
577
  var _a, _b;
399
- return /* @__PURE__ */ jsx5("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__ */ jsx5("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
578
+ return /* @__PURE__ */ jsx6("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__ */ jsx6("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
400
579
  };
401
580
  var arrow_left_default = SvgArrowLeft;
402
581
 
@@ -410,13 +589,16 @@ function omit(obj, keys) {
410
589
  }
411
590
 
412
591
  // src/theme/default/components/card/current-identifier-button.tsx
413
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
592
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
414
593
  function DefaultCurrentIdentifierButton() {
415
594
  const { flow, flowType, config, formState } = useOryFlow2();
416
595
  const ui = flow.ui;
417
596
  if (formState.current === "provide_identifier") {
418
597
  return null;
419
598
  }
599
+ if (flowType === FlowType3.Login && flow.requested_aal === "aal2") {
600
+ return null;
601
+ }
420
602
  const nodeBackButton = getBackButtonNode(flowType, ui.nodes);
421
603
  if ((nodeBackButton == null ? void 0 : nodeBackButton.attributes.node_type) !== "input" || !nodeBackButton.attributes.value) {
422
604
  return null;
@@ -430,7 +612,7 @@ function DefaultCurrentIdentifierButton() {
430
612
  "node_type",
431
613
  "maxlength"
432
614
  ]);
433
- return /* @__PURE__ */ jsx6(
615
+ return /* @__PURE__ */ jsx7(
434
616
  "a",
435
617
  {
436
618
  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",
@@ -439,7 +621,7 @@ function DefaultCurrentIdentifierButton() {
439
621
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
440
622
  "data-testid": "ory/screen/login/action/restart",
441
623
  children: /* @__PURE__ */ jsxs5("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
442
- /* @__PURE__ */ jsx6(
624
+ /* @__PURE__ */ jsx7(
443
625
  arrow_left_default,
444
626
  {
445
627
  size: 16,
@@ -447,7 +629,7 @@ function DefaultCurrentIdentifierButton() {
447
629
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
448
630
  }
449
631
  ),
450
- /* @__PURE__ */ jsx6("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.attributes.value })
632
+ /* @__PURE__ */ jsx7("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.attributes.value })
451
633
  ] })
452
634
  }
453
635
  );
@@ -484,47 +666,47 @@ function guessRegistrationBackButton(uiNodes) {
484
666
  }
485
667
 
486
668
  // src/theme/default/components/card/header.tsx
487
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
669
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
488
670
  function InnerCardHeader({ title, text }) {
489
- const { Card } = useComponents();
671
+ const { Card } = useComponents2();
490
672
  return /* @__PURE__ */ jsxs6("header", { className: "flex flex-col gap-8 antialiased", children: [
491
- /* @__PURE__ */ jsx7(Card.Logo, {}),
673
+ /* @__PURE__ */ jsx8(Card.Logo, {}),
492
674
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
493
- /* @__PURE__ */ jsx7("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
494
- /* @__PURE__ */ jsx7("p", { className: "leading-normal text-interface-foreground-default-secondary", children: text }),
495
- /* @__PURE__ */ jsx7(DefaultCurrentIdentifierButton, {})
675
+ /* @__PURE__ */ jsx8("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: title }),
676
+ /* @__PURE__ */ jsx8("p", { className: "leading-normal text-interface-foreground-default-secondary", children: text }),
677
+ /* @__PURE__ */ jsx8(DefaultCurrentIdentifierButton, {})
496
678
  ] })
497
679
  ] });
498
680
  }
499
681
  function DefaultCardHeader() {
500
682
  const context = useOryFlow3();
501
683
  const { title, description } = useCardHeaderText(context.flow.ui, context);
502
- return /* @__PURE__ */ jsx7(InnerCardHeader, { title, text: description });
684
+ return /* @__PURE__ */ jsx8(InnerCardHeader, { title, text: description });
503
685
  }
504
686
 
505
687
  // src/theme/default/components/card/logo.tsx
506
688
  import { useOryFlow as useOryFlow4 } from "@ory/elements-react";
507
- import { jsx as jsx8 } from "react/jsx-runtime";
689
+ import { jsx as jsx9 } from "react/jsx-runtime";
508
690
  function DefaultCardLogo() {
509
691
  const flow = useOryFlow4();
510
692
  if (flow.config.logoUrl) {
511
- return /* @__PURE__ */ jsx8("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
693
+ return /* @__PURE__ */ jsx9("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
512
694
  }
513
- return /* @__PURE__ */ jsx8("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: flow.config.name });
695
+ return /* @__PURE__ */ jsx9("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: flow.config.name });
514
696
  }
515
697
 
516
698
  // src/theme/default/components/card/layout.tsx
517
- import { jsx as jsx9 } from "react/jsx-runtime";
699
+ import { jsx as jsx10 } from "react/jsx-runtime";
518
700
  function DefaultCardLayout({ children }) {
519
- return /* @__PURE__ */ jsx9("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
701
+ return /* @__PURE__ */ jsx10("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
520
702
  }
521
703
 
522
704
  // src/theme/default/components/card/index.tsx
523
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
705
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
524
706
  function DefaultCard({ children }) {
525
- return /* @__PURE__ */ jsx10("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__ */ jsxs7("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: [
707
+ return /* @__PURE__ */ jsx11("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__ */ jsxs7("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: [
526
708
  children,
527
- /* @__PURE__ */ jsx10(Badge, {})
709
+ /* @__PURE__ */ jsx11(Badge, {})
528
710
  ] }) });
529
711
  }
530
712
 
@@ -556,45 +738,45 @@ import { useDebounceValue } from "usehooks-ts";
556
738
 
557
739
  // src/theme/default/provider-logos/apple.svg
558
740
  import * as React4 from "react";
559
- import { jsx as jsx11 } from "react/jsx-runtime";
741
+ import { jsx as jsx12 } from "react/jsx-runtime";
560
742
  var SvgApple = (props) => {
561
743
  var _a, _b;
562
- return /* @__PURE__ */ jsx11("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__ */ jsx11("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" }) });
744
+ return /* @__PURE__ */ jsx12("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__ */ jsx12("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" }) });
563
745
  };
564
746
  var apple_default = SvgApple;
565
747
 
566
748
  // src/theme/default/provider-logos/auth0.svg
567
749
  import * as React5 from "react";
568
- import { jsx as jsx12 } from "react/jsx-runtime";
750
+ import { jsx as jsx13 } from "react/jsx-runtime";
569
751
  var SvgAuth0 = (props) => {
570
752
  var _a, _b;
571
- return /* @__PURE__ */ jsx12("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__ */ jsx12("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" }) });
753
+ return /* @__PURE__ */ jsx13("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__ */ jsx13("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" }) });
572
754
  };
573
755
  var auth0_default = SvgAuth0;
574
756
 
575
757
  // src/theme/default/provider-logos/discord.svg
576
758
  import * as React6 from "react";
577
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
759
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
578
760
  var SvgDiscord = (props) => {
579
761
  var _a, _b;
580
762
  return /* @__PURE__ */ jsxs8("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: [
581
- /* @__PURE__ */ jsx13("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" }),
582
- /* @__PURE__ */ jsx13("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" })
763
+ /* @__PURE__ */ jsx14("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" }),
764
+ /* @__PURE__ */ jsx14("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" })
583
765
  ] });
584
766
  };
585
767
  var discord_default = SvgDiscord;
586
768
 
587
769
  // src/theme/default/provider-logos/facebook.svg
588
770
  import * as React7 from "react";
589
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
771
+ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
590
772
  var SvgFacebook = (props) => {
591
773
  var _a, _b;
592
774
  return /* @__PURE__ */ jsxs9("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: [
593
- /* @__PURE__ */ jsx14("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
594
- /* @__PURE__ */ jsx14("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" }),
595
- /* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsxs9("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
596
- /* @__PURE__ */ jsx14("stop", { stopColor: "#18ACFE" }),
597
- /* @__PURE__ */ jsx14("stop", { offset: 1, stopColor: "#0163E0" })
775
+ /* @__PURE__ */ jsx15("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
776
+ /* @__PURE__ */ jsx15("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" }),
777
+ /* @__PURE__ */ jsx15("defs", { children: /* @__PURE__ */ jsxs9("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
778
+ /* @__PURE__ */ jsx15("stop", { stopColor: "#18ACFE" }),
779
+ /* @__PURE__ */ jsx15("stop", { offset: 1, stopColor: "#0163E0" })
598
780
  ] }) })
599
781
  ] });
600
782
  };
@@ -602,124 +784,124 @@ var facebook_default = SvgFacebook;
602
784
 
603
785
  // src/theme/default/provider-logos/generic.svg
604
786
  import * as React8 from "react";
605
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
787
+ import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
606
788
  var SvgGeneric = (props) => {
607
789
  var _a, _b;
608
790
  return /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, className: "generic_svg__icon generic_svg__icon-tabler generic_svg__icon-tabler-brand-oauth", 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: [
609
- /* @__PURE__ */ jsx15("path", { stroke: "none", d: "M0 0h24v24H0z" }),
610
- /* @__PURE__ */ jsx15("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
611
- /* @__PURE__ */ jsx15("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
791
+ /* @__PURE__ */ jsx16("path", { stroke: "none", d: "M0 0h24v24H0z" }),
792
+ /* @__PURE__ */ jsx16("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
793
+ /* @__PURE__ */ jsx16("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
612
794
  ] });
613
795
  };
614
796
  var generic_default = SvgGeneric;
615
797
 
616
798
  // src/theme/default/provider-logos/github.svg
617
799
  import * as React9 from "react";
618
- import { jsx as jsx16 } from "react/jsx-runtime";
800
+ import { jsx as jsx17 } from "react/jsx-runtime";
619
801
  var SvgGithub = (props) => {
620
802
  var _a, _b;
621
- return /* @__PURE__ */ jsx16("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__ */ jsx16("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" }) });
803
+ return /* @__PURE__ */ jsx17("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__ */ jsx17("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" }) });
622
804
  };
623
805
  var github_default = SvgGithub;
624
806
 
625
807
  // src/theme/default/provider-logos/gitlab.svg
626
808
  import * as React10 from "react";
627
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
809
+ import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
628
810
  var SvgGitlab = (props) => {
629
811
  var _a, _b;
630
812
  return /* @__PURE__ */ jsxs11("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: [
631
- /* @__PURE__ */ jsx17("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" }),
632
- /* @__PURE__ */ jsx17("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" }),
633
- /* @__PURE__ */ jsx17("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" }),
634
- /* @__PURE__ */ jsx17("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" })
813
+ /* @__PURE__ */ jsx18("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" }),
814
+ /* @__PURE__ */ jsx18("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" }),
815
+ /* @__PURE__ */ jsx18("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" }),
816
+ /* @__PURE__ */ jsx18("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" })
635
817
  ] });
636
818
  };
637
819
  var gitlab_default = SvgGitlab;
638
820
 
639
821
  // src/theme/default/provider-logos/google.svg
640
822
  import * as React11 from "react";
641
- import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
823
+ import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
642
824
  var SvgGoogle = (props) => {
643
825
  var _a, _b;
644
826
  return /* @__PURE__ */ jsxs12("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: [
645
- /* @__PURE__ */ jsx18("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" }),
646
- /* @__PURE__ */ jsx18("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" }),
647
- /* @__PURE__ */ jsx18("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" }),
648
- /* @__PURE__ */ jsx18("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" })
827
+ /* @__PURE__ */ jsx19("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" }),
828
+ /* @__PURE__ */ jsx19("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" }),
829
+ /* @__PURE__ */ jsx19("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" }),
830
+ /* @__PURE__ */ jsx19("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" })
649
831
  ] });
650
832
  };
651
833
  var google_default = SvgGoogle;
652
834
 
653
835
  // src/theme/default/provider-logos/linkedin.svg
654
836
  import * as React12 from "react";
655
- import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
837
+ import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
656
838
  var SvgLinkedin = (props) => {
657
839
  var _a, _b;
658
840
  return /* @__PURE__ */ jsxs13("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: [
659
- /* @__PURE__ */ jsx19("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
660
- /* @__PURE__ */ jsx19("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" })
841
+ /* @__PURE__ */ jsx20("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
842
+ /* @__PURE__ */ jsx20("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" })
661
843
  ] });
662
844
  };
663
845
  var linkedin_default = SvgLinkedin;
664
846
 
665
847
  // src/theme/default/provider-logos/microsoft.svg
666
848
  import * as React13 from "react";
667
- import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
849
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
668
850
  var SvgMicrosoft = (props) => {
669
851
  var _a, _b;
670
852
  return /* @__PURE__ */ jsxs14("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: [
671
- /* @__PURE__ */ jsx20("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
672
- /* @__PURE__ */ jsx20("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
673
- /* @__PURE__ */ jsx20("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
674
- /* @__PURE__ */ jsx20("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
853
+ /* @__PURE__ */ jsx21("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
854
+ /* @__PURE__ */ jsx21("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
855
+ /* @__PURE__ */ jsx21("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
856
+ /* @__PURE__ */ jsx21("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
675
857
  ] });
676
858
  };
677
859
  var microsoft_default = SvgMicrosoft;
678
860
 
679
861
  // src/theme/default/provider-logos/slack.svg
680
862
  import * as React14 from "react";
681
- import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
863
+ import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
682
864
  var SvgSlack = (props) => {
683
865
  var _a, _b;
684
866
  return /* @__PURE__ */ jsxs15("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: [
685
- /* @__PURE__ */ jsx21("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" }),
686
- /* @__PURE__ */ jsx21("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" }),
687
- /* @__PURE__ */ jsx21("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" }),
688
- /* @__PURE__ */ jsx21("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" })
867
+ /* @__PURE__ */ jsx22("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" }),
868
+ /* @__PURE__ */ jsx22("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" }),
869
+ /* @__PURE__ */ jsx22("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" }),
870
+ /* @__PURE__ */ jsx22("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" })
689
871
  ] });
690
872
  };
691
873
  var slack_default = SvgSlack;
692
874
 
693
875
  // src/theme/default/provider-logos/spotify.svg
694
876
  import * as React15 from "react";
695
- import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
877
+ import { jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
696
878
  var SvgSpotify = (props) => {
697
879
  var _a, _b;
698
880
  return /* @__PURE__ */ jsxs16("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: [
699
- /* @__PURE__ */ jsx22("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
700
- /* @__PURE__ */ jsx22("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" })
881
+ /* @__PURE__ */ jsx23("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
882
+ /* @__PURE__ */ jsx23("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" })
701
883
  ] });
702
884
  };
703
885
  var spotify_default = SvgSpotify;
704
886
 
705
887
  // src/theme/default/provider-logos/yandex.svg
706
888
  import * as React16 from "react";
707
- import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
889
+ import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
708
890
  var SvgYandex = (props) => {
709
891
  var _a, _b;
710
892
  return /* @__PURE__ */ jsxs17("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: [
711
- /* @__PURE__ */ jsx23("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
712
- /* @__PURE__ */ jsx23("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" })
893
+ /* @__PURE__ */ jsx24("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
894
+ /* @__PURE__ */ jsx24("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" })
713
895
  ] });
714
896
  };
715
897
  var yandex_default = SvgYandex;
716
898
 
717
899
  // src/theme/default/provider-logos/x.svg
718
900
  import * as React17 from "react";
719
- import { jsx as jsx24 } from "react/jsx-runtime";
901
+ import { jsx as jsx25 } from "react/jsx-runtime";
720
902
  var SvgX = (props) => {
721
903
  var _a, _b;
722
- return /* @__PURE__ */ jsx24("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__ */ jsx24("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" }) });
904
+ return /* @__PURE__ */ jsx25("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__ */ jsx25("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" }) });
723
905
  };
724
906
  var x_default = SvgX;
725
907
 
@@ -743,7 +925,7 @@ var logos = {
743
925
  var provider_logos_default = logos;
744
926
 
745
927
  // src/theme/default/components/form/spinner.tsx
746
- import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
928
+ import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
747
929
  function Spinner({ className }) {
748
930
  return /* @__PURE__ */ jsxs18(
749
931
  "svg",
@@ -758,7 +940,7 @@ function Spinner({ className }) {
758
940
  fill: "none",
759
941
  xmlns: "http://www.w3.org/2000/svg",
760
942
  children: [
761
- /* @__PURE__ */ jsx25("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx25(
943
+ /* @__PURE__ */ jsx26("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx26(
762
944
  "path",
763
945
  {
764
946
  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",
@@ -767,7 +949,7 @@ function Spinner({ className }) {
767
949
  strokeLinejoin: "round"
768
950
  }
769
951
  ) }),
770
- /* @__PURE__ */ jsx25("defs", { children: /* @__PURE__ */ jsx25("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx25(
952
+ /* @__PURE__ */ jsx26("defs", { children: /* @__PURE__ */ jsx26("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx26(
771
953
  "rect",
772
954
  {
773
955
  width: "24",
@@ -782,7 +964,7 @@ function Spinner({ className }) {
782
964
  }
783
965
 
784
966
  // src/theme/default/components/form/social.tsx
785
- import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
967
+ import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
786
968
  function extractProvider(context) {
787
969
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
788
970
  return context.provider;
@@ -838,21 +1020,21 @@ function DefaultButtonSocial({
838
1020
  "data-loading": clicked,
839
1021
  disabled: isSubmitting,
840
1022
  children: [
841
- /* @__PURE__ */ jsx26("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx26(Logo, { size: 20 }) : /* @__PURE__ */ jsx26("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx26(Spinner, { className: "size-5" }) }),
1023
+ /* @__PURE__ */ jsx27("span", { className: "size-5 relative", children: !clicked ? Logo ? /* @__PURE__ */ jsx27(Logo, { size: 20 }) : /* @__PURE__ */ jsx27("span", { className: "flex aspect-square items-center justify-center rounded-[999px] border text-xs", children: provider.slice(0, 2) }) : /* @__PURE__ */ jsx27(Spinner, { className: "size-5" }) }),
842
1024
  showLabel && node.meta.label ? /* @__PURE__ */ jsxs19(Fragment2, { children: [
843
- /* @__PURE__ */ jsx26("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }),
844
- /* @__PURE__ */ jsx26("span", { className: "size-5 block" })
1025
+ /* @__PURE__ */ jsx27("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: uiTextToFormattedMessage(node.meta.label, intl) }),
1026
+ /* @__PURE__ */ jsx27("span", { className: "size-5 block" })
845
1027
  ] }) : null
846
1028
  ]
847
1029
  }
848
1030
  );
849
1031
  }
850
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx26(DefaultButtonSocial, { ...props, logos: logos2 });
1032
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx27(DefaultButtonSocial, { ...props, logos: logos2 });
851
1033
  function DefaultSocialButtonContainer({
852
1034
  children,
853
1035
  nodes
854
1036
  }) {
855
- return /* @__PURE__ */ jsx26(
1037
+ return /* @__PURE__ */ jsx27(
856
1038
  "div",
857
1039
  {
858
1040
  className: cn("grid gap-3", {
@@ -867,14 +1049,14 @@ function DefaultSocialButtonContainer({
867
1049
  }
868
1050
 
869
1051
  // src/theme/default/components/form/index.tsx
870
- import { jsx as jsx27 } from "react/jsx-runtime";
1052
+ import { jsx as jsx28 } from "react/jsx-runtime";
871
1053
  function DefaultFormContainer({
872
1054
  children,
873
1055
  onSubmit,
874
1056
  action,
875
1057
  method
876
1058
  }) {
877
- return /* @__PURE__ */ jsx27(
1059
+ return /* @__PURE__ */ jsx28(
878
1060
  "form",
879
1061
  {
880
1062
  onSubmit,
@@ -891,7 +1073,7 @@ function DefaultMessageContainer({ children }) {
891
1073
  if (!children || Array.isArray(children) && children.length === 0) {
892
1074
  return null;
893
1075
  }
894
- return /* @__PURE__ */ jsx27(
1076
+ return /* @__PURE__ */ jsx28(
895
1077
  "section",
896
1078
  {
897
1079
  className: cn(
@@ -903,7 +1085,7 @@ function DefaultMessageContainer({ children }) {
903
1085
  }
904
1086
  function DefaultMessage({ message }) {
905
1087
  const intl = useIntl4();
906
- return /* @__PURE__ */ jsx27(
1088
+ return /* @__PURE__ */ jsx28(
907
1089
  "span",
908
1090
  {
909
1091
  className: cn(
@@ -923,58 +1105,81 @@ import { useIntl as useIntl5 } from "react-intl";
923
1105
 
924
1106
  // src/theme/default/assets/icons/code.svg
925
1107
  import * as React18 from "react";
926
- import { jsx as jsx28 } from "react/jsx-runtime";
1108
+ import { jsx as jsx29 } from "react/jsx-runtime";
927
1109
  var SvgCode = (props) => {
928
1110
  var _a, _b;
929
- return /* @__PURE__ */ jsx28("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__ */ jsx28("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" }) });
1111
+ return /* @__PURE__ */ jsx29("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__ */ jsx29("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" }) });
930
1112
  };
931
1113
  var code_default = SvgCode;
932
1114
 
933
1115
  // src/theme/default/assets/icons/passkey.svg
934
1116
  import * as React19 from "react";
935
- import { jsx as jsx29 } from "react/jsx-runtime";
1117
+ import { jsx as jsx30 } from "react/jsx-runtime";
936
1118
  var SvgPasskey = (props) => {
937
1119
  var _a, _b;
938
- return /* @__PURE__ */ jsx29("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__ */ jsx29("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" }) });
1120
+ return /* @__PURE__ */ jsx30("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__ */ jsx30("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" }) });
939
1121
  };
940
1122
  var passkey_default = SvgPasskey;
941
1123
 
942
1124
  // src/theme/default/assets/icons/password.svg
943
1125
  import * as React20 from "react";
944
- import { jsx as jsx30 } from "react/jsx-runtime";
1126
+ import { jsx as jsx31 } from "react/jsx-runtime";
945
1127
  var SvgPassword = (props) => {
946
1128
  var _a, _b;
947
- return /* @__PURE__ */ jsx30("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__ */ jsx30("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" }) });
1129
+ return /* @__PURE__ */ jsx31("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__ */ jsx31("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" }) });
948
1130
  };
949
1131
  var password_default = SvgPassword;
950
1132
 
951
1133
  // src/theme/default/assets/icons/webauthn.svg
952
1134
  import * as React21 from "react";
953
- import { jsx as jsx31 } from "react/jsx-runtime";
1135
+ import { jsx as jsx32 } from "react/jsx-runtime";
954
1136
  var SvgWebauthn = (props) => {
955
1137
  var _a, _b;
956
- return /* @__PURE__ */ jsx31("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__ */ jsx31("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" }) });
1138
+ return /* @__PURE__ */ jsx32("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__ */ jsx32("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" }) });
957
1139
  };
958
1140
  var webauthn_default = SvgWebauthn;
959
1141
 
1142
+ // src/theme/default/assets/icons/totp.svg
1143
+ import * as React22 from "react";
1144
+ import { jsx as jsx33 } from "react/jsx-runtime";
1145
+ var SvgTotp = (props) => {
1146
+ var _a, _b;
1147
+ return /* @__PURE__ */ jsx33("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__ */ jsx33("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" }) });
1148
+ };
1149
+ var totp_default = SvgTotp;
1150
+
1151
+ // src/theme/default/assets/icons/code-asterix.svg
1152
+ import * as React23 from "react";
1153
+ import { jsx as jsx34 } from "react/jsx-runtime";
1154
+ var SvgCodeAsterix = (props) => {
1155
+ var _a, _b;
1156
+ return /* @__PURE__ */ jsx34("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__ */ jsx34("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" }) });
1157
+ };
1158
+ var code_asterix_default = SvgCodeAsterix;
1159
+
960
1160
  // src/theme/default/utils/form.ts
961
1161
  function isGroupImmediateSubmit(group) {
962
1162
  return group === "code";
963
1163
  }
964
1164
 
965
1165
  // src/theme/default/components/card/auth-method-list-item.tsx
966
- import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
1166
+ import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
967
1167
  var iconsMap = {
968
1168
  code: code_default,
969
1169
  passkey: passkey_default,
970
1170
  password: password_default,
971
1171
  webauthn: webauthn_default,
1172
+ hardware_token: passkey_default,
1173
+ totp: totp_default,
1174
+ lookup_secret: code_asterix_default,
972
1175
  ...provider_logos_default
973
1176
  };
974
1177
  function DefaultAuthMethodListItem({
975
1178
  onClick,
976
- group
1179
+ group,
1180
+ title
977
1181
  }) {
1182
+ var _a;
978
1183
  const intl = useIntl5();
979
1184
  const Icon = iconsMap[group] || null;
980
1185
  return /* @__PURE__ */ jsxs20(
@@ -985,10 +1190,16 @@ function DefaultAuthMethodListItem({
985
1190
  type: isGroupImmediateSubmit(group) ? "submit" : "button",
986
1191
  "data-testid": `ory/form/auth-picker/${group}`,
987
1192
  children: [
988
- /* @__PURE__ */ jsx32("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx32(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
989
- /* @__PURE__ */ jsxs20("span", { className: "flex-1 leading-normal inline-flex flex-col", children: [
990
- /* @__PURE__ */ jsx32("span", { className: "text-interface-foreground-default-primary", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
991
- /* @__PURE__ */ jsx32("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({
1193
+ /* @__PURE__ */ jsx35("span", { className: "mt-1", children: Icon && /* @__PURE__ */ jsx35(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
1194
+ /* @__PURE__ */ jsxs20("span", { className: "flex-1 leading-normal inline-flex flex-col w-full", children: [
1195
+ /* @__PURE__ */ jsxs20("span", { className: "text-interface-foreground-default-primary truncate mr-6", children: [
1196
+ intl.formatMessage(
1197
+ { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
1198
+ title == null ? void 0 : title.values
1199
+ ),
1200
+ " "
1201
+ ] }),
1202
+ /* @__PURE__ */ jsx35("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({
992
1203
  id: `two-step.${group}.description`
993
1204
  }) })
994
1205
  ] })
@@ -1006,7 +1217,7 @@ import { cva } from "class-variance-authority";
1006
1217
  import { useFormContext as useFormContext3 } from "react-hook-form";
1007
1218
  import { useIntl as useIntl6 } from "react-intl";
1008
1219
  import { useEffect as useEffect2, useState } from "react";
1009
- import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
1220
+ import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
1010
1221
  var buttonStyles = cva(
1011
1222
  [
1012
1223
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -1090,8 +1301,8 @@ var DefaultButton = ({
1090
1301
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
1091
1302
  "data-loading": clicked,
1092
1303
  children: [
1093
- clicked ? /* @__PURE__ */ jsx33(Spinner, {}) : null,
1094
- label ? /* @__PURE__ */ jsx33("span", { children: uiTextToFormattedMessage3(label, intl) }) : ""
1304
+ clicked ? /* @__PURE__ */ jsx36(Spinner, {}) : null,
1305
+ label ? /* @__PURE__ */ jsx36("span", { children: uiTextToFormattedMessage3(label, intl) }) : ""
1095
1306
  ]
1096
1307
  }
1097
1308
  );
@@ -1167,7 +1378,7 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
1167
1378
  };
1168
1379
 
1169
1380
  // src/theme/default/components/ui/checkbox-label.tsx
1170
- import { Fragment as Fragment3, jsx as jsx34 } from "react/jsx-runtime";
1381
+ import { Fragment as Fragment3, jsx as jsx37 } from "react/jsx-runtime";
1171
1382
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
1172
1383
  function computeLabelElements(labelText) {
1173
1384
  const elements = [];
@@ -1183,7 +1394,7 @@ function computeLabelElements(labelText) {
1183
1394
  elements.push(labelText.slice(lastIndex, matchStart));
1184
1395
  }
1185
1396
  elements.push(
1186
- /* @__PURE__ */ jsx34(
1397
+ /* @__PURE__ */ jsx37(
1187
1398
  "a",
1188
1399
  {
1189
1400
  href: url,
@@ -1208,13 +1419,13 @@ function CheckboxLabel({ label }) {
1208
1419
  return null;
1209
1420
  }
1210
1421
  const labelText = uiTextToFormattedMessage4(label, intl);
1211
- return /* @__PURE__ */ jsx34(Fragment3, { children: computeLabelElements(labelText) });
1422
+ return /* @__PURE__ */ jsx37(Fragment3, { children: computeLabelElements(labelText) });
1212
1423
  }
1213
1424
 
1214
1425
  // src/theme/default/components/form/checkbox.tsx
1215
- import { jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
1426
+ import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
1216
1427
  function CheckboxSVG() {
1217
- return /* @__PURE__ */ jsx35(
1428
+ return /* @__PURE__ */ jsx38(
1218
1429
  "svg",
1219
1430
  {
1220
1431
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -1223,7 +1434,7 @@ function CheckboxSVG() {
1223
1434
  height: "16",
1224
1435
  viewBox: "0 0 16 16",
1225
1436
  fill: "none",
1226
- children: /* @__PURE__ */ jsx35(
1437
+ children: /* @__PURE__ */ jsx38(
1227
1438
  "path",
1228
1439
  {
1229
1440
  fillRule: "evenodd",
@@ -1254,7 +1465,7 @@ var DefaultCheckbox = ({
1254
1465
  const hasError = node.messages.some((m) => m.type === "error");
1255
1466
  return /* @__PURE__ */ jsxs22("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
1256
1467
  /* @__PURE__ */ jsxs22("span", { className: "flex h-5 items-center", children: [
1257
- /* @__PURE__ */ jsx35(
1468
+ /* @__PURE__ */ jsx38(
1258
1469
  "input",
1259
1470
  {
1260
1471
  ...attributes,
@@ -1268,11 +1479,11 @@ var DefaultCheckbox = ({
1268
1479
  ...register(name, { value })
1269
1480
  }
1270
1481
  ),
1271
- /* @__PURE__ */ jsx35(CheckboxSVG, {})
1482
+ /* @__PURE__ */ jsx38(CheckboxSVG, {})
1272
1483
  ] }),
1273
1484
  /* @__PURE__ */ jsxs22("span", { className: "flex flex-col", children: [
1274
- /* @__PURE__ */ jsx35("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx35(CheckboxLabel, { label }) }),
1275
- node.messages.map((message) => /* @__PURE__ */ jsx35(
1485
+ /* @__PURE__ */ jsx38("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ jsx38(CheckboxLabel, { label }) }),
1486
+ node.messages.map((message) => /* @__PURE__ */ jsx38(
1276
1487
  "span",
1277
1488
  {
1278
1489
  className: cn(
@@ -1289,21 +1500,21 @@ var DefaultCheckbox = ({
1289
1500
  };
1290
1501
 
1291
1502
  // src/theme/default/components/form/group-container.tsx
1292
- import { jsx as jsx36 } from "react/jsx-runtime";
1503
+ import { jsx as jsx39 } from "react/jsx-runtime";
1293
1504
  function DefaultGroupContainer({ children }) {
1294
- return /* @__PURE__ */ jsx36("div", { className: "grid grid-cols-1 gap-8", children });
1505
+ return /* @__PURE__ */ jsx39("div", { className: "grid grid-cols-1 gap-8", children });
1295
1506
  }
1296
1507
 
1297
1508
  // src/theme/default/components/form/horizontal-divider.tsx
1298
- import { jsx as jsx37 } from "react/jsx-runtime";
1509
+ import { jsx as jsx40 } from "react/jsx-runtime";
1299
1510
  function DefaultHorizontalDivider() {
1300
- return /* @__PURE__ */ jsx37("hr", { className: "border-interface-border-default-primary" });
1511
+ return /* @__PURE__ */ jsx40("hr", { className: "border-interface-border-default-primary" });
1301
1512
  }
1302
1513
 
1303
1514
  // src/theme/default/components/form/image.tsx
1304
- import { jsx as jsx38 } from "react/jsx-runtime";
1515
+ import { jsx as jsx41 } from "react/jsx-runtime";
1305
1516
  function DefaultImage({ attributes }) {
1306
- return /* @__PURE__ */ jsx38("figure", { children: /* @__PURE__ */ jsx38("img", { ...attributes }) });
1517
+ return /* @__PURE__ */ jsx41("figure", { children: /* @__PURE__ */ jsx41("img", { ...attributes }) });
1307
1518
  }
1308
1519
 
1309
1520
  // src/theme/default/components/form/input.tsx
@@ -1312,9 +1523,33 @@ import {
1312
1523
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
1313
1524
  useOryFlow as useOryFlow7
1314
1525
  } from "@ory/elements-react";
1526
+ import { useRef, useState as useState2 } from "react";
1315
1527
  import { useFormContext as useFormContext4 } from "react-hook-form";
1316
1528
  import { useIntl as useIntl9 } from "react-intl";
1317
- import { jsx as jsx39 } from "react/jsx-runtime";
1529
+
1530
+ // src/theme/default/assets/icons/eye-off.svg
1531
+ import * as React24 from "react";
1532
+ import { jsx as jsx42 } from "react/jsx-runtime";
1533
+ var SvgEyeOff = (props) => {
1534
+ var _a, _b;
1535
+ return /* @__PURE__ */ jsx42("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__ */ jsx42("path", { stroke: "#000", 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" }) });
1536
+ };
1537
+ var eye_off_default = SvgEyeOff;
1538
+
1539
+ // src/theme/default/assets/icons/eye.svg
1540
+ import * as React25 from "react";
1541
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
1542
+ var SvgEye = (props) => {
1543
+ var _a, _b;
1544
+ return /* @__PURE__ */ jsx43("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__ */ jsxs23("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1545
+ /* @__PURE__ */ jsx43("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1546
+ /* @__PURE__ */ jsx43("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1547
+ ] }) });
1548
+ };
1549
+ var eye_default = SvgEye;
1550
+
1551
+ // src/theme/default/components/form/input.tsx
1552
+ import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
1318
1553
  var DefaultInput = ({
1319
1554
  node,
1320
1555
  attributes,
@@ -1332,6 +1567,7 @@ var DefaultInput = ({
1332
1567
  } = attributes;
1333
1568
  const intl = useIntl9();
1334
1569
  const { flowType } = useOryFlow7();
1570
+ const inputRef = useRef(null);
1335
1571
  const formattedLabel = label ? intl.formatMessage(
1336
1572
  {
1337
1573
  id: "input.placeholder",
@@ -1341,29 +1577,79 @@ var DefaultInput = ({
1341
1577
  placeholder: uiTextToFormattedMessage6(label, intl)
1342
1578
  }
1343
1579
  ) : "";
1344
- return /* @__PURE__ */ jsx39(
1345
- "input",
1580
+ if (rest.type === "hidden") {
1581
+ return /* @__PURE__ */ jsx44(
1582
+ "input",
1583
+ {
1584
+ ...rest,
1585
+ onClick,
1586
+ maxLength: maxlength,
1587
+ autoComplete: autocomplete,
1588
+ placeholder: formattedLabel,
1589
+ "data-testid": `ory/form/node/input/${name}`,
1590
+ ...register(name, { value })
1591
+ }
1592
+ );
1593
+ }
1594
+ const { ref, ...restRegister } = register(name, { value });
1595
+ return /* @__PURE__ */ jsxs24(
1596
+ "div",
1346
1597
  {
1347
- ...rest,
1348
- onClick,
1349
- maxLength: maxlength,
1350
- autoComplete: autocomplete,
1351
- placeholder: formattedLabel,
1352
- "data-testid": `ory/form/node/input/${name}`,
1353
1598
  className: cn(
1354
- "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0",
1355
- "bg-input-background-default border-input-border-default text-input-foreground-primary",
1356
- "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
1357
- "focus:border-input-border-focus focus-visible:border-input-border-focus",
1358
- "hover:bg-input-background-hover hover:border-input-border-hover",
1359
- "px-4 py-[13px]",
1599
+ "relative flex justify-stretch",
1360
1600
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1361
1601
  flowType === FlowType5.Settings && "max-w-[488px]"
1362
1602
  ),
1363
- ...register(name, { value })
1603
+ children: [
1604
+ /* @__PURE__ */ jsx44(
1605
+ "input",
1606
+ {
1607
+ ...rest,
1608
+ onClick,
1609
+ maxLength: maxlength,
1610
+ autoComplete: autocomplete,
1611
+ placeholder: formattedLabel,
1612
+ "data-testid": `ory/form/node/input/${name}`,
1613
+ className: cn(
1614
+ "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",
1615
+ "bg-input-background-default border-input-border-default text-input-foreground-primary",
1616
+ "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
1617
+ "focus:border-input-border-focus focus-visible:border-input-border-focus",
1618
+ "hover:bg-input-background-hover hover:border-input-border-hover",
1619
+ "px-4 py-[13px]"
1620
+ ),
1621
+ ref: (e) => {
1622
+ inputRef.current = e;
1623
+ ref(e);
1624
+ },
1625
+ ...restRegister
1626
+ }
1627
+ ),
1628
+ rest.type === "password" && /* @__PURE__ */ jsx44(PasswordToggle, { inputRef })
1629
+ ]
1364
1630
  }
1365
1631
  );
1366
1632
  };
1633
+ function PasswordToggle({
1634
+ inputRef
1635
+ }) {
1636
+ const [shown, setShown] = useState2(false);
1637
+ const handleClick = () => {
1638
+ setShown(!shown);
1639
+ if (inputRef.current) {
1640
+ inputRef.current.type = shown ? "password" : "text";
1641
+ }
1642
+ };
1643
+ return /* @__PURE__ */ jsx44(
1644
+ "button",
1645
+ {
1646
+ onClick: handleClick,
1647
+ className: "absolute right-0 h-full w-12 flex items-center justify-center",
1648
+ type: "button",
1649
+ children: shown ? /* @__PURE__ */ jsx44(eye_off_default, {}) : /* @__PURE__ */ jsx44(eye_default, {})
1650
+ }
1651
+ );
1652
+ }
1367
1653
 
1368
1654
  // src/theme/default/components/form/label.tsx
1369
1655
  import {
@@ -1374,12 +1660,12 @@ import {
1374
1660
  import {
1375
1661
  messageTestId as messageTestId3,
1376
1662
  uiTextToFormattedMessage as uiTextToFormattedMessage7,
1377
- useComponents as useComponents2,
1663
+ useComponents as useComponents3,
1378
1664
  useOryFlow as useOryFlow8
1379
1665
  } from "@ory/elements-react";
1380
1666
  import { useFormContext as useFormContext5 } from "react-hook-form";
1381
1667
  import { useIntl as useIntl10 } from "react-intl";
1382
- import { jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
1668
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
1383
1669
  function findResendNode(nodes) {
1384
1670
  return nodes.find(
1385
1671
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -1393,7 +1679,7 @@ function DefaultLabel({
1393
1679
  }) {
1394
1680
  const intl = useIntl10();
1395
1681
  const label = getNodeLabel4(node);
1396
- const { Message } = useComponents2();
1682
+ const { Message } = useComponents3();
1397
1683
  const { config, flowType, flow } = useOryFlow8();
1398
1684
  const { setValue, formState } = useFormContext5();
1399
1685
  const isPassword = attributes.type === "password";
@@ -1404,9 +1690,9 @@ function DefaultLabel({
1404
1690
  }
1405
1691
  };
1406
1692
  const fieldError = formState.errors[attributes.name];
1407
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-1 antialiased", children: [
1408
- label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
1409
- /* @__PURE__ */ jsx40(
1693
+ return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-1 antialiased", children: [
1694
+ label && /* @__PURE__ */ jsxs25("span", { className: "inline-flex justify-between", children: [
1695
+ /* @__PURE__ */ jsx45(
1410
1696
  "label",
1411
1697
  {
1412
1698
  ...messageTestId3(label),
@@ -1418,7 +1704,7 @@ function DefaultLabel({
1418
1704
  }
1419
1705
  ),
1420
1706
  isPassword && config.project.recovery_enabled && flowType === FlowType6.Login && // TODO: make it possible to override with a custom component
1421
- /* @__PURE__ */ jsx40(
1707
+ /* @__PURE__ */ jsx45(
1422
1708
  "a",
1423
1709
  {
1424
1710
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -1429,7 +1715,7 @@ function DefaultLabel({
1429
1715
  })
1430
1716
  }
1431
1717
  ),
1432
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx40(
1718
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx45(
1433
1719
  "button",
1434
1720
  {
1435
1721
  type: "submit",
@@ -1442,8 +1728,8 @@ function DefaultLabel({
1442
1728
  )
1443
1729
  ] }),
1444
1730
  children,
1445
- node.messages.map((message) => /* @__PURE__ */ jsx40(Message.Content, { message }, message.id)),
1446
- fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx40(Message.Content, { message: fieldError })
1731
+ node.messages.map((message) => /* @__PURE__ */ jsx45(Message.Content, { message }, message.id)),
1732
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx45(Message.Content, { message: fieldError })
1447
1733
  ] });
1448
1734
  }
1449
1735
 
@@ -1454,11 +1740,11 @@ import {
1454
1740
  } from "@ory/elements-react";
1455
1741
  import { forwardRef } from "react";
1456
1742
  import { useIntl as useIntl11 } from "react-intl";
1457
- import { jsx as jsx41 } from "react/jsx-runtime";
1743
+ import { jsx as jsx46 } from "react/jsx-runtime";
1458
1744
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1459
1745
  const intl = useIntl11();
1460
1746
  const label = getNodeLabel5(node);
1461
- return /* @__PURE__ */ jsx41(
1747
+ return /* @__PURE__ */ jsx46(
1462
1748
  "a",
1463
1749
  {
1464
1750
  ...attributes,
@@ -1479,9 +1765,9 @@ import { useFormContext as useFormContext6 } from "react-hook-form";
1479
1765
 
1480
1766
  // src/theme/default/components/form/shadcn/otp-input.tsx
1481
1767
  import { OTPInput, OTPInputContext } from "input-otp";
1482
- import * as React22 from "react";
1483
- import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
1484
- var InputOTP = React22.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx42(
1768
+ import * as React26 from "react";
1769
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
1770
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx47(
1485
1771
  OTPInput,
1486
1772
  {
1487
1773
  ref,
@@ -1494,12 +1780,12 @@ var InputOTP = React22.forwardRef(({ className, containerClassName, ...props },
1494
1780
  }
1495
1781
  ));
1496
1782
  InputOTP.displayName = "InputOTP";
1497
- var InputOTPGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx42("div", { ref, className: cn("flex items-center", className), ...props }));
1783
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("div", { ref, className: cn("flex items-center", className), ...props }));
1498
1784
  InputOTPGroup.displayName = "InputOTPGroup";
1499
- var InputOTPSlot = React22.forwardRef(({ index, className, ...props }, ref) => {
1500
- const inputOTPContext = React22.useContext(OTPInputContext);
1785
+ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
1786
+ const inputOTPContext = React26.useContext(OTPInputContext);
1501
1787
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1502
- return /* @__PURE__ */ jsxs24(
1788
+ return /* @__PURE__ */ jsxs26(
1503
1789
  "div",
1504
1790
  {
1505
1791
  ref,
@@ -1511,8 +1797,8 @@ var InputOTPSlot = React22.forwardRef(({ index, className, ...props }, ref) => {
1511
1797
  ),
1512
1798
  ...props,
1513
1799
  children: [
1514
- /* @__PURE__ */ jsx42("span", { className: "inline-block size-4", children: char }),
1515
- hasFakeCaret && /* @__PURE__ */ jsx42("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx42("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1800
+ /* @__PURE__ */ jsx47("span", { className: "inline-block size-4", children: char }),
1801
+ hasFakeCaret && /* @__PURE__ */ jsx47("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx47("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1516
1802
  ]
1517
1803
  }
1518
1804
  );
@@ -1522,7 +1808,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
1522
1808
  // src/theme/default/components/form/pin-code-input.tsx
1523
1809
  import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
1524
1810
  import { FlowType as FlowType7 } from "@ory/client-fetch";
1525
- import { jsx as jsx43 } from "react/jsx-runtime";
1811
+ import { jsx as jsx48 } from "react/jsx-runtime";
1526
1812
  var DefaultPinCodeInput = ({ attributes }) => {
1527
1813
  const { setValue, watch } = useFormContext6();
1528
1814
  const { maxlength, name } = attributes;
@@ -1532,14 +1818,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
1532
1818
  setValue(name, v);
1533
1819
  };
1534
1820
  const value = watch(name);
1535
- return /* @__PURE__ */ jsx43(
1821
+ return /* @__PURE__ */ jsx48(
1536
1822
  InputOTP,
1537
1823
  {
1538
1824
  maxLength: maxlength != null ? maxlength : 6,
1539
1825
  onChange: handleInputChange,
1540
1826
  name,
1541
1827
  value,
1542
- children: /* @__PURE__ */ jsx43(
1828
+ children: /* @__PURE__ */ jsx48(
1543
1829
  InputOTPGroup,
1544
1830
  {
1545
1831
  className: cn(
@@ -1547,7 +1833,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
1547
1833
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1548
1834
  flowType === FlowType7.Settings && "max-w-[488px]"
1549
1835
  ),
1550
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx43(InputOTPSlot, { index }, index))
1836
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx48(InputOTPSlot, { index }, index))
1551
1837
  }
1552
1838
  )
1553
1839
  }
@@ -1555,13 +1841,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
1555
1841
  };
1556
1842
 
1557
1843
  // src/theme/default/components/form/section.tsx
1558
- import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
1844
+ import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
1559
1845
  var DefaultFormSection = ({
1560
1846
  children,
1561
1847
  nodes: _nodes,
1562
1848
  ...rest
1563
1849
  }) => {
1564
- return /* @__PURE__ */ jsx44(
1850
+ return /* @__PURE__ */ jsx49(
1565
1851
  "form",
1566
1852
  {
1567
1853
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -1575,10 +1861,10 @@ var DefaultFormSectionContent = ({
1575
1861
  description,
1576
1862
  children
1577
1863
  }) => {
1578
- return /* @__PURE__ */ jsxs25("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: [
1579
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1580
- /* @__PURE__ */ jsx44("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1581
- /* @__PURE__ */ jsx44("span", { className: "text-interface-foreground-default-secondary", children: description })
1864
+ return /* @__PURE__ */ jsxs27("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: [
1865
+ /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-2", children: [
1866
+ /* @__PURE__ */ jsx49("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1867
+ /* @__PURE__ */ jsx49("span", { className: "text-interface-foreground-default-secondary", children: description })
1582
1868
  ] }),
1583
1869
  children
1584
1870
  ] });
@@ -1587,14 +1873,14 @@ var DefaultFormSectionFooter = ({
1587
1873
  children,
1588
1874
  text
1589
1875
  }) => {
1590
- return /* @__PURE__ */ jsxs25(
1876
+ return /* @__PURE__ */ jsxs27(
1591
1877
  "div",
1592
1878
  {
1593
1879
  className: cn(
1594
1880
  "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"
1595
1881
  ),
1596
1882
  children: [
1597
- /* @__PURE__ */ jsx44("span", { children: text }),
1883
+ /* @__PURE__ */ jsx49("span", { children: text }),
1598
1884
  children
1599
1885
  ]
1600
1886
  }
@@ -1604,31 +1890,31 @@ var DefaultFormSectionFooter = ({
1604
1890
  // src/theme/default/components/form/text.tsx
1605
1891
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
1606
1892
  import { useIntl as useIntl12 } from "react-intl";
1607
- import { Fragment as Fragment4, jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
1893
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
1608
1894
  function DefaultText({ node, attributes }) {
1609
1895
  var _a;
1610
1896
  const intl = useIntl12();
1611
1897
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
1612
1898
  if (lookup) {
1613
- return /* @__PURE__ */ jsxs26(Fragment4, { children: [
1614
- /* @__PURE__ */ jsx45("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1615
- lookup.map((text, index) => /* @__PURE__ */ jsx45(
1899
+ return /* @__PURE__ */ jsxs28(Fragment4, { children: [
1900
+ /* @__PURE__ */ jsx50("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1901
+ lookup.map((text, index) => /* @__PURE__ */ jsx50(
1616
1902
  "pre",
1617
1903
  {
1618
1904
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
1619
- children: /* @__PURE__ */ jsx45("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
1905
+ children: /* @__PURE__ */ jsx50("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
1620
1906
  },
1621
1907
  index
1622
1908
  ))
1623
1909
  ] });
1624
1910
  }
1625
- return /* @__PURE__ */ jsx45(Fragment4, { children: /* @__PURE__ */ jsxs26(
1911
+ return /* @__PURE__ */ jsx50(Fragment4, { children: /* @__PURE__ */ jsxs28(
1626
1912
  "p",
1627
1913
  {
1628
1914
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
1629
1915
  id: attributes.id,
1630
1916
  children: [
1631
- node.meta.label ? /* @__PURE__ */ jsx45("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
1917
+ node.meta.label ? /* @__PURE__ */ jsx50("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
1632
1918
  attributes.text ? uiTextToFormattedMessage9(attributes.text, intl) : ""
1633
1919
  ]
1634
1920
  }
@@ -1636,11 +1922,11 @@ function DefaultText({ node, attributes }) {
1636
1922
  }
1637
1923
 
1638
1924
  // src/theme/default/components/generic/page-header.tsx
1639
- import { useComponents as useComponents3 } from "@ory/elements-react";
1925
+ import { useComponents as useComponents4 } from "@ory/elements-react";
1640
1926
 
1641
1927
  // src/theme/default/components/ui/user-menu.tsx
1642
1928
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
1643
- import { useCallback, useEffect as useEffect3, useState as useState2 } from "react";
1929
+ import { useCallback, useEffect as useEffect3, useState as useState3 } from "react";
1644
1930
  import { useOryFlow as useOryFlow10 } from "@ory/elements-react";
1645
1931
 
1646
1932
  // src/util/client.ts
@@ -1661,22 +1947,22 @@ function frontendClient(sdkUrl, opts = {}) {
1661
1947
  }
1662
1948
 
1663
1949
  // src/theme/default/assets/icons/logout.svg
1664
- import * as React23 from "react";
1665
- import { jsx as jsx46 } from "react/jsx-runtime";
1950
+ import * as React27 from "react";
1951
+ import { jsx as jsx51 } from "react/jsx-runtime";
1666
1952
  var SvgLogout = (props) => {
1667
1953
  var _a, _b;
1668
- return /* @__PURE__ */ jsx46("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__ */ jsx46("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" }) });
1954
+ return /* @__PURE__ */ jsx51("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__ */ jsx51("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" }) });
1669
1955
  };
1670
1956
  var logout_default = SvgLogout;
1671
1957
 
1672
1958
  // src/theme/default/assets/icons/settings.svg
1673
- import * as React24 from "react";
1674
- import { jsx as jsx47, jsxs as jsxs27 } from "react/jsx-runtime";
1959
+ import * as React28 from "react";
1960
+ import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
1675
1961
  var SvgSettings = (props) => {
1676
1962
  var _a, _b;
1677
- return /* @__PURE__ */ jsx47("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__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1678
- /* @__PURE__ */ jsx47("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" }),
1679
- /* @__PURE__ */ jsx47("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1963
+ return /* @__PURE__ */ jsx52("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__ */ jsxs29("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1964
+ /* @__PURE__ */ jsx52("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" }),
1965
+ /* @__PURE__ */ jsx52("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1680
1966
  ] }) });
1681
1967
  };
1682
1968
  var settings_default = SvgSettings;
@@ -1723,10 +2009,10 @@ var getUserInitials = (session) => {
1723
2009
  // src/theme/default/components/ui/dropdown-menu.tsx
1724
2010
  import { forwardRef as forwardRef3 } from "react";
1725
2011
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1726
- import { jsx as jsx48 } from "react/jsx-runtime";
2012
+ import { jsx as jsx53 } from "react/jsx-runtime";
1727
2013
  var DropdownMenu = DropdownMenuPrimitive.Root;
1728
2014
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1729
- var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx48(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx48(
2015
+ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx53(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx53(
1730
2016
  DropdownMenuPrimitive.Content,
1731
2017
  {
1732
2018
  ref,
@@ -1741,7 +2027,7 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
1741
2027
  }
1742
2028
  ) }));
1743
2029
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1744
- var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx48(
2030
+ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx53(
1745
2031
  DropdownMenuPrimitive.Item,
1746
2032
  {
1747
2033
  ref,
@@ -1759,7 +2045,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
1759
2045
  }
1760
2046
  ));
1761
2047
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1762
- var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx48(
2048
+ var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx53(
1763
2049
  DropdownMenuPrimitive.Label,
1764
2050
  {
1765
2051
  ref,
@@ -1777,32 +2063,32 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1777
2063
  import { forwardRef as forwardRef4 } from "react";
1778
2064
 
1779
2065
  // src/theme/default/assets/icons/user.svg
1780
- import * as React25 from "react";
1781
- import { jsx as jsx49 } from "react/jsx-runtime";
2066
+ import * as React29 from "react";
2067
+ import { jsx as jsx54 } from "react/jsx-runtime";
1782
2068
  var SvgUser = (props) => {
1783
2069
  var _a, _b;
1784
- return /* @__PURE__ */ jsx49("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__ */ jsx49("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" }) });
2070
+ return /* @__PURE__ */ jsx54("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__ */ jsx54("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" }) });
1785
2071
  };
1786
2072
  var user_default = SvgUser;
1787
2073
 
1788
2074
  // src/theme/default/components/ui/user-avater.tsx
1789
- import { jsx as jsx50 } from "react/jsx-runtime";
2075
+ import { jsx as jsx55 } from "react/jsx-runtime";
1790
2076
  var UserAvatar = forwardRef4(
1791
2077
  ({ initials, ...rest }, ref) => {
1792
- return /* @__PURE__ */ jsx50(
2078
+ return /* @__PURE__ */ jsx55(
1793
2079
  "button",
1794
2080
  {
1795
2081
  ref,
1796
2082
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
1797
2083
  ...rest,
1798
- children: /* @__PURE__ */ jsx50("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx50(
2084
+ children: /* @__PURE__ */ jsx55("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx55(
1799
2085
  "img",
1800
2086
  {
1801
2087
  src: initials.avatar,
1802
2088
  alt: initials.primary,
1803
2089
  className: "w-full object-contain"
1804
2090
  }
1805
- ) : /* @__PURE__ */ jsx50(
2091
+ ) : /* @__PURE__ */ jsx55(
1806
2092
  user_default,
1807
2093
  {
1808
2094
  size: 24,
@@ -1816,11 +2102,11 @@ var UserAvatar = forwardRef4(
1816
2102
  UserAvatar.displayName = "UserAvatar";
1817
2103
 
1818
2104
  // src/theme/default/components/ui/user-menu.tsx
1819
- import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
2105
+ import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
1820
2106
  var UserMenu = ({ session }) => {
1821
2107
  const { config } = useOryFlow10();
1822
2108
  const initials = getUserInitials(session);
1823
- const [logoutFlow, setLogoutFlow] = useState2();
2109
+ const [logoutFlow, setLogoutFlow] = useState3();
1824
2110
  const fetchLogoutFlow = useCallback(async () => {
1825
2111
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow();
1826
2112
  setLogoutFlow(flow);
@@ -1828,22 +2114,22 @@ var UserMenu = ({ session }) => {
1828
2114
  useEffect3(() => {
1829
2115
  void fetchLogoutFlow();
1830
2116
  }, [fetchLogoutFlow]);
1831
- return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
1832
- /* @__PURE__ */ jsx51(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx51(UserAvatar, { initials }) }),
1833
- /* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
1834
- /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
1835
- /* @__PURE__ */ jsx51(UserAvatar, { disabled: true, initials }),
1836
- /* @__PURE__ */ jsxs28("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
1837
- /* @__PURE__ */ jsx51("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
1838
- initials.secondary && /* @__PURE__ */ jsx51("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
2117
+ return /* @__PURE__ */ jsxs30(DropdownMenu, { children: [
2118
+ /* @__PURE__ */ jsx56(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx56(UserAvatar, { initials }) }),
2119
+ /* @__PURE__ */ jsxs30(DropdownMenuContent, { children: [
2120
+ /* @__PURE__ */ jsxs30(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
2121
+ /* @__PURE__ */ jsx56(UserAvatar, { disabled: true, initials }),
2122
+ /* @__PURE__ */ jsxs30("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
2123
+ /* @__PURE__ */ jsx56("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
2124
+ initials.secondary && /* @__PURE__ */ jsx56("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
1839
2125
  ] })
1840
2126
  ] }),
1841
- /* @__PURE__ */ jsx51(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
1842
- /* @__PURE__ */ jsx51(settings_default, { size: 16 }),
2127
+ /* @__PURE__ */ jsx56(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs30("a", { href: "/settings", children: [
2128
+ /* @__PURE__ */ jsx56(settings_default, { size: 16 }),
1843
2129
  " User settings"
1844
2130
  ] }) }),
1845
- /* @__PURE__ */ jsx51(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1846
- /* @__PURE__ */ jsx51(logout_default, { size: 16 }),
2131
+ /* @__PURE__ */ jsx56(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs30("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
2132
+ /* @__PURE__ */ jsx56(logout_default, { size: 16 }),
1847
2133
  " Logout"
1848
2134
  ] }) })
1849
2135
  ] })
@@ -1852,13 +2138,13 @@ var UserMenu = ({ session }) => {
1852
2138
 
1853
2139
  // src/theme/default/components/generic/page-header.tsx
1854
2140
  import { useSession } from "@ory/elements-react/client";
1855
- import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
2141
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
1856
2142
  var DefaultPageHeader = (_props) => {
1857
- const { Card } = useComponents3();
2143
+ const { Card } = useComponents4();
1858
2144
  const { session } = useSession();
1859
- return /* @__PURE__ */ jsx52("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__ */ jsx52("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
1860
- /* @__PURE__ */ jsx52("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx52(Card.Logo, {}) }),
1861
- /* @__PURE__ */ jsx52(UserMenu, { session })
2145
+ return /* @__PURE__ */ jsx57("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__ */ jsx57("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs31("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
2146
+ /* @__PURE__ */ jsx57("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx57(Card.Logo, {}) }),
2147
+ /* @__PURE__ */ jsx57(UserMenu, { session })
1862
2148
  ] }) }) });
1863
2149
  };
1864
2150
 
@@ -1868,26 +2154,26 @@ import { useFormContext as useFormContext7 } from "react-hook-form";
1868
2154
  import { useDebounceValue as useDebounceValue2 } from "usehooks-ts";
1869
2155
 
1870
2156
  // src/theme/default/assets/icons/trash.svg
1871
- import * as React26 from "react";
1872
- import { jsx as jsx53 } from "react/jsx-runtime";
2157
+ import * as React30 from "react";
2158
+ import { jsx as jsx58 } from "react/jsx-runtime";
1873
2159
  var SvgTrash = (props) => {
1874
2160
  var _a, _b;
1875
- return /* @__PURE__ */ jsx53("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__ */ jsx53("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" }) });
2161
+ return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "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" }) });
1876
2162
  };
1877
2163
  var trash_default = SvgTrash;
1878
2164
 
1879
2165
  // src/theme/default/components/settings/settings-oidc.tsx
1880
- import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
2166
+ import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
1881
2167
  function DefaultSettingsOidc({
1882
2168
  linkButtons,
1883
2169
  unlinkButtons
1884
2170
  }) {
1885
2171
  const hasLinkButtons = linkButtons.length > 0;
1886
2172
  const hasUnlinkButtons = unlinkButtons.length > 0;
1887
- return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
1888
- hasLinkButtons && /* @__PURE__ */ jsx54("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
2173
+ return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
2174
+ hasLinkButtons && /* @__PURE__ */ jsx59("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
1889
2175
  const attrs = button.attributes;
1890
- return /* @__PURE__ */ jsx54(
2176
+ return /* @__PURE__ */ jsx59(
1891
2177
  DefaultButtonSocial,
1892
2178
  {
1893
2179
  showLabel: true,
@@ -1898,12 +2184,12 @@ function DefaultSettingsOidc({
1898
2184
  attrs.value
1899
2185
  );
1900
2186
  }) }),
1901
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx54(DefaultHorizontalDivider, {}) : null,
2187
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) : null,
1902
2188
  unlinkButtons.map((button) => {
1903
2189
  if (button.attributes.node_type !== "input") {
1904
2190
  return null;
1905
2191
  }
1906
- return /* @__PURE__ */ jsx54(UnlinkRow, { button }, button.attributes.value);
2192
+ return /* @__PURE__ */ jsx59(UnlinkRow, { button }, button.attributes.value);
1907
2193
  })
1908
2194
  ] });
1909
2195
  }
@@ -1925,12 +2211,12 @@ function UnlinkRow({ button }) {
1925
2211
  setClicked(false);
1926
2212
  }
1927
2213
  }, [isSubmitting, setClicked]);
1928
- return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
1929
- /* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-6", children: [
1930
- Logo ? /* @__PURE__ */ jsx54(Logo, { size: 32 }) : /* @__PURE__ */ jsx54(provider_logos_default.generic, { size: 32 }),
1931
- /* @__PURE__ */ jsx54("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
2214
+ return /* @__PURE__ */ jsxs32("div", { className: "flex justify-between", children: [
2215
+ /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-6", children: [
2216
+ Logo ? /* @__PURE__ */ jsx59(Logo, { size: 32 }) : /* @__PURE__ */ jsx59(provider_logos_default.generic, { size: 32 }),
2217
+ /* @__PURE__ */ jsx59("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
1932
2218
  ] }),
1933
- /* @__PURE__ */ jsx54(
2219
+ /* @__PURE__ */ jsx59(
1934
2220
  "button",
1935
2221
  {
1936
2222
  ...attrs,
@@ -1939,7 +2225,7 @@ function UnlinkRow({ button }) {
1939
2225
  disabled: isSubmitting,
1940
2226
  className: "relative",
1941
2227
  title: `Unlink ${provider}`,
1942
- children: clicked ? /* @__PURE__ */ jsx54(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx54(
2228
+ children: clicked ? /* @__PURE__ */ jsx59(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx59(
1943
2229
  trash_default,
1944
2230
  {
1945
2231
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -1952,9 +2238,9 @@ function UnlinkRow({ button }) {
1952
2238
  }
1953
2239
 
1954
2240
  // src/theme/default/components/settings/settings-passkey.tsx
1955
- import { useComponents as useComponents4 } from "@ory/elements-react";
2241
+ import { useComponents as useComponents5 } from "@ory/elements-react";
1956
2242
  import { useFormContext as useFormContext8 } from "react-hook-form";
1957
- import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
2243
+ import { jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
1958
2244
  function DefaultSettingsPasskey({
1959
2245
  triggerButton,
1960
2246
  removeButtons
@@ -1962,10 +2248,10 @@ function DefaultSettingsPasskey({
1962
2248
  const {
1963
2249
  formState: { isSubmitting }
1964
2250
  } = useFormContext8();
1965
- const { Node: Node2 } = useComponents4();
2251
+ const { Node: Node2 } = useComponents5();
1966
2252
  const hasRemoveButtons = removeButtons.length > 0;
1967
- return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1968
- /* @__PURE__ */ jsx55("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx55(
2253
+ return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2254
+ /* @__PURE__ */ jsx60("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx60(
1969
2255
  Node2.Button,
1970
2256
  {
1971
2257
  node: triggerButton,
@@ -1973,38 +2259,38 @@ function DefaultSettingsPasskey({
1973
2259
  onClick: triggerButton.onClick
1974
2260
  }
1975
2261
  ) }),
1976
- hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1977
- /* @__PURE__ */ jsx55(DefaultHorizontalDivider, {}),
1978
- /* @__PURE__ */ jsx55("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2262
+ hasRemoveButtons ? /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2263
+ /* @__PURE__ */ jsx60(DefaultHorizontalDivider, {}),
2264
+ /* @__PURE__ */ jsx60("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1979
2265
  var _a, _b;
1980
2266
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
1981
2267
  const addedAt = "added_at" in context ? context.added_at : null;
1982
2268
  const displayName = "display_name" in context ? context.display_name : null;
1983
2269
  const keyId = "value" in node.attributes ? node.attributes.value : null;
1984
- return /* @__PURE__ */ jsxs31(
2270
+ return /* @__PURE__ */ jsxs33(
1985
2271
  "div",
1986
2272
  {
1987
2273
  className: "flex justify-between gap-6 md:items-center",
1988
2274
  children: [
1989
- /* @__PURE__ */ jsxs31("div", { className: "flex gap-2 items-center flex-1", children: [
1990
- /* @__PURE__ */ jsx55(
2275
+ /* @__PURE__ */ jsxs33("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2276
+ /* @__PURE__ */ jsx60(
1991
2277
  passkey_default,
1992
2278
  {
1993
2279
  size: 32,
1994
2280
  className: "text-interface-foreground-default-primary"
1995
2281
  }
1996
2282
  ),
1997
- /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
1998
- /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col", children: [
1999
- /* @__PURE__ */ jsx55("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
2000
- /* @__PURE__ */ jsx55("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
2283
+ /* @__PURE__ */ jsxs33("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2284
+ /* @__PURE__ */ jsxs33("div", { className: "flex-1 flex-col truncate", children: [
2285
+ /* @__PURE__ */ jsx60("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2286
+ /* @__PURE__ */ jsx60("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2001
2287
  ] }),
2002
- addedAt && /* @__PURE__ */ jsx55("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2288
+ addedAt && /* @__PURE__ */ jsx60("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2003
2289
  dateStyle: "long"
2004
2290
  }).format(new Date(addedAt)) })
2005
2291
  ] })
2006
2292
  ] }),
2007
- /* @__PURE__ */ jsx55(
2293
+ /* @__PURE__ */ jsx60(
2008
2294
  "button",
2009
2295
  {
2010
2296
  ...node.attributes,
@@ -2012,7 +2298,7 @@ function DefaultSettingsPasskey({
2012
2298
  onClick: node.onClick,
2013
2299
  disabled: isSubmitting,
2014
2300
  className: "relative",
2015
- children: isSubmitting ? /* @__PURE__ */ jsx55(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx55(
2301
+ children: isSubmitting ? /* @__PURE__ */ jsx60(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx60(
2016
2302
  trash_default,
2017
2303
  {
2018
2304
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2031,38 +2317,26 @@ function DefaultSettingsPasskey({
2031
2317
  }
2032
2318
 
2033
2319
  // src/theme/default/assets/icons/download.svg
2034
- import * as React27 from "react";
2035
- import { jsx as jsx56 } from "react/jsx-runtime";
2320
+ import * as React31 from "react";
2321
+ import { jsx as jsx61 } from "react/jsx-runtime";
2036
2322
  var SvgDownload = (props) => {
2037
2323
  var _a, _b;
2038
- return /* @__PURE__ */ jsx56("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__ */ jsx56("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" }) });
2324
+ return /* @__PURE__ */ jsx61("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__ */ jsx61("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" }) });
2039
2325
  };
2040
2326
  var download_default = SvgDownload;
2041
2327
 
2042
- // src/theme/default/assets/icons/eye.svg
2043
- import * as React28 from "react";
2044
- import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
2045
- var SvgEye = (props) => {
2046
- var _a, _b;
2047
- return /* @__PURE__ */ jsx57("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__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
2048
- /* @__PURE__ */ jsx57("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
2049
- /* @__PURE__ */ jsx57("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
2050
- ] }) });
2051
- };
2052
- var eye_default = SvgEye;
2053
-
2054
2328
  // src/theme/default/assets/icons/refresh.svg
2055
- import * as React29 from "react";
2056
- import { jsx as jsx58 } from "react/jsx-runtime";
2329
+ import * as React32 from "react";
2330
+ import { jsx as jsx62 } from "react/jsx-runtime";
2057
2331
  var SvgRefresh = (props) => {
2058
2332
  var _a, _b;
2059
- return /* @__PURE__ */ jsx58("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__ */ jsx58("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" }) });
2333
+ return /* @__PURE__ */ jsx62("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__ */ jsx62("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" }) });
2060
2334
  };
2061
2335
  var refresh_default = SvgRefresh;
2062
2336
 
2063
2337
  // src/theme/default/components/settings/settings-recovery-codes.tsx
2064
2338
  import { useFormContext as useFormContext9 } from "react-hook-form";
2065
- import { Fragment as Fragment5, jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
2339
+ import { Fragment as Fragment5, jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
2066
2340
  function DefaultSettingsRecoveryCodes({
2067
2341
  codes,
2068
2342
  regnerateButton,
@@ -2084,12 +2358,12 @@ function DefaultSettingsRecoveryCodes({
2084
2358
  element.click();
2085
2359
  };
2086
2360
  const hasCodes = codes.length >= 1;
2087
- return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2088
- codes.length > 0 && /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}),
2089
- /* @__PURE__ */ jsxs33("div", { className: "flex gap-4 justify-between", children: [
2090
- /* @__PURE__ */ jsx59("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2091
- /* @__PURE__ */ jsxs33("div", { className: "flex gap-2", children: [
2092
- regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx59(
2361
+ return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-8", children: [
2362
+ codes.length > 0 && /* @__PURE__ */ jsx63(DefaultHorizontalDivider, {}),
2363
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-4 justify-between", children: [
2364
+ /* @__PURE__ */ jsx63("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2365
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-2", children: [
2366
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx63(
2093
2367
  "button",
2094
2368
  {
2095
2369
  ...regnerateButton.attributes,
@@ -2098,7 +2372,7 @@ function DefaultSettingsRecoveryCodes({
2098
2372
  onClick: onRegenerate,
2099
2373
  disabled: isSubmitting,
2100
2374
  "data-loading": isSubmitting,
2101
- children: /* @__PURE__ */ jsx59(
2375
+ children: /* @__PURE__ */ jsx63(
2102
2376
  refresh_default,
2103
2377
  {
2104
2378
  size: 24,
@@ -2107,7 +2381,7 @@ function DefaultSettingsRecoveryCodes({
2107
2381
  )
2108
2382
  }
2109
2383
  ),
2110
- revealButton && /* @__PURE__ */ jsx59(Fragment5, { children: /* @__PURE__ */ jsx59(
2384
+ revealButton && /* @__PURE__ */ jsx63(Fragment5, { children: /* @__PURE__ */ jsx63(
2111
2385
  "button",
2112
2386
  {
2113
2387
  ...revealButton.attributes,
@@ -2115,7 +2389,7 @@ function DefaultSettingsRecoveryCodes({
2115
2389
  className: "ml-auto",
2116
2390
  onClick: onReveal,
2117
2391
  title: "Reveal recovery codes",
2118
- children: /* @__PURE__ */ jsx59(
2392
+ children: /* @__PURE__ */ jsx63(
2119
2393
  eye_default,
2120
2394
  {
2121
2395
  size: 24,
@@ -2124,7 +2398,7 @@ function DefaultSettingsRecoveryCodes({
2124
2398
  )
2125
2399
  }
2126
2400
  ) }),
2127
- hasCodes && /* @__PURE__ */ jsx59(
2401
+ hasCodes && /* @__PURE__ */ jsx63(
2128
2402
  "button",
2129
2403
  {
2130
2404
  onClick: onDownload,
@@ -2132,7 +2406,7 @@ function DefaultSettingsRecoveryCodes({
2132
2406
  className: "ml-auto",
2133
2407
  "data-testid": "ory/screen/settings/group/recovery_code/download",
2134
2408
  title: "Download recovery codes",
2135
- children: /* @__PURE__ */ jsx59(
2409
+ children: /* @__PURE__ */ jsx63(
2136
2410
  download_default,
2137
2411
  {
2138
2412
  size: 24,
@@ -2143,32 +2417,32 @@ function DefaultSettingsRecoveryCodes({
2143
2417
  )
2144
2418
  ] })
2145
2419
  ] }),
2146
- hasCodes ? /* @__PURE__ */ jsx59("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx59(
2420
+ hasCodes ? /* @__PURE__ */ jsx63("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx63(
2147
2421
  "div",
2148
2422
  {
2149
2423
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
2150
2424
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
2151
- children: codes.map((code) => /* @__PURE__ */ jsx59("p", { children: code }, code))
2425
+ children: codes.map((code) => /* @__PURE__ */ jsx63("p", { children: code }, code))
2152
2426
  }
2153
2427
  ) }) : null
2154
2428
  ] });
2155
2429
  }
2156
2430
 
2157
2431
  // src/theme/default/components/settings/settings-totp.tsx
2158
- import { useComponents as useComponents5 } from "@ory/elements-react";
2432
+ import { useComponents as useComponents6 } from "@ory/elements-react";
2159
2433
 
2160
2434
  // src/theme/default/assets/icons/qrcode.svg
2161
- import * as React30 from "react";
2162
- import { jsx as jsx60 } from "react/jsx-runtime";
2435
+ import * as React33 from "react";
2436
+ import { jsx as jsx64 } from "react/jsx-runtime";
2163
2437
  var SvgQrcode = (props) => {
2164
2438
  var _a, _b;
2165
- return /* @__PURE__ */ jsx60("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__ */ jsx60("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" }) });
2439
+ return /* @__PURE__ */ jsx64("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__ */ jsx64("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" }) });
2166
2440
  };
2167
2441
  var qrcode_default = SvgQrcode;
2168
2442
 
2169
2443
  // src/theme/default/components/settings/settings-totp.tsx
2170
2444
  import { useFormContext as useFormContext10 } from "react-hook-form";
2171
- import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
2445
+ import { jsx as jsx65, jsxs as jsxs35 } from "react/jsx-runtime";
2172
2446
  function DefaultSettingsTotp({
2173
2447
  totpImage,
2174
2448
  totpInput,
@@ -2176,7 +2450,7 @@ function DefaultSettingsTotp({
2176
2450
  totpUnlink,
2177
2451
  onUnlink
2178
2452
  }) {
2179
- const { Node: Node2, Card } = useComponents5();
2453
+ const { Node: Node2, Card } = useComponents6();
2180
2454
  const {
2181
2455
  formState: { isSubmitting }
2182
2456
  } = useFormContext10();
@@ -2188,19 +2462,19 @@ function DefaultSettingsTotp({
2188
2462
  node_type: _ignoredNodeType,
2189
2463
  ...buttonAttrs
2190
2464
  } = totpUnlink.attributes;
2191
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2192
- /* @__PURE__ */ jsx61("div", { className: "col-span-full", children: /* @__PURE__ */ jsx61(Card.Divider, {}) }),
2193
- /* @__PURE__ */ jsxs34("div", { className: "col-span-full flex items-center gap-6", children: [
2194
- /* @__PURE__ */ jsx61("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx61(qrcode_default, { size: 32 }) }),
2195
- /* @__PURE__ */ jsx61("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx61("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2196
- /* @__PURE__ */ jsx61(
2465
+ return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2466
+ /* @__PURE__ */ jsx65("div", { className: "col-span-full", children: /* @__PURE__ */ jsx65(Card.Divider, {}) }),
2467
+ /* @__PURE__ */ jsxs35("div", { className: "col-span-full flex items-center gap-6", children: [
2468
+ /* @__PURE__ */ jsx65("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx65(qrcode_default, { size: 32 }) }),
2469
+ /* @__PURE__ */ jsx65("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx65("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2470
+ /* @__PURE__ */ jsx65(
2197
2471
  "button",
2198
2472
  {
2199
2473
  type: type === "button" ? "button" : "submit",
2200
2474
  ...buttonAttrs,
2201
2475
  onClick: onUnlink,
2202
2476
  disabled: isSubmitting,
2203
- children: isSubmitting ? /* @__PURE__ */ jsx61(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx61(
2477
+ children: isSubmitting ? /* @__PURE__ */ jsx65(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx65(
2204
2478
  trash_default,
2205
2479
  {
2206
2480
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2213,9 +2487,9 @@ function DefaultSettingsTotp({
2213
2487
  ] });
2214
2488
  }
2215
2489
  if (totpImage && totpSecret && totpInput) {
2216
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2217
- /* @__PURE__ */ jsx61("div", { className: "col-span-full", children: /* @__PURE__ */ jsx61(DefaultHorizontalDivider, {}) }),
2218
- /* @__PURE__ */ jsx61("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx61("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx61("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx61(
2490
+ return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2491
+ /* @__PURE__ */ jsx65("div", { className: "col-span-full", children: /* @__PURE__ */ jsx65(DefaultHorizontalDivider, {}) }),
2492
+ /* @__PURE__ */ jsx65("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx65("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx65("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx65(
2219
2493
  Node2.Image,
2220
2494
  {
2221
2495
  node: totpImage,
@@ -2224,13 +2498,13 @@ function DefaultSettingsTotp({
2224
2498
  }
2225
2499
  }
2226
2500
  ) }) }) }),
2227
- /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
2228
- /* @__PURE__ */ jsx61(
2501
+ /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-6", children: [
2502
+ /* @__PURE__ */ jsx65(
2229
2503
  Node2.Label,
2230
2504
  {
2231
2505
  node: totpSecret,
2232
2506
  attributes: totpSecret.attributes,
2233
- children: /* @__PURE__ */ jsx61(
2507
+ children: /* @__PURE__ */ jsx65(
2234
2508
  Node2.Input,
2235
2509
  {
2236
2510
  node: totpSecret,
@@ -2245,12 +2519,12 @@ function DefaultSettingsTotp({
2245
2519
  )
2246
2520
  }
2247
2521
  ),
2248
- /* @__PURE__ */ jsx61(
2522
+ /* @__PURE__ */ jsx65(
2249
2523
  Node2.Label,
2250
2524
  {
2251
2525
  attributes: totpInput.attributes,
2252
2526
  node: totpInput,
2253
- children: /* @__PURE__ */ jsx61(
2527
+ children: /* @__PURE__ */ jsx65(
2254
2528
  Node2.CodeInput,
2255
2529
  {
2256
2530
  node: totpInput,
@@ -2265,20 +2539,20 @@ function DefaultSettingsTotp({
2265
2539
  }
2266
2540
 
2267
2541
  // src/theme/default/components/settings/settings-webauthn.tsx
2268
- import { useComponents as useComponents6 } from "@ory/elements-react";
2542
+ import { useComponents as useComponents7 } from "@ory/elements-react";
2269
2543
 
2270
2544
  // src/theme/default/assets/icons/key.svg
2271
- import * as React31 from "react";
2272
- import { jsx as jsx62 } from "react/jsx-runtime";
2545
+ import * as React34 from "react";
2546
+ import { jsx as jsx66 } from "react/jsx-runtime";
2273
2547
  var SvgKey = (props) => {
2274
2548
  var _a, _b;
2275
- return /* @__PURE__ */ jsx62("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx62("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", 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" }) });
2549
+ return /* @__PURE__ */ jsx66("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__ */ jsx66("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" }) });
2276
2550
  };
2277
2551
  var key_default = SvgKey;
2278
2552
 
2279
2553
  // src/theme/default/components/settings/settings-webauthn.tsx
2280
2554
  import { useFormContext as useFormContext11 } from "react-hook-form";
2281
- import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
2555
+ import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
2282
2556
  function DefaultSettingsWebauthn({
2283
2557
  nameInput,
2284
2558
  triggerButton,
@@ -2287,16 +2561,16 @@ function DefaultSettingsWebauthn({
2287
2561
  const {
2288
2562
  formState: { isSubmitting }
2289
2563
  } = useFormContext11();
2290
- const { Node: Node2, Card } = useComponents6();
2564
+ const { Node: Node2, Card } = useComponents7();
2291
2565
  const hasRemoveButtons = removeButtons.length > 0;
2292
- return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2293
- /* @__PURE__ */ jsxs35("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2294
- /* @__PURE__ */ jsx63("div", { className: "flex-1", children: /* @__PURE__ */ jsx63(
2566
+ return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2567
+ /* @__PURE__ */ jsxs36("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2568
+ /* @__PURE__ */ jsx67("div", { className: "flex-1", children: /* @__PURE__ */ jsx67(
2295
2569
  Node2.Label,
2296
2570
  {
2297
2571
  node: nameInput,
2298
2572
  attributes: nameInput.attributes,
2299
- children: /* @__PURE__ */ jsx63(
2573
+ children: /* @__PURE__ */ jsx67(
2300
2574
  Node2.Input,
2301
2575
  {
2302
2576
  node: nameInput,
@@ -2305,7 +2579,7 @@ function DefaultSettingsWebauthn({
2305
2579
  )
2306
2580
  }
2307
2581
  ) }),
2308
- triggerButton ? /* @__PURE__ */ jsx63(
2582
+ triggerButton ? /* @__PURE__ */ jsx67(
2309
2583
  Node2.Button,
2310
2584
  {
2311
2585
  node: triggerButton,
@@ -2314,38 +2588,38 @@ function DefaultSettingsWebauthn({
2314
2588
  }
2315
2589
  ) : null
2316
2590
  ] }),
2317
- hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2318
- /* @__PURE__ */ jsx63(Card.Divider, {}),
2319
- /* @__PURE__ */ jsx63("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2591
+ hasRemoveButtons ? /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2592
+ /* @__PURE__ */ jsx67(Card.Divider, {}),
2593
+ /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2320
2594
  var _a, _b;
2321
2595
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2322
2596
  const addedAt = "added_at" in context ? context.added_at : null;
2323
2597
  const displayName = "display_name" in context ? context.display_name : null;
2324
2598
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2325
- return /* @__PURE__ */ jsxs35(
2599
+ return /* @__PURE__ */ jsxs36(
2326
2600
  "div",
2327
2601
  {
2328
2602
  className: "flex justify-between gap-6 md:items-center",
2329
2603
  children: [
2330
- /* @__PURE__ */ jsxs35("div", { className: "flex gap-2 items-center flex-1", children: [
2331
- /* @__PURE__ */ jsx63(
2604
+ /* @__PURE__ */ jsxs36("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2605
+ /* @__PURE__ */ jsx67(
2332
2606
  key_default,
2333
2607
  {
2334
2608
  size: 32,
2335
2609
  className: "text-interface-foreground-default-primary"
2336
2610
  }
2337
2611
  ),
2338
- /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4", children: [
2339
- /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col", children: [
2340
- /* @__PURE__ */ jsx63("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
2341
- /* @__PURE__ */ jsx63("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block", children: keyId })
2612
+ /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2613
+ /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col truncate", children: [
2614
+ /* @__PURE__ */ jsx67("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2615
+ /* @__PURE__ */ jsx67("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2342
2616
  ] }),
2343
- addedAt && /* @__PURE__ */ jsx63("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2617
+ addedAt && /* @__PURE__ */ jsx67("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2344
2618
  dateStyle: "long"
2345
2619
  }).format(new Date(addedAt)) })
2346
2620
  ] })
2347
2621
  ] }),
2348
- /* @__PURE__ */ jsx63(
2622
+ /* @__PURE__ */ jsx67(
2349
2623
  "button",
2350
2624
  {
2351
2625
  ...node.attributes,
@@ -2353,7 +2627,7 @@ function DefaultSettingsWebauthn({
2353
2627
  onClick: node.onClick,
2354
2628
  disabled: isSubmitting,
2355
2629
  className: "relative",
2356
- children: isSubmitting ? /* @__PURE__ */ jsx63(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx63(
2630
+ children: isSubmitting ? /* @__PURE__ */ jsx67(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx67(
2357
2631
  trash_default,
2358
2632
  {
2359
2633
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2372,126 +2646,42 @@ function DefaultSettingsWebauthn({
2372
2646
  }
2373
2647
 
2374
2648
  // src/theme/default/components/card/auth-method-list-container.tsx
2375
- import { jsx as jsx64 } from "react/jsx-runtime";
2649
+ import { jsx as jsx68 } from "react/jsx-runtime";
2376
2650
  function DefaultAuthMethodListContainer({
2377
2651
  children
2378
2652
  }) {
2379
- return /* @__PURE__ */ jsx64("div", { className: "grid grid-cols-1 gap-2", children });
2653
+ return /* @__PURE__ */ jsx68("div", { className: "grid grid-cols-1 gap-2", children });
2380
2654
  }
2381
2655
 
2382
2656
  // src/theme/default/components/form/captcha.tsx
2383
2657
  import { isUiNodeInputAttributes as isUiNodeInputAttributes7 } from "@ory/client-fetch";
2384
2658
  import { Turnstile } from "@marsidev/react-turnstile";
2385
- import { useRef as useRef2 } from "react";
2659
+ import { useRef as useRef3 } from "react";
2386
2660
  import { useFormContext as useFormContext23 } from "react-hook-form";
2387
2661
 
2388
- // src/context/component.tsx
2389
- import {
2390
- isUiNodeInputAttributes as isUiNodeInputAttributes2,
2391
- UiNodeGroupEnum
2392
- } from "@ory/client-fetch";
2393
- import { createContext, useContext as useContext2 } from "react";
2394
- import { jsx as jsx65 } from "react/jsx-runtime";
2395
- var ComponentContext = createContext({
2396
- components: null,
2397
- // fine because we throw an error if it's not provided
2398
- nodeSorter: () => 0,
2399
- groupSorter: () => 0
2400
- });
2401
- function useComponents7() {
2402
- const ctx = useContext2(ComponentContext);
2403
- if (!ctx) {
2404
- throw new Error("useComponents must be used within a ComponentProvider");
2405
- }
2406
- return ctx.components;
2407
- }
2408
- var defaultGroupOrder = [
2409
- UiNodeGroupEnum.Default,
2410
- UiNodeGroupEnum.Profile,
2411
- UiNodeGroupEnum.Password,
2412
- UiNodeGroupEnum.Oidc,
2413
- UiNodeGroupEnum.Code,
2414
- UiNodeGroupEnum.LookupSecret,
2415
- UiNodeGroupEnum.Passkey,
2416
- UiNodeGroupEnum.Webauthn,
2417
- UiNodeGroupEnum.Totp
2418
- ];
2419
-
2420
2662
  // src/context/flow-context.tsx
2421
2663
  import {
2422
2664
  createContext as createContext2,
2423
2665
  useContext as useContext3,
2424
- useState as useState3
2666
+ useState as useState4
2425
2667
  } from "react";
2426
2668
 
2427
2669
  // src/context/form-state.ts
2428
- import { FlowType as FlowType8 } from "@ory/client-fetch";
2670
+ import { FlowType as FlowType9 } from "@ory/client-fetch";
2429
2671
  import { useReducer } from "react";
2430
2672
 
2431
2673
  // src/components/card/card-two-step.utils.ts
2432
- import { UiNodeGroupEnum as UiNodeGroupEnum2 } from "@ory/client-fetch";
2433
-
2434
- // src/util/ui/index.ts
2435
- import { UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
2436
- import { useMemo } from "react";
2437
- function triggerToWindowCall(trigger) {
2438
- if (!trigger) {
2439
- return;
2440
- }
2441
- const fn = triggerToFunction(trigger);
2442
- if (fn) {
2443
- fn();
2444
- return;
2445
- }
2446
- let i = 0;
2447
- const ms = 100;
2448
- const interval = setInterval(() => {
2449
- i++;
2450
- if (i > 100) {
2451
- clearInterval(interval);
2452
- throw new Error(
2453
- "Unable to load Ory's WebAuthn script. Is it being blocked or otherwise failing to load? If you are running an old version of Ory Elements, please upgrade. For more information, please check your browser's developer console."
2454
- );
2455
- }
2456
- const fn2 = triggerToFunction(trigger);
2457
- if (fn2) {
2458
- clearInterval(interval);
2459
- return fn2();
2460
- }
2461
- }, ms);
2462
- return;
2463
- }
2464
- function triggerToFunction(trigger) {
2465
- if (typeof window === "undefined") {
2466
- console.debug(
2467
- "The Ory SDK is missing a required function: window is undefined."
2468
- );
2469
- return void 0;
2470
- }
2471
- const typedWindow = window;
2472
- if (!(trigger in typedWindow) || !typedWindow[trigger]) {
2473
- console.debug(`The Ory SDK is missing a required function: ${trigger}.`);
2474
- return void 0;
2475
- }
2476
- const triggerFn = typedWindow[trigger];
2477
- if (typeof triggerFn !== "function") {
2478
- console.debug(
2479
- `The Ory SDK is missing a required function: ${trigger}. It is not a function.`
2480
- );
2481
- return void 0;
2482
- }
2483
- return triggerFn;
2484
- }
2674
+ import { FlowType as FlowType8, UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
2485
2675
 
2486
2676
  // src/context/flow-context.tsx
2487
- import { jsx as jsx66 } from "react/jsx-runtime";
2677
+ import { jsx as jsx69 } from "react/jsx-runtime";
2488
2678
  var OryFlowContext = createContext2(null);
2489
2679
 
2490
2680
  // src/context/intl-context.tsx
2491
2681
  import { IntlProvider as OriginalIntlProvider } from "react-intl";
2492
2682
 
2493
2683
  // src/components/card/header.tsx
2494
- import { jsx as jsx67 } from "react/jsx-runtime";
2684
+ import { jsx as jsx70 } from "react/jsx-runtime";
2495
2685
 
2496
2686
  // src/components/form/form-provider.tsx
2497
2687
  import { UiNodeGroupEnum as UiNodeGroupEnum5 } from "@ory/client-fetch";
@@ -2504,16 +2694,16 @@ import { isUiNodeInputAttributes as isUiNodeInputAttributes3 } from "@ory/client
2504
2694
  import { isUiNodeInputAttributes as isUiNodeInputAttributes4 } from "@ory/client-fetch";
2505
2695
 
2506
2696
  // src/components/form/form-provider.tsx
2507
- import { jsx as jsx68 } from "react/jsx-runtime";
2697
+ import { jsx as jsx71 } from "react/jsx-runtime";
2508
2698
 
2509
2699
  // src/components/card/card.tsx
2510
- import { jsx as jsx69 } from "react/jsx-runtime";
2700
+ import { jsx as jsx72 } from "react/jsx-runtime";
2511
2701
 
2512
2702
  // src/components/card/footer.tsx
2513
- import { jsx as jsx70 } from "react/jsx-runtime";
2703
+ import { jsx as jsx73 } from "react/jsx-runtime";
2514
2704
 
2515
2705
  // src/components/card/content.tsx
2516
- import { jsx as jsx71 } from "react/jsx-runtime";
2706
+ import { jsx as jsx74 } from "react/jsx-runtime";
2517
2707
 
2518
2708
  // src/components/card/card-two-step.tsx
2519
2709
  import { UiNodeGroupEnum as UiNodeGroupEnum7 } from "@ory/client-fetch";
@@ -2521,6 +2711,7 @@ import { useFormContext as useFormContext15 } from "react-hook-form";
2521
2711
 
2522
2712
  // src/components/form/form.tsx
2523
2713
  import {
2714
+ FlowType as FlowType16,
2524
2715
  isUiNodeAnchorAttributes,
2525
2716
  isUiNodeImageAttributes,
2526
2717
  isUiNodeInputAttributes as isUiNodeInputAttributes5,
@@ -2531,20 +2722,20 @@ import { useIntl as useIntl13 } from "react-intl";
2531
2722
 
2532
2723
  // src/components/form/useOryFormSubmit.ts
2533
2724
  import {
2534
- FlowType as FlowType14
2725
+ FlowType as FlowType15
2535
2726
  } from "@ory/client-fetch";
2536
2727
  import { useFormContext as useFormContext12 } from "react-hook-form";
2537
2728
 
2538
2729
  // src/util/onSubmitLogin.ts
2539
2730
  import {
2540
- FlowType as FlowType9,
2731
+ FlowType as FlowType10,
2541
2732
  handleFlowError,
2542
2733
  loginUrl
2543
2734
  } from "@ory/client-fetch";
2544
2735
 
2545
2736
  // src/util/onSubmitRecovery.ts
2546
2737
  import {
2547
- FlowType as FlowType10,
2738
+ FlowType as FlowType11,
2548
2739
  handleContinueWith,
2549
2740
  handleFlowError as handleFlowError2,
2550
2741
  instanceOfContinueWithRecoveryUi,
@@ -2553,7 +2744,7 @@ import {
2553
2744
 
2554
2745
  // src/util/onSubmitRegistration.ts
2555
2746
  import {
2556
- FlowType as FlowType11,
2747
+ FlowType as FlowType12,
2557
2748
  handleContinueWith as handleContinueWith2,
2558
2749
  handleFlowError as handleFlowError3,
2559
2750
  registrationUrl
@@ -2561,7 +2752,7 @@ import {
2561
2752
 
2562
2753
  // src/util/onSubmitSettings.ts
2563
2754
  import {
2564
- FlowType as FlowType12,
2755
+ FlowType as FlowType13,
2565
2756
  handleContinueWith as handleContinueWith3,
2566
2757
  handleFlowError as handleFlowError4,
2567
2758
  isResponseError,
@@ -2571,16 +2762,16 @@ import {
2571
2762
 
2572
2763
  // src/util/onSubmitVerification.ts
2573
2764
  import {
2574
- FlowType as FlowType13,
2765
+ FlowType as FlowType14,
2575
2766
  handleFlowError as handleFlowError5,
2576
2767
  verificationUrl
2577
2768
  } from "@ory/client-fetch";
2578
2769
 
2579
2770
  // src/components/form/form.tsx
2580
- import { jsx as jsx72 } from "react/jsx-runtime";
2771
+ import { Fragment as Fragment6, jsx as jsx75, jsxs as jsxs37 } from "react/jsx-runtime";
2581
2772
 
2582
2773
  // src/components/form/messages.tsx
2583
- import { jsx as jsx73 } from "react/jsx-runtime";
2774
+ import { jsx as jsx76 } from "react/jsx-runtime";
2584
2775
 
2585
2776
  // src/components/form/nodes/node.tsx
2586
2777
  import {
@@ -2591,27 +2782,27 @@ import {
2591
2782
  isUiNodeTextAttributes,
2592
2783
  UiNodeGroupEnum as UiNodeGroupEnum6
2593
2784
  } from "@ory/client-fetch";
2594
- import { jsx as jsx74 } from "react/jsx-runtime";
2785
+ import { jsx as jsx77 } from "react/jsx-runtime";
2595
2786
 
2596
2787
  // src/components/form/social.tsx
2597
2788
  import { useFormContext as useFormContext14 } from "react-hook-form";
2598
- import { jsx as jsx75 } from "react/jsx-runtime";
2789
+ import { jsx as jsx78 } from "react/jsx-runtime";
2599
2790
 
2600
2791
  // src/components/card/card-two-step.tsx
2601
- import { Fragment as Fragment6, jsx as jsx76, jsxs as jsxs36 } from "react/jsx-runtime";
2792
+ import { Fragment as Fragment7, jsx as jsx79, jsxs as jsxs38 } from "react/jsx-runtime";
2602
2793
 
2603
2794
  // src/components/form/groups.tsx
2604
- import { jsx as jsx77 } from "react/jsx-runtime";
2795
+ import { jsx as jsx80 } from "react/jsx-runtime";
2605
2796
 
2606
2797
  // src/components/form/section.tsx
2607
2798
  import { useFormContext as useFormContext16 } from "react-hook-form";
2608
- import { jsx as jsx78 } from "react/jsx-runtime";
2799
+ import { jsx as jsx81 } from "react/jsx-runtime";
2609
2800
 
2610
2801
  // src/components/generic/divider.tsx
2611
- import { jsx as jsx79 } from "react/jsx-runtime";
2802
+ import { jsx as jsx82 } from "react/jsx-runtime";
2612
2803
 
2613
2804
  // src/components/generic/page-header.tsx
2614
- import { jsx as jsx80 } from "react/jsx-runtime";
2805
+ import { jsx as jsx83 } from "react/jsx-runtime";
2615
2806
 
2616
2807
  // src/components/settings/settings-card.tsx
2617
2808
  import { UiNodeGroupEnum as UiNodeGroupEnum8 } from "@ory/client-fetch";
@@ -2620,50 +2811,50 @@ import { useIntl as useIntl19 } from "react-intl";
2620
2811
  // src/components/settings/oidc-settings.tsx
2621
2812
  import { useIntl as useIntl14 } from "react-intl";
2622
2813
  import { useFormContext as useFormContext17 } from "react-hook-form";
2623
- import { Fragment as Fragment7, jsx as jsx81, jsxs as jsxs37 } from "react/jsx-runtime";
2814
+ import { Fragment as Fragment8, jsx as jsx84, jsxs as jsxs39 } from "react/jsx-runtime";
2624
2815
 
2625
2816
  // src/components/settings/passkey-settings.tsx
2626
2817
  import { useFormContext as useFormContext18 } from "react-hook-form";
2627
2818
  import { useIntl as useIntl15 } from "react-intl";
2628
- import { Fragment as Fragment8, jsx as jsx82, jsxs as jsxs38 } from "react/jsx-runtime";
2819
+ import { Fragment as Fragment9, jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
2629
2820
 
2630
2821
  // src/components/settings/recovery-codes-settings.tsx
2631
2822
  import { useIntl as useIntl16 } from "react-intl";
2632
2823
  import { useFormContext as useFormContext19 } from "react-hook-form";
2633
- import { Fragment as Fragment9, jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
2824
+ import { Fragment as Fragment10, jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
2634
2825
 
2635
2826
  // src/components/settings/totp-settings.tsx
2636
2827
  import { useFormContext as useFormContext20 } from "react-hook-form";
2637
2828
  import { useIntl as useIntl17 } from "react-intl";
2638
- import { Fragment as Fragment10, jsx as jsx84, jsxs as jsxs40 } from "react/jsx-runtime";
2829
+ import { Fragment as Fragment11, jsx as jsx87, jsxs as jsxs42 } from "react/jsx-runtime";
2639
2830
 
2640
2831
  // src/components/settings/webauthn-settings.tsx
2641
2832
  import { useFormContext as useFormContext21 } from "react-hook-form";
2642
2833
  import { useIntl as useIntl18 } from "react-intl";
2643
- import { Fragment as Fragment11, jsx as jsx85, jsxs as jsxs41 } from "react/jsx-runtime";
2834
+ import { Fragment as Fragment12, jsx as jsx88, jsxs as jsxs43 } from "react/jsx-runtime";
2644
2835
 
2645
2836
  // src/components/settings/settings-card.tsx
2646
- import { Fragment as Fragment12, jsx as jsx86, jsxs as jsxs42 } from "react/jsx-runtime";
2837
+ import { Fragment as Fragment13, jsx as jsx89, jsxs as jsxs44 } from "react/jsx-runtime";
2647
2838
 
2648
2839
  // src/context/intl-context.tsx
2649
- import { jsx as jsx87 } from "react/jsx-runtime";
2840
+ import { jsx as jsx90 } from "react/jsx-runtime";
2650
2841
 
2651
2842
  // src/context/provider.tsx
2652
- import { jsx as jsx88 } from "react/jsx-runtime";
2843
+ import { jsx as jsx91 } from "react/jsx-runtime";
2653
2844
 
2654
2845
  // src/components/form/nodes/input.tsx
2655
2846
  import {
2656
2847
  UiNodeInputAttributesTypeEnum
2657
2848
  } from "@ory/client-fetch";
2658
- import { useEffect as useEffect5, useRef } from "react";
2849
+ import { useEffect as useEffect5, useRef as useRef2 } from "react";
2659
2850
  import { useFormContext as useFormContext22 } from "react-hook-form";
2660
- import { jsx as jsx89 } from "react/jsx-runtime";
2851
+ import { jsx as jsx92 } from "react/jsx-runtime";
2661
2852
  var NodeInput = ({
2662
2853
  node,
2663
2854
  attributes
2664
2855
  }) => {
2665
2856
  var _a;
2666
- const { Node: Node2 } = useComponents7();
2857
+ const { Node: Node2 } = useComponents();
2667
2858
  const { setValue } = useFormContext22();
2668
2859
  const {
2669
2860
  onloadTrigger,
@@ -2681,7 +2872,7 @@ var NodeInput = ({
2681
2872
  setValue(attrs.name, attrs.value);
2682
2873
  }
2683
2874
  };
2684
- const hasRun = useRef(false);
2875
+ const hasRun = useRef2(false);
2685
2876
  useEffect5(
2686
2877
  () => {
2687
2878
  setFormValue();
@@ -2711,30 +2902,30 @@ var NodeInput = ({
2711
2902
  if (isResendNode || isScreenSelectionNode) {
2712
2903
  return null;
2713
2904
  }
2714
- return /* @__PURE__ */ jsx89(
2905
+ return /* @__PURE__ */ jsx92(
2715
2906
  Node2.Label,
2716
2907
  {
2717
2908
  attributes: { ...attrs, label: void 0 },
2718
2909
  node: { ...node, meta: { ...node.meta, label: void 0 } },
2719
- children: /* @__PURE__ */ jsx89(Node2.Button, { attributes: attrs, node, onClick: handleClick })
2910
+ children: /* @__PURE__ */ jsx92(Node2.Button, { attributes: attrs, node, onClick: handleClick })
2720
2911
  }
2721
2912
  );
2722
2913
  case UiNodeInputAttributesTypeEnum.DatetimeLocal:
2723
2914
  throw new Error("Not implemented");
2724
2915
  case UiNodeInputAttributesTypeEnum.Checkbox:
2725
- return /* @__PURE__ */ jsx89(
2916
+ return /* @__PURE__ */ jsx92(
2726
2917
  Node2.Label,
2727
2918
  {
2728
2919
  attributes: { ...attrs, label: void 0 },
2729
2920
  node: { ...node, meta: { ...node.meta, label: void 0 } },
2730
- children: /* @__PURE__ */ jsx89(Node2.Checkbox, { attributes: attrs, node, onClick: handleClick })
2921
+ children: /* @__PURE__ */ jsx92(Node2.Checkbox, { attributes: attrs, node, onClick: handleClick })
2731
2922
  }
2732
2923
  );
2733
2924
  case UiNodeInputAttributesTypeEnum.Hidden:
2734
- return /* @__PURE__ */ jsx89(Node2.Input, { attributes: attrs, node, onClick: handleClick });
2925
+ return /* @__PURE__ */ jsx92(Node2.Input, { attributes: attrs, node, onClick: handleClick });
2735
2926
  default:
2736
2927
  if (isPinCodeInput) {
2737
- return /* @__PURE__ */ jsx89(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx89(
2928
+ return /* @__PURE__ */ jsx92(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx92(
2738
2929
  Node2.CodeInput,
2739
2930
  {
2740
2931
  attributes: attrs,
@@ -2743,25 +2934,25 @@ var NodeInput = ({
2743
2934
  }
2744
2935
  ) });
2745
2936
  }
2746
- return /* @__PURE__ */ jsx89(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx89(Node2.Input, { attributes: attrs, node, onClick: handleClick }) });
2937
+ return /* @__PURE__ */ jsx92(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx92(Node2.Input, { attributes: attrs, node, onClick: handleClick }) });
2747
2938
  }
2748
2939
  };
2749
2940
 
2750
2941
  // src/theme/default/components/form/captcha.tsx
2751
- import { jsx as jsx90 } from "react/jsx-runtime";
2942
+ import { jsx as jsx93 } from "react/jsx-runtime";
2752
2943
  var DefaultCaptcha = ({ node }) => {
2753
2944
  const { setValue } = useFormContext23();
2754
- const ref = useRef2();
2945
+ const ref = useRef3();
2755
2946
  const nodes = [];
2756
2947
  if (isUiNodeInputAttributes7(node.attributes)) {
2757
2948
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
2758
- nodes.push(/* @__PURE__ */ jsx90(NodeInput, { node, attributes: node.attributes }, 1));
2949
+ nodes.push(/* @__PURE__ */ jsx93(NodeInput, { node, attributes: node.attributes }, 1));
2759
2950
  }
2760
2951
  }
2761
2952
  if (isUiNodeInputAttributes7(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
2762
2953
  const options = JSON.parse(node.attributes.value);
2763
2954
  nodes.push(
2764
- /* @__PURE__ */ jsx90(
2955
+ /* @__PURE__ */ jsx93(
2765
2956
  Turnstile,
2766
2957
  {
2767
2958
  ref,
@@ -2838,21 +3029,21 @@ function getOryComponents(overrides) {
2838
3029
  }
2839
3030
 
2840
3031
  // src/theme/default/flows/error.tsx
2841
- import { jsx as jsx91 } from "react/jsx-runtime";
3032
+ import { jsx as jsx94 } from "react/jsx-runtime";
2842
3033
  function Error2({
2843
3034
  error,
2844
3035
  children
2845
3036
  }) {
2846
- return /* @__PURE__ */ jsx91("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
3037
+ return /* @__PURE__ */ jsx94("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
2847
3038
  }
2848
3039
 
2849
3040
  // src/theme/default/flows/login.tsx
2850
- import { FlowType as FlowType15 } from "@ory/client-fetch";
3041
+ import { FlowType as FlowType17 } from "@ory/client-fetch";
2851
3042
  import {
2852
3043
  OryProvider,
2853
3044
  OryTwoStepCard as OryTwoStepCard2
2854
3045
  } from "@ory/elements-react";
2855
- import { jsx as jsx92 } from "react/jsx-runtime";
3046
+ import { jsx as jsx95 } from "react/jsx-runtime";
2856
3047
  function Login({
2857
3048
  flow,
2858
3049
  config,
@@ -2860,25 +3051,25 @@ function Login({
2860
3051
  components: flowOverrideComponents
2861
3052
  }) {
2862
3053
  const components = getOryComponents(flowOverrideComponents);
2863
- return /* @__PURE__ */ jsx92(
3054
+ return /* @__PURE__ */ jsx95(
2864
3055
  OryProvider,
2865
3056
  {
2866
3057
  config,
2867
3058
  flow,
2868
- flowType: FlowType15.Login,
3059
+ flowType: FlowType17.Login,
2869
3060
  components,
2870
- children: children != null ? children : /* @__PURE__ */ jsx92(OryTwoStepCard2, {})
3061
+ children: children != null ? children : /* @__PURE__ */ jsx95(OryTwoStepCard2, {})
2871
3062
  }
2872
3063
  );
2873
3064
  }
2874
3065
 
2875
3066
  // src/theme/default/flows/recovery.tsx
2876
- import { FlowType as FlowType16 } from "@ory/client-fetch";
3067
+ import { FlowType as FlowType18 } from "@ory/client-fetch";
2877
3068
  import {
2878
3069
  OryProvider as OryProvider2,
2879
3070
  OryTwoStepCard as OryTwoStepCard3
2880
3071
  } from "@ory/elements-react";
2881
- import { jsx as jsx93 } from "react/jsx-runtime";
3072
+ import { jsx as jsx96 } from "react/jsx-runtime";
2882
3073
  function Recovery({
2883
3074
  flow,
2884
3075
  config,
@@ -2886,25 +3077,25 @@ function Recovery({
2886
3077
  components: flowOverrideComponents
2887
3078
  }) {
2888
3079
  const components = getOryComponents(flowOverrideComponents);
2889
- return /* @__PURE__ */ jsx93(
3080
+ return /* @__PURE__ */ jsx96(
2890
3081
  OryProvider2,
2891
3082
  {
2892
3083
  config,
2893
3084
  flow,
2894
- flowType: FlowType16.Recovery,
3085
+ flowType: FlowType18.Recovery,
2895
3086
  components,
2896
- children: children != null ? children : /* @__PURE__ */ jsx93(OryTwoStepCard3, {})
3087
+ children: children != null ? children : /* @__PURE__ */ jsx96(OryTwoStepCard3, {})
2897
3088
  }
2898
3089
  );
2899
3090
  }
2900
3091
 
2901
3092
  // src/theme/default/flows/registration.tsx
2902
- import { FlowType as FlowType17 } from "@ory/client-fetch";
3093
+ import { FlowType as FlowType19 } from "@ory/client-fetch";
2903
3094
  import {
2904
3095
  OryProvider as OryProvider3,
2905
3096
  OryTwoStepCard as OryTwoStepCard4
2906
3097
  } from "@ory/elements-react";
2907
- import { jsx as jsx94 } from "react/jsx-runtime";
3098
+ import { jsx as jsx97 } from "react/jsx-runtime";
2908
3099
  function Registration({
2909
3100
  flow,
2910
3101
  children,
@@ -2912,26 +3103,26 @@ function Registration({
2912
3103
  config
2913
3104
  }) {
2914
3105
  const components = getOryComponents(flowOverrideComponents);
2915
- return /* @__PURE__ */ jsx94(
3106
+ return /* @__PURE__ */ jsx97(
2916
3107
  OryProvider3,
2917
3108
  {
2918
3109
  config,
2919
3110
  flow,
2920
- flowType: FlowType17.Registration,
3111
+ flowType: FlowType19.Registration,
2921
3112
  components,
2922
- children: children != null ? children : /* @__PURE__ */ jsx94(OryTwoStepCard4, {})
3113
+ children: children != null ? children : /* @__PURE__ */ jsx97(OryTwoStepCard4, {})
2923
3114
  }
2924
3115
  );
2925
3116
  }
2926
3117
 
2927
3118
  // src/theme/default/flows/settings.tsx
2928
- import { FlowType as FlowType18 } from "@ory/client-fetch";
3119
+ import { FlowType as FlowType20 } from "@ory/client-fetch";
2929
3120
  import {
2930
3121
  HeadlessPageHeader,
2931
3122
  OryProvider as OryProvider4,
2932
3123
  OrySettingsCard
2933
3124
  } from "@ory/elements-react";
2934
- import { Fragment as Fragment13, jsx as jsx95, jsxs as jsxs43 } from "react/jsx-runtime";
3125
+ import { Fragment as Fragment14, jsx as jsx98, jsxs as jsxs45 } from "react/jsx-runtime";
2935
3126
  function Settings({
2936
3127
  flow,
2937
3128
  config,
@@ -2939,28 +3130,28 @@ function Settings({
2939
3130
  components: flowOverrideComponents
2940
3131
  }) {
2941
3132
  const components = getOryComponents(flowOverrideComponents);
2942
- return /* @__PURE__ */ jsx95(
3133
+ return /* @__PURE__ */ jsx98(
2943
3134
  OryProvider4,
2944
3135
  {
2945
3136
  config,
2946
3137
  flow,
2947
- flowType: FlowType18.Settings,
3138
+ flowType: FlowType20.Settings,
2948
3139
  components,
2949
- children: children != null ? children : /* @__PURE__ */ jsxs43(Fragment13, { children: [
2950
- /* @__PURE__ */ jsx95(HeadlessPageHeader, {}),
2951
- /* @__PURE__ */ jsx95(OrySettingsCard, {})
3140
+ children: children != null ? children : /* @__PURE__ */ jsxs45(Fragment14, { children: [
3141
+ /* @__PURE__ */ jsx98(HeadlessPageHeader, {}),
3142
+ /* @__PURE__ */ jsx98(OrySettingsCard, {})
2952
3143
  ] })
2953
3144
  }
2954
3145
  );
2955
3146
  }
2956
3147
 
2957
3148
  // src/theme/default/flows/verification.tsx
2958
- import { FlowType as FlowType19 } from "@ory/client-fetch";
3149
+ import { FlowType as FlowType21 } from "@ory/client-fetch";
2959
3150
  import {
2960
3151
  OryProvider as OryProvider5,
2961
3152
  OryTwoStepCard as OryTwoStepCard5
2962
3153
  } from "@ory/elements-react";
2963
- import { jsx as jsx96 } from "react/jsx-runtime";
3154
+ import { jsx as jsx99 } from "react/jsx-runtime";
2964
3155
  function Verification({
2965
3156
  flow,
2966
3157
  config,
@@ -2968,14 +3159,14 @@ function Verification({
2968
3159
  components: flowOverrideComponents
2969
3160
  }) {
2970
3161
  const components = getOryComponents(flowOverrideComponents);
2971
- return /* @__PURE__ */ jsx96(
3162
+ return /* @__PURE__ */ jsx99(
2972
3163
  OryProvider5,
2973
3164
  {
2974
3165
  config,
2975
3166
  flow,
2976
- flowType: FlowType19.Verification,
3167
+ flowType: FlowType21.Verification,
2977
3168
  components,
2978
- children: children != null ? children : /* @__PURE__ */ jsx96(OryTwoStepCard5, {})
3169
+ children: children != null ? children : /* @__PURE__ */ jsx99(OryTwoStepCard5, {})
2979
3170
  }
2980
3171
  );
2981
3172
  }