@ory/elements-react 1.0.0-next.15 → 1.0.0-next.17

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.
@@ -160,7 +160,10 @@ function VerificationCardFooter() {
160
160
  import { useComponents, useOryFlow as useOryFlow3 } from "@ory/elements-react";
161
161
 
162
162
  // src/theme/default/utils/constructCardHeader.ts
163
- import { FlowType as FlowType2, isUiNodeInputAttributes } from "@ory/client-fetch";
163
+ import {
164
+ FlowType as FlowType2,
165
+ isUiNodeInputAttributes
166
+ } from "@ory/client-fetch";
164
167
  import { useIntl as useIntl2 } from "react-intl";
165
168
  function joinWithCommaOr(list, orText = "or") {
166
169
  if (list.length === 0) {
@@ -172,8 +175,9 @@ function joinWithCommaOr(list, orText = "or") {
172
175
  return `${list.join(", ")} ${orText} ${last}`;
173
176
  }
174
177
  }
175
- function useCardHeaderText(nodes, opts) {
176
- var _a;
178
+ function useCardHeaderText(container, opts) {
179
+ var _a, _b;
180
+ const nodes = container.nodes;
177
181
  const intl = useIntl2();
178
182
  switch (opts.flowType) {
179
183
  case FlowType2.Recovery:
@@ -227,6 +231,24 @@ function useCardHeaderText(nodes, opts) {
227
231
  id: "verification.subtitle"
228
232
  })
229
233
  };
234
+ case FlowType2.Login: {
235
+ const accountLinkingMessage = (_a = container.messages) == null ? void 0 : _a.find(
236
+ (m) => m.id === 1010016
237
+ );
238
+ if (accountLinkingMessage) {
239
+ return {
240
+ title: intl.formatMessage({
241
+ id: "account-linking.title"
242
+ }),
243
+ description: intl.formatMessage(
244
+ {
245
+ id: "identities.messages.1010016"
246
+ },
247
+ accountLinkingMessage.context
248
+ )
249
+ };
250
+ }
251
+ }
230
252
  }
231
253
  const parts = [];
232
254
  if (nodes.find((node) => node.group === "password")) {
@@ -277,7 +299,7 @@ function useCardHeaderText(nodes, opts) {
277
299
  id: "card.header.parts.identifier-first"
278
300
  },
279
301
  {
280
- identifierLabel: (_a = identifier.meta.label) == null ? void 0 : _a.text
302
+ identifierLabel: (_b = identifier.meta.label) == null ? void 0 : _b.text
281
303
  }
282
304
  )
283
305
  );
@@ -383,26 +405,32 @@ function DefaultCurrentIdentifierButton() {
383
405
  "autocomplete",
384
406
  "node_type"
385
407
  ]);
386
- return /* @__PURE__ */ jsx6("div", { children: /* @__PURE__ */ jsxs5(
408
+ return /* @__PURE__ */ jsxs5(
387
409
  "a",
388
410
  {
389
- className: "cursor-pointer py-[5px] px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default hover:border-button-identifier-border-hover hover:bg-button-identifier-bg-hover transition-colors inline-flex gap-1 items-center",
411
+ className: "cursor-pointer py-[5px] px-3 rounded-full border border-button-identifier-border-default bg-button-identifier-bg-default hover:border-button-identifier-border-hover hover:bg-button-identifier-bg-hover transition-colors inline-flex gap-1 items-center self-start max-w-full",
390
412
  ...attributes,
391
413
  href: initFlowUrl,
392
414
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.attributes.value}`,
393
415
  children: [
394
- /* @__PURE__ */ jsx6(arrow_left_default, { size: 16, className: "text-button-identifier-fg-subtle" }),
416
+ /* @__PURE__ */ jsx6(
417
+ arrow_left_default,
418
+ {
419
+ size: 16,
420
+ className: "text-button-identifier-fg-subtle shrink-0"
421
+ }
422
+ ),
395
423
  /* @__PURE__ */ jsx6("span", { className: "text-sm font-medium text-button-identifier-fg-default text-ellipsis overflow-hidden text-nowrap", children: nodeBackButton == null ? void 0 : nodeBackButton.attributes.value })
396
424
  ]
397
425
  }
398
- ) });
426
+ );
399
427
  }
400
428
  function getBackButtonNode(flowType, nodes) {
401
429
  let nodeBackButton;
402
430
  switch (flowType) {
403
431
  case FlowType3.Login:
404
432
  nodeBackButton = nodes.find(
405
- (node) => "name" in node.attributes && node.attributes.name === "identifier" && node.group === "identifier_first"
433
+ (node) => "name" in node.attributes && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
406
434
  );
407
435
  break;
408
436
  case FlowType3.Registration:
@@ -443,10 +471,7 @@ function InnerCardHeader({ title, text }) {
443
471
  }
444
472
  function DefaultCardHeader() {
445
473
  const context = useOryFlow3();
446
- const { title, description } = useCardHeaderText(
447
- context.flow.ui.nodes,
448
- context
449
- );
474
+ const { title, description } = useCardHeaderText(context.flow.ui, context);
450
475
  return /* @__PURE__ */ jsx7(InnerCardHeader, { title, text: description });
451
476
  }
452
477
 
@@ -478,20 +503,281 @@ function cn(...inputs) {
478
503
  }
479
504
 
480
505
  // src/theme/default/components/form/index.tsx
481
- import { useIntl as useIntl3 } from "react-intl";
506
+ import { useIntl as useIntl4 } from "react-intl";
507
+ import {
508
+ messageTestId,
509
+ uiTextToFormattedMessage as uiTextToFormattedMessage2,
510
+ useOryFlow as useOryFlow6
511
+ } from "@ory/elements-react";
512
+ import { FlowType as FlowType4 } from "@ory/client-fetch";
513
+
514
+ // src/theme/default/components/form/social.tsx
482
515
  import {
483
516
  uiTextToFormattedMessage,
484
517
  useOryFlow as useOryFlow5
485
518
  } from "@ory/elements-react";
486
- import { FlowType as FlowType4 } from "@ory/client-fetch";
519
+
520
+ // src/theme/default/provider-logos/apple.svg
521
+ import * as React4 from "react";
487
522
  import { jsx as jsx10 } from "react/jsx-runtime";
523
+ var SvgApple = (props) => {
524
+ var _a, _b;
525
+ return /* @__PURE__ */ jsx10("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__ */ jsx10("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" }) });
526
+ };
527
+ var apple_default = SvgApple;
528
+
529
+ // src/theme/default/provider-logos/auth0.svg
530
+ import * as React5 from "react";
531
+ import { jsx as jsx11 } from "react/jsx-runtime";
532
+ var SvgAuth0 = (props) => {
533
+ var _a, _b;
534
+ return /* @__PURE__ */ jsx11("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__ */ jsx11("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" }) });
535
+ };
536
+ var auth0_default = SvgAuth0;
537
+
538
+ // src/theme/default/provider-logos/discord.svg
539
+ import * as React6 from "react";
540
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
541
+ var SvgDiscord = (props) => {
542
+ var _a, _b;
543
+ 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: [
544
+ /* @__PURE__ */ jsx12("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" }),
545
+ /* @__PURE__ */ jsx12("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" })
546
+ ] });
547
+ };
548
+ var discord_default = SvgDiscord;
549
+
550
+ // src/theme/default/provider-logos/facebook.svg
551
+ import * as React7 from "react";
552
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
553
+ var SvgFacebook = (props) => {
554
+ var _a, _b;
555
+ return /* @__PURE__ */ jsxs9("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: [
556
+ /* @__PURE__ */ jsxs9("g", { clipPath: "url(#facebook_svg__a)", children: [
557
+ /* @__PURE__ */ jsx13("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
558
+ /* @__PURE__ */ jsx13("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
559
+ ] }),
560
+ /* @__PURE__ */ jsx13("defs", { children: /* @__PURE__ */ jsx13("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx13("rect", { fill: "#fff" }) }) })
561
+ ] });
562
+ };
563
+ var facebook_default = SvgFacebook;
564
+
565
+ // src/theme/default/provider-logos/generic.svg
566
+ import * as React8 from "react";
567
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
568
+ var SvgGeneric = (props) => {
569
+ var _a, _b;
570
+ 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: [
571
+ /* @__PURE__ */ jsx14("path", { stroke: "none", d: "M0 0h24v24H0z" }),
572
+ /* @__PURE__ */ jsx14("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
573
+ /* @__PURE__ */ jsx14("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" })
574
+ ] });
575
+ };
576
+ var generic_default = SvgGeneric;
577
+
578
+ // src/theme/default/provider-logos/github.svg
579
+ import * as React9 from "react";
580
+ import { jsx as jsx15 } from "react/jsx-runtime";
581
+ var SvgGithub = (props) => {
582
+ var _a, _b;
583
+ return /* @__PURE__ */ jsx15("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__ */ jsx15("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" }) });
584
+ };
585
+ var github_default = SvgGithub;
586
+
587
+ // src/theme/default/provider-logos/gitlab.svg
588
+ import * as React10 from "react";
589
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
590
+ var SvgGitlab = (props) => {
591
+ var _a, _b;
592
+ 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: [
593
+ /* @__PURE__ */ jsx16("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" }),
594
+ /* @__PURE__ */ jsx16("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" }),
595
+ /* @__PURE__ */ jsx16("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" }),
596
+ /* @__PURE__ */ jsx16("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" })
597
+ ] });
598
+ };
599
+ var gitlab_default = SvgGitlab;
600
+
601
+ // src/theme/default/provider-logos/google.svg
602
+ import * as React11 from "react";
603
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
604
+ var SvgGoogle = (props) => {
605
+ var _a, _b;
606
+ 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: [
607
+ /* @__PURE__ */ jsx17("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" }),
608
+ /* @__PURE__ */ jsx17("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" }),
609
+ /* @__PURE__ */ jsx17("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" }),
610
+ /* @__PURE__ */ jsx17("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" })
611
+ ] });
612
+ };
613
+ var google_default = SvgGoogle;
614
+
615
+ // src/theme/default/provider-logos/linkedin.svg
616
+ import * as React12 from "react";
617
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
618
+ var SvgLinkedin = (props) => {
619
+ var _a, _b;
620
+ 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: [
621
+ /* @__PURE__ */ jsx18("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
622
+ /* @__PURE__ */ jsx18("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" })
623
+ ] });
624
+ };
625
+ var linkedin_default = SvgLinkedin;
626
+
627
+ // src/theme/default/provider-logos/microsoft.svg
628
+ import * as React13 from "react";
629
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
630
+ var SvgMicrosoft = (props) => {
631
+ var _a, _b;
632
+ 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: [
633
+ /* @__PURE__ */ jsx19("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
634
+ /* @__PURE__ */ jsx19("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
635
+ /* @__PURE__ */ jsx19("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
636
+ /* @__PURE__ */ jsx19("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
637
+ ] });
638
+ };
639
+ var microsoft_default = SvgMicrosoft;
640
+
641
+ // src/theme/default/provider-logos/slack.svg
642
+ import * as React14 from "react";
643
+ import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
644
+ var SvgSlack = (props) => {
645
+ var _a, _b;
646
+ 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: [
647
+ /* @__PURE__ */ jsx20("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" }),
648
+ /* @__PURE__ */ jsx20("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" }),
649
+ /* @__PURE__ */ jsx20("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" }),
650
+ /* @__PURE__ */ jsx20("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" })
651
+ ] });
652
+ };
653
+ var slack_default = SvgSlack;
654
+
655
+ // src/theme/default/provider-logos/spotify.svg
656
+ import * as React15 from "react";
657
+ import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
658
+ var SvgSpotify = (props) => {
659
+ var _a, _b;
660
+ 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: [
661
+ /* @__PURE__ */ jsx21("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
662
+ /* @__PURE__ */ jsx21("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" })
663
+ ] });
664
+ };
665
+ var spotify_default = SvgSpotify;
666
+
667
+ // src/theme/default/provider-logos/yandex.svg
668
+ import * as React16 from "react";
669
+ import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
670
+ var SvgYandex = (props) => {
671
+ var _a, _b;
672
+ 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: [
673
+ /* @__PURE__ */ jsx22("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
674
+ /* @__PURE__ */ jsx22("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" })
675
+ ] });
676
+ };
677
+ var yandex_default = SvgYandex;
678
+
679
+ // src/theme/default/provider-logos/index.ts
680
+ var logos = {
681
+ apple: apple_default,
682
+ auth0: auth0_default,
683
+ discord: discord_default,
684
+ facebook: facebook_default,
685
+ generic: generic_default,
686
+ github: github_default,
687
+ gitlab: gitlab_default,
688
+ google: google_default,
689
+ linkedin: linkedin_default,
690
+ microsoft: microsoft_default,
691
+ slack: slack_default,
692
+ spotify: spotify_default,
693
+ yandex: yandex_default
694
+ };
695
+ var provider_logos_default = logos;
696
+
697
+ // src/theme/default/components/form/social.tsx
698
+ import { useIntl as useIntl3 } from "react-intl";
699
+ import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
700
+ function extractProvider(context) {
701
+ if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
702
+ return context.provider;
703
+ }
704
+ return void 0;
705
+ }
706
+ function DefaultButtonSocial({
707
+ attributes,
708
+ node,
709
+ onClick,
710
+ showLabel: _showLabel,
711
+ logos: providedLogos
712
+ }) {
713
+ var _a, _b, _c;
714
+ const logos2 = { ...provider_logos_default, ...providedLogos };
715
+ const {
716
+ node_type: _ignoredNodeType,
717
+ type: _ignoredType,
718
+ name: _ignoredName,
719
+ ...props
720
+ } = attributes;
721
+ const {
722
+ flow: { ui }
723
+ } = useOryFlow5();
724
+ const intl = useIntl3();
725
+ const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
726
+ const Logo = logos2[attributes.value];
727
+ const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
728
+ const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
729
+ return /* @__PURE__ */ jsxs18(
730
+ "button",
731
+ {
732
+ className: cn(
733
+ "gap-3 ring-1 ring-forms-border-default bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover transition-colors rounded flex items-center justify-center py-2.5 px-4 md:py-4",
734
+ { "py-2.5": showLabel }
735
+ ),
736
+ value: attributes.value,
737
+ type: "submit",
738
+ name: "provider",
739
+ ...props,
740
+ onClick,
741
+ children: [
742
+ /* @__PURE__ */ jsx23("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx23(
743
+ Logo,
744
+ {
745
+ size: 20
746
+ }
747
+ ) : /* @__PURE__ */ jsx23("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
748
+ showLabel && node.meta.label ? /* @__PURE__ */ jsx23("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
749
+ ]
750
+ }
751
+ );
752
+ }
753
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx23(DefaultButtonSocial, { ...props, logos: logos2 });
754
+ function DefaultSocialButtonContainer({
755
+ children,
756
+ nodes
757
+ }) {
758
+ return /* @__PURE__ */ jsx23(
759
+ "div",
760
+ {
761
+ className: cn("grid gap-3", {
762
+ // needed because tailwind is not compiling dynamic classes
763
+ "grid-cols-1": nodes.length % 4 <= 2,
764
+ "grid-cols-3": nodes.length % 3 === 0,
765
+ "grid-cols-4": nodes.length > 1 && nodes.length % 4 === 0
766
+ }),
767
+ children
768
+ }
769
+ );
770
+ }
771
+
772
+ // src/theme/default/components/form/index.tsx
773
+ import { jsx as jsx24 } from "react/jsx-runtime";
488
774
  function DefaultFormContainer({
489
775
  children,
490
776
  onSubmit,
491
777
  action,
492
778
  method
493
779
  }) {
494
- return /* @__PURE__ */ jsx10(
780
+ return /* @__PURE__ */ jsx24(
495
781
  "form",
496
782
  {
497
783
  onSubmit,
@@ -504,11 +790,11 @@ function DefaultFormContainer({
504
790
  );
505
791
  }
506
792
  function DefaultMessageContainer({ children }) {
507
- const { flowType } = useOryFlow5();
793
+ const { flowType } = useOryFlow6();
508
794
  if (!children || Array.isArray(children) && children.length === 0) {
509
795
  return null;
510
796
  }
511
- return /* @__PURE__ */ jsx10(
797
+ return /* @__PURE__ */ jsx24(
512
798
  "section",
513
799
  {
514
800
  className: cn(
@@ -519,56 +805,57 @@ function DefaultMessageContainer({ children }) {
519
805
  );
520
806
  }
521
807
  function DefaultMessage({ message }) {
522
- const intl = useIntl3();
523
- return /* @__PURE__ */ jsx10(
808
+ const intl = useIntl4();
809
+ return /* @__PURE__ */ jsx24(
524
810
  "span",
525
811
  {
526
- className: cn("text-sm mt-1 leading-normal", {
812
+ className: cn("text-sm leading-normal", {
527
813
  "text-forms-fg-error": message.type === "error",
528
814
  "text-forms-fg-default": message.type === "info",
529
815
  "text-forms-fg-success": message.type === "success"
530
816
  }),
531
- children: uiTextToFormattedMessage(message, intl)
817
+ ...messageTestId(message),
818
+ children: uiTextToFormattedMessage2(message, intl)
532
819
  }
533
820
  );
534
821
  }
535
822
 
536
823
  // src/theme/default/components/card/auth-methods.tsx
537
- import { useIntl as useIntl4 } from "react-intl";
824
+ import { useIntl as useIntl5 } from "react-intl";
538
825
 
539
826
  // src/theme/default/assets/icons/code.svg
540
- import * as React4 from "react";
541
- import { jsx as jsx11 } from "react/jsx-runtime";
827
+ import * as React17 from "react";
828
+ import { jsx as jsx25 } from "react/jsx-runtime";
542
829
  var SvgCode = (props) => {
543
830
  var _a, _b;
544
- return /* @__PURE__ */ jsx11("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__ */ jsx11("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" }) });
831
+ return /* @__PURE__ */ jsx25("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__ */ jsx25("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" }) });
545
832
  };
546
833
  var code_default = SvgCode;
547
834
 
548
835
  // src/theme/default/assets/icons/passkey.svg
549
- import * as React5 from "react";
550
- import { jsx as jsx12 } from "react/jsx-runtime";
836
+ import * as React18 from "react";
837
+ import { jsx as jsx26 } from "react/jsx-runtime";
551
838
  var SvgPasskey = (props) => {
552
839
  var _a, _b;
553
- return /* @__PURE__ */ jsx12("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__ */ jsx12("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" }) });
840
+ return /* @__PURE__ */ jsx26("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__ */ jsx26("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" }) });
554
841
  };
555
842
  var passkey_default = SvgPasskey;
556
843
 
557
844
  // src/theme/default/assets/icons/password.svg
558
- import * as React6 from "react";
559
- import { jsx as jsx13 } from "react/jsx-runtime";
845
+ import * as React19 from "react";
846
+ import { jsx as jsx27 } from "react/jsx-runtime";
560
847
  var SvgPassword = (props) => {
561
848
  var _a, _b;
562
- return /* @__PURE__ */ jsx13("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__ */ jsx13("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" }) });
849
+ return /* @__PURE__ */ jsx27("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__ */ jsx27("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" }) });
563
850
  };
564
851
  var password_default = SvgPassword;
565
852
 
566
853
  // src/theme/default/assets/icons/webauthn.svg
567
- import * as React7 from "react";
568
- import { jsx as jsx14 } from "react/jsx-runtime";
854
+ import * as React20 from "react";
855
+ import { jsx as jsx28 } from "react/jsx-runtime";
569
856
  var SvgWebauthn = (props) => {
570
857
  var _a, _b;
571
- return /* @__PURE__ */ jsx14("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__ */ jsx14("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" }) });
858
+ return /* @__PURE__ */ jsx28("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__ */ jsx28("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" }) });
572
859
  };
573
860
  var webauthn_default = SvgWebauthn;
574
861
 
@@ -578,7 +865,7 @@ function isGroupImmediateSubmit(group) {
578
865
  }
579
866
 
580
867
  // src/theme/default/components/card/auth-methods.tsx
581
- import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
868
+ import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
582
869
  var iconsMap = {
583
870
  code: code_default,
584
871
  passkey: passkey_default,
@@ -589,19 +876,22 @@ function DefaultAuthMethodListItem({
589
876
  onClick,
590
877
  group
591
878
  }) {
592
- const intl = useIntl4();
879
+ const intl = useIntl5();
593
880
  const Icon = iconsMap[group] || null;
594
- return /* @__PURE__ */ jsx15("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ jsxs8(
881
+ return /* @__PURE__ */ jsx29("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ jsxs19(
595
882
  "button",
596
883
  {
597
884
  className: "flex text-left py-2 gap-3 cursor-pointer",
598
885
  onClick,
599
886
  type: isGroupImmediateSubmit(group) ? "submit" : "button",
887
+ id: `auth-method-list-item-${group}`,
888
+ "data-testid": "auth-method-list-item",
889
+ "aria-label": `Authenticate with ${group}`,
600
890
  children: [
601
- /* @__PURE__ */ jsx15("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ jsx15(Icon, { size: 20, className: "text-forms-fg-default" }) }),
602
- /* @__PURE__ */ jsxs8("div", { className: "flex-1 text-sm leading-normal", children: [
603
- /* @__PURE__ */ jsx15("div", { className: "text-forms-fg-default text-sm", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
604
- /* @__PURE__ */ jsx15("div", { className: "text-forms-fg-mute text-sm", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
891
+ /* @__PURE__ */ jsx29("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ jsx29(Icon, { size: 20, className: "text-forms-fg-default" }) }),
892
+ /* @__PURE__ */ jsxs19("div", { className: "flex-1 text-sm leading-normal", children: [
893
+ /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-default text-sm", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
894
+ /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-mute text-sm", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
605
895
  ] })
606
896
  ]
607
897
  }
@@ -611,15 +901,15 @@ function DefaultAuthMethodListItem({
611
901
  // src/theme/default/components/form/button.tsx
612
902
  import { FlowType as FlowType5, getNodeLabel } from "@ory/client-fetch";
613
903
  import {
614
- uiTextToFormattedMessage as uiTextToFormattedMessage2
904
+ uiTextToFormattedMessage as uiTextToFormattedMessage3
615
905
  } from "@ory/elements-react";
616
906
  import { useFormContext as useFormContext2 } from "react-hook-form";
617
- import { useIntl as useIntl5 } from "react-intl";
907
+ import { useIntl as useIntl6 } from "react-intl";
618
908
 
619
909
  // src/theme/default/components/form/spinner.tsx
620
- import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
910
+ import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
621
911
  function Spinner({ className }) {
622
- return /* @__PURE__ */ jsxs9(
912
+ return /* @__PURE__ */ jsxs20(
623
913
  "svg",
624
914
  {
625
915
  "aria-hidden": "true",
@@ -632,7 +922,7 @@ function Spinner({ className }) {
632
922
  fill: "none",
633
923
  xmlns: "http://www.w3.org/2000/svg",
634
924
  children: [
635
- /* @__PURE__ */ jsx16("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx16(
925
+ /* @__PURE__ */ jsx30("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx30(
636
926
  "path",
637
927
  {
638
928
  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",
@@ -641,7 +931,7 @@ function Spinner({ className }) {
641
931
  strokeLinejoin: "round"
642
932
  }
643
933
  ) }),
644
- /* @__PURE__ */ jsx16("defs", { children: /* @__PURE__ */ jsx16("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx16(
934
+ /* @__PURE__ */ jsx30("defs", { children: /* @__PURE__ */ jsx30("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx30(
645
935
  "rect",
646
936
  {
647
937
  width: "24",
@@ -656,9 +946,9 @@ function Spinner({ className }) {
656
946
  }
657
947
 
658
948
  // src/theme/default/components/form/button.tsx
659
- import { useOryFlow as useOryFlow6 } from "@ory/elements-react";
949
+ import { useOryFlow as useOryFlow7 } from "@ory/elements-react";
660
950
  import { cva } from "class-variance-authority";
661
- import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
951
+ import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
662
952
  var buttonStyles = cva(
663
953
  [
664
954
  "ring-1 relative overflow-hidden ring-inset rounded text-sm leading-none flex gap-3 justify-center",
@@ -711,16 +1001,16 @@ var DefaultButton = ({
711
1001
  // End of skipped attributes
712
1002
  ...rest
713
1003
  } = attributes;
714
- const intl = useIntl5();
1004
+ const intl = useIntl6();
715
1005
  const label = getNodeLabel(node);
716
- const { flowType } = useOryFlow6();
1006
+ const { flowType } = useOryFlow7();
717
1007
  const {
718
1008
  formState: { isSubmitting },
719
1009
  setValue
720
1010
  } = useFormContext2();
721
1011
  const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
722
1012
  const isSmall = flowType === FlowType5.Settings && attributes.name !== "webauthn_register_trigger";
723
- return /* @__PURE__ */ jsxs10(
1013
+ return /* @__PURE__ */ jsxs21(
724
1014
  "button",
725
1015
  {
726
1016
  ...rest,
@@ -743,8 +1033,8 @@ var DefaultButton = ({
743
1033
  disabled: (_a = rest.disabled) != null ? _a : true,
744
1034
  "data-loading": isSubmitting,
745
1035
  children: [
746
- isSubmitting ? /* @__PURE__ */ jsx17(Spinner, {}) : null,
747
- label ? uiTextToFormattedMessage2(label, intl) : ""
1036
+ isSubmitting ? /* @__PURE__ */ jsx31(Spinner, {}) : null,
1037
+ label ? uiTextToFormattedMessage3(label, intl) : ""
748
1038
  ]
749
1039
  }
750
1040
  );
@@ -754,18 +1044,18 @@ DefaultButton.displayName = "DefaultButton";
754
1044
  // src/theme/default/components/form/checkbox.tsx
755
1045
  import { getNodeLabel as getNodeLabel2 } from "@ory/client-fetch";
756
1046
  import {
757
- messageTestId,
758
- uiTextToFormattedMessage as uiTextToFormattedMessage4
1047
+ messageTestId as messageTestId2,
1048
+ uiTextToFormattedMessage as uiTextToFormattedMessage5
759
1049
  } from "@ory/elements-react";
760
1050
  import { useState } from "react";
761
1051
  import { useForm } from "react-hook-form";
762
- import { useIntl as useIntl7 } from "react-intl";
1052
+ import { useIntl as useIntl8 } from "react-intl";
763
1053
 
764
1054
  // src/theme/default/components/ui/checkbox-label.tsx
765
- import { useIntl as useIntl6 } from "react-intl";
1055
+ import { useIntl as useIntl7 } from "react-intl";
766
1056
 
767
1057
  // src/util/i18n/index.ts
768
- var uiTextToFormattedMessage3 = ({ id, context = {}, text }, intl) => {
1058
+ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
769
1059
  const contextInjectedMessage = Object.entries(context).reduce(
770
1060
  (accumulator, [key, value]) => {
771
1061
  if (Array.isArray(value)) {
@@ -813,7 +1103,7 @@ var uiTextToFormattedMessage3 = ({ id, context = {}, text }, intl) => {
813
1103
  };
814
1104
 
815
1105
  // src/theme/default/components/ui/checkbox-label.tsx
816
- import { Fragment as Fragment2, jsx as jsx18 } from "react/jsx-runtime";
1106
+ import { Fragment as Fragment2, jsx as jsx32 } from "react/jsx-runtime";
817
1107
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
818
1108
  function computeLabelElements(labelText) {
819
1109
  const elements = [];
@@ -829,7 +1119,7 @@ function computeLabelElements(labelText) {
829
1119
  elements.push(labelText.slice(lastIndex, matchStart));
830
1120
  }
831
1121
  elements.push(
832
- /* @__PURE__ */ jsx18(
1122
+ /* @__PURE__ */ jsx32(
833
1123
  "a",
834
1124
  {
835
1125
  href: url,
@@ -849,18 +1139,18 @@ function computeLabelElements(labelText) {
849
1139
  return elements;
850
1140
  }
851
1141
  function CheckboxLabel({ label }) {
852
- const intl = useIntl6();
1142
+ const intl = useIntl7();
853
1143
  if (!label) {
854
1144
  return null;
855
1145
  }
856
- const labelText = uiTextToFormattedMessage3(label, intl);
857
- return /* @__PURE__ */ jsx18(Fragment2, { children: computeLabelElements(labelText) });
1146
+ const labelText = uiTextToFormattedMessage4(label, intl);
1147
+ return /* @__PURE__ */ jsx32(Fragment2, { children: computeLabelElements(labelText) });
858
1148
  }
859
1149
 
860
1150
  // src/theme/default/components/form/checkbox.tsx
861
- import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
1151
+ import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
862
1152
  function CheckboxSVG() {
863
- return /* @__PURE__ */ jsxs11(
1153
+ return /* @__PURE__ */ jsxs22(
864
1154
  "svg",
865
1155
  {
866
1156
  className: "absolute w-4 h-4 hidden peer-checked:block",
@@ -870,14 +1160,14 @@ function CheckboxSVG() {
870
1160
  viewBox: "0 0 16 16",
871
1161
  fill: "none",
872
1162
  children: [
873
- /* @__PURE__ */ jsx19(
1163
+ /* @__PURE__ */ jsx33(
874
1164
  "path",
875
1165
  {
876
1166
  d: "M0 4C0 1.79086 1.79086 0 4 0H12C14.2091 0 16 1.79086 16 4V12C16 14.2091 14.2091 16 12 16H4C1.79086 16 0 14.2091 0 12V4Z",
877
1167
  fill: "#0F172A"
878
1168
  }
879
1169
  ),
880
- /* @__PURE__ */ jsx19(
1170
+ /* @__PURE__ */ jsx33(
881
1171
  "path",
882
1172
  {
883
1173
  fillRule: "evenodd",
@@ -904,11 +1194,11 @@ var DefaultCheckbox = ({
904
1194
  // End of skipped attributes
905
1195
  ...attributes
906
1196
  } = initialAttributes;
907
- const intl = useIntl7();
1197
+ const intl = useIntl8();
908
1198
  const label = getNodeLabel2(node);
909
1199
  const [checked, setChecked] = useState(Boolean(value));
910
1200
  const { register } = useForm();
911
- return /* @__PURE__ */ jsxs11(
1201
+ return /* @__PURE__ */ jsxs22(
912
1202
  "div",
913
1203
  {
914
1204
  className: "flex antialiased gap-3 self-stretch item-start",
@@ -916,8 +1206,8 @@ var DefaultCheckbox = ({
916
1206
  setChecked(!checked);
917
1207
  },
918
1208
  children: [
919
- /* @__PURE__ */ jsxs11("div", { className: "flex h-5 items-center", children: [
920
- /* @__PURE__ */ jsx19(
1209
+ /* @__PURE__ */ jsxs22("div", { className: "flex h-5 items-center", children: [
1210
+ /* @__PURE__ */ jsx33(
921
1211
  "input",
922
1212
  {
923
1213
  ...attributes,
@@ -932,16 +1222,16 @@ var DefaultCheckbox = ({
932
1222
  ...register(name, { value })
933
1223
  }
934
1224
  ),
935
- /* @__PURE__ */ jsx19(CheckboxSVG, {})
1225
+ /* @__PURE__ */ jsx33(CheckboxSVG, {})
936
1226
  ] }),
937
- /* @__PURE__ */ jsxs11("div", { className: "text-sm items-center", children: [
938
- /* @__PURE__ */ jsx19("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ jsx19(CheckboxLabel, { label }) }),
939
- node.messages.map((message) => /* @__PURE__ */ jsx19(
1227
+ /* @__PURE__ */ jsxs22("div", { className: "text-sm items-center", children: [
1228
+ /* @__PURE__ */ jsx33("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ jsx33(CheckboxLabel, { label }) }),
1229
+ node.messages.map((message) => /* @__PURE__ */ jsx33(
940
1230
  "span",
941
1231
  {
942
1232
  className: "text-sm text-red-900 mt-1",
943
- ...messageTestId(message),
944
- children: uiTextToFormattedMessage4(message, intl)
1233
+ ...messageTestId2(message),
1234
+ children: uiTextToFormattedMessage5(message, intl)
945
1235
  },
946
1236
  message.id
947
1237
  ))
@@ -952,32 +1242,32 @@ var DefaultCheckbox = ({
952
1242
  };
953
1243
 
954
1244
  // src/theme/default/components/form/group-container.tsx
955
- import { jsx as jsx20 } from "react/jsx-runtime";
1245
+ import { jsx as jsx34 } from "react/jsx-runtime";
956
1246
  function DefaultGroupContainer({ children }) {
957
- return /* @__PURE__ */ jsx20("div", { className: "grid grid-cols-1 gap-6", children });
1247
+ return /* @__PURE__ */ jsx34("div", { className: "grid grid-cols-1 gap-6", children });
958
1248
  }
959
1249
 
960
1250
  // src/theme/default/components/form/horizontal-divider.tsx
961
- import { jsx as jsx21 } from "react/jsx-runtime";
1251
+ import { jsx as jsx35 } from "react/jsx-runtime";
962
1252
  function DefaultHorizontalDivider() {
963
- return /* @__PURE__ */ jsx21("hr", { className: "border-dialog-border-default" });
1253
+ return /* @__PURE__ */ jsx35("hr", { className: "border-dialog-border-default" });
964
1254
  }
965
1255
 
966
1256
  // src/theme/default/components/form/image.tsx
967
- import { jsx as jsx22 } from "react/jsx-runtime";
1257
+ import { jsx as jsx36 } from "react/jsx-runtime";
968
1258
  function DefaultImage({ attributes }) {
969
- return /* @__PURE__ */ jsx22("figure", { children: /* @__PURE__ */ jsx22("img", { ...attributes }) });
1259
+ return /* @__PURE__ */ jsx36("figure", { children: /* @__PURE__ */ jsx36("img", { ...attributes }) });
970
1260
  }
971
1261
 
972
1262
  // src/theme/default/components/form/input.tsx
973
1263
  import { FlowType as FlowType6, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
974
1264
  import {
975
- uiTextToFormattedMessage as uiTextToFormattedMessage5,
976
- useOryFlow as useOryFlow7
1265
+ uiTextToFormattedMessage as uiTextToFormattedMessage6,
1266
+ useOryFlow as useOryFlow8
977
1267
  } from "@ory/elements-react";
978
1268
  import { useFormContext as useFormContext3 } from "react-hook-form";
979
- import { useIntl as useIntl8 } from "react-intl";
980
- import { jsx as jsx23 } from "react/jsx-runtime";
1269
+ import { useIntl as useIntl9 } from "react-intl";
1270
+ import { jsx as jsx37 } from "react/jsx-runtime";
981
1271
  var DefaultInput = ({
982
1272
  node,
983
1273
  attributes,
@@ -993,18 +1283,18 @@ var DefaultInput = ({
993
1283
  node_type: _,
994
1284
  ...rest
995
1285
  } = attributes;
996
- const intl = useIntl8();
997
- const { flowType } = useOryFlow7();
1286
+ const intl = useIntl9();
1287
+ const { flowType } = useOryFlow8();
998
1288
  const formattedLabel = label ? intl.formatMessage(
999
1289
  {
1000
1290
  id: "input.placeholder",
1001
1291
  defaultMessage: "Enter your {placeholder}"
1002
1292
  },
1003
1293
  {
1004
- placeholder: uiTextToFormattedMessage5(label, intl)
1294
+ placeholder: uiTextToFormattedMessage6(label, intl)
1005
1295
  }
1006
1296
  ) : "";
1007
- return /* @__PURE__ */ jsx23(
1297
+ return /* @__PURE__ */ jsx37(
1008
1298
  "input",
1009
1299
  {
1010
1300
  ...rest,
@@ -1024,41 +1314,58 @@ var DefaultInput = ({
1024
1314
  };
1025
1315
 
1026
1316
  // src/theme/default/components/form/label.tsx
1027
- import { FlowType as FlowType7, getNodeLabel as getNodeLabel4 } from "@ory/client-fetch";
1028
1317
  import {
1029
- messageTestId as messageTestId2,
1030
- uiTextToFormattedMessage as uiTextToFormattedMessage6,
1031
- useOryFlow as useOryFlow8
1318
+ FlowType as FlowType7,
1319
+ getNodeLabel as getNodeLabel4,
1320
+ instanceOfUiText
1321
+ } from "@ory/client-fetch";
1322
+ import {
1323
+ messageTestId as messageTestId3,
1324
+ uiTextToFormattedMessage as uiTextToFormattedMessage7,
1325
+ useComponents as useComponents2,
1326
+ useOryFlow as useOryFlow9
1032
1327
  } from "@ory/elements-react";
1033
- import { useIntl as useIntl9 } from "react-intl";
1034
- import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
1328
+ import { useFormContext as useFormContext4 } from "react-hook-form";
1329
+ import { useIntl as useIntl10 } from "react-intl";
1330
+ import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
1331
+ function findResendNode(nodes) {
1332
+ return nodes.find(
1333
+ (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
1334
+ );
1335
+ }
1035
1336
  function DefaultLabel({
1036
1337
  node,
1037
1338
  children,
1038
1339
  attributes,
1039
1340
  ...rest
1040
1341
  }) {
1041
- const intl = useIntl9();
1342
+ const intl = useIntl10();
1042
1343
  const label = getNodeLabel4(node);
1043
- const { config, flowType, flow } = useOryFlow8();
1344
+ const { Message } = useComponents2();
1345
+ const { config, flowType, flow } = useOryFlow9();
1346
+ const { setValue, formState } = useFormContext4();
1044
1347
  const isPassword = attributes.type === "password";
1045
- const hasResendNode = flow.ui.nodes.some(
1046
- (n) => "name" in n.attributes && n.attributes.name === "email" && n.attributes.type === "submit"
1047
- );
1048
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col antialiased gap-1", children: [
1049
- label && /* @__PURE__ */ jsxs12("span", { className: "inline-flex justify-between", children: [
1050
- /* @__PURE__ */ jsx24(
1348
+ const resendNode = findResendNode(flow.ui.nodes);
1349
+ const handleResend = () => {
1350
+ if ((resendNode == null ? void 0 : resendNode.attributes) && "name" in resendNode.attributes) {
1351
+ setValue(resendNode.attributes.name, resendNode.attributes.value);
1352
+ }
1353
+ };
1354
+ const fieldError = formState.errors[attributes.name];
1355
+ return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col antialiased gap-1", children: [
1356
+ label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
1357
+ /* @__PURE__ */ jsx38(
1051
1358
  "label",
1052
1359
  {
1053
- ...messageTestId2(label),
1360
+ ...messageTestId3(label),
1054
1361
  className: "text-sm font-medium leading-normal",
1055
1362
  htmlFor: attributes.name,
1056
1363
  ...rest,
1057
- children: uiTextToFormattedMessage6(label, intl)
1364
+ children: uiTextToFormattedMessage7(label, intl)
1058
1365
  }
1059
1366
  ),
1060
1367
  isPassword && config.project.recovery_enabled && flowType === FlowType7.Login && // TODO: make it possible to override with a custom component
1061
- /* @__PURE__ */ jsx24(
1368
+ /* @__PURE__ */ jsx38(
1062
1369
  "a",
1063
1370
  {
1064
1371
  href: config.project.recovery_ui_url,
@@ -1069,68 +1376,58 @@ function DefaultLabel({
1069
1376
  })
1070
1377
  }
1071
1378
  ),
1072
- hasResendNode && /* @__PURE__ */ jsx24(
1379
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx38(
1073
1380
  "button",
1074
1381
  {
1075
1382
  type: "submit",
1076
- name: "method",
1077
- value: "code",
1383
+ name: resendNode.attributes.name,
1384
+ value: resendNode.attributes.value,
1385
+ onClick: handleResend,
1078
1386
  className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium cursor-pointer",
1079
1387
  children: intl.formatMessage({ id: "identities.messages.1070008" })
1080
1388
  }
1081
1389
  )
1082
1390
  ] }),
1083
1391
  children,
1084
- node.messages.map((message) => /* @__PURE__ */ jsx24(
1085
- "span",
1086
- {
1087
- className: cn("text-sm leading-normal", {
1088
- "text-forms-fg-error": message.type === "error",
1089
- "text-forms-fg-default": message.type === "info",
1090
- "text-forms-fg-success": message.type === "success"
1091
- }),
1092
- ...messageTestId2(message),
1093
- children: uiTextToFormattedMessage6(message, intl)
1094
- },
1095
- message.id
1096
- ))
1392
+ node.messages.map((message) => /* @__PURE__ */ jsx38(Message.Content, { message }, message.id)),
1393
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx38(Message.Content, { message: fieldError })
1097
1394
  ] });
1098
1395
  }
1099
1396
 
1100
1397
  // src/theme/default/components/form/link-button.tsx
1101
1398
  import { getNodeLabel as getNodeLabel5 } from "@ory/client-fetch";
1102
1399
  import {
1103
- uiTextToFormattedMessage as uiTextToFormattedMessage7
1400
+ uiTextToFormattedMessage as uiTextToFormattedMessage8
1104
1401
  } from "@ory/elements-react";
1105
1402
  import { forwardRef } from "react";
1106
- import { useIntl as useIntl10 } from "react-intl";
1107
- import { jsx as jsx25 } from "react/jsx-runtime";
1403
+ import { useIntl as useIntl11 } from "react-intl";
1404
+ import { jsx as jsx39 } from "react/jsx-runtime";
1108
1405
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1109
- const intl = useIntl10();
1406
+ const intl = useIntl11();
1110
1407
  const label = getNodeLabel5(node);
1111
- return /* @__PURE__ */ jsx25(
1408
+ return /* @__PURE__ */ jsx39(
1112
1409
  "a",
1113
1410
  {
1114
1411
  ...attributes,
1115
1412
  ref,
1116
- title: label ? uiTextToFormattedMessage7(label, intl) : "",
1413
+ title: label ? uiTextToFormattedMessage8(label, intl) : "",
1117
1414
  className: cn(
1118
1415
  "antialiased rounded cursor-pointer text-center border border-transparent gap-3 leading-none bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm font-medium"
1119
1416
  ),
1120
- children: label ? uiTextToFormattedMessage7(label, intl) : ""
1417
+ children: label ? uiTextToFormattedMessage8(label, intl) : ""
1121
1418
  }
1122
1419
  );
1123
1420
  });
1124
1421
  DefaultLinkButton.displayName = "DefaultLinkButton";
1125
1422
 
1126
1423
  // src/theme/default/components/form/pin-code-input.tsx
1127
- import { useFormContext as useFormContext4 } from "react-hook-form";
1424
+ import { useFormContext as useFormContext5 } from "react-hook-form";
1128
1425
 
1129
1426
  // src/theme/default/components/form/shadcn/otp-input.tsx
1130
1427
  import { OTPInput, OTPInputContext } from "input-otp";
1131
- import * as React8 from "react";
1132
- import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
1133
- var InputOTP = React8.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx26(
1428
+ import * as React21 from "react";
1429
+ import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
1430
+ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx40(
1134
1431
  OTPInput,
1135
1432
  {
1136
1433
  ref,
@@ -1143,12 +1440,12 @@ var InputOTP = React8.forwardRef(({ className, containerClassName, ...props }, r
1143
1440
  }
1144
1441
  ));
1145
1442
  InputOTP.displayName = "InputOTP";
1146
- var InputOTPGroup = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26("div", { ref, className: cn("flex items-center", className), ...props }));
1443
+ var InputOTPGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40("div", { ref, className: cn("flex items-center", className), ...props }));
1147
1444
  InputOTPGroup.displayName = "InputOTPGroup";
1148
- var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1149
- const inputOTPContext = React8.useContext(OTPInputContext);
1445
+ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
1446
+ const inputOTPContext = React21.useContext(OTPInputContext);
1150
1447
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1151
- return /* @__PURE__ */ jsxs13(
1448
+ return /* @__PURE__ */ jsxs24(
1152
1449
  "div",
1153
1450
  {
1154
1451
  ref,
@@ -1160,7 +1457,7 @@ var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1160
1457
  ...props,
1161
1458
  children: [
1162
1459
  char,
1163
- hasFakeCaret && /* @__PURE__ */ jsx26("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx26("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1460
+ hasFakeCaret && /* @__PURE__ */ jsx40("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx40("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1164
1461
  ]
1165
1462
  }
1166
1463
  );
@@ -1168,23 +1465,23 @@ var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1168
1465
  InputOTPSlot.displayName = "InputOTPSlot";
1169
1466
 
1170
1467
  // src/theme/default/components/form/pin-code-input.tsx
1171
- import { jsx as jsx27 } from "react/jsx-runtime";
1468
+ import { jsx as jsx41 } from "react/jsx-runtime";
1172
1469
  var DefaultPinCodeInput = ({ attributes }) => {
1173
- const { setValue, watch } = useFormContext4();
1470
+ const { setValue, watch } = useFormContext5();
1174
1471
  const { maxlength, name } = attributes;
1175
1472
  const elements = maxlength != null ? maxlength : 6;
1176
1473
  const handleInputChange = (v) => {
1177
1474
  setValue(name, v);
1178
1475
  };
1179
1476
  const value = watch(name);
1180
- return /* @__PURE__ */ jsx27(
1477
+ return /* @__PURE__ */ jsx41(
1181
1478
  InputOTP,
1182
1479
  {
1183
1480
  maxLength: maxlength != null ? maxlength : 6,
1184
1481
  onChange: handleInputChange,
1185
1482
  name,
1186
1483
  value,
1187
- children: /* @__PURE__ */ jsx27(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx27(
1484
+ children: /* @__PURE__ */ jsx41(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx41(
1188
1485
  InputOTPSlot,
1189
1486
  {
1190
1487
  index,
@@ -1197,301 +1494,42 @@ var DefaultPinCodeInput = ({ attributes }) => {
1197
1494
  };
1198
1495
 
1199
1496
  // src/theme/default/components/form/section.tsx
1200
- import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
1497
+ import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
1201
1498
  var DefaultFormSection = ({ children }) => {
1202
- return /* @__PURE__ */ jsx28("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1499
+ return /* @__PURE__ */ jsx42("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1203
1500
  };
1204
1501
  var DefaultFormSectionContent = ({
1205
1502
  title,
1206
1503
  description,
1207
1504
  children
1208
1505
  }) => {
1209
- return /* @__PURE__ */ jsxs14("div", { className: "border rounded-t-xl border-b-0 border-dialog-border-default bg-forms-bg-default px-6 py-8 flex flex-col gap-8", children: [
1210
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
1211
- /* @__PURE__ */ jsx28("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1212
- /* @__PURE__ */ jsx28("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1506
+ return /* @__PURE__ */ jsxs25("div", { className: "border rounded-t-xl border-b-0 border-dialog-border-default bg-forms-bg-default px-6 py-8 flex flex-col gap-8", children: [
1507
+ /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1508
+ /* @__PURE__ */ jsx42("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1509
+ /* @__PURE__ */ jsx42("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1213
1510
  ] }),
1214
1511
  children
1215
1512
  ] });
1216
1513
  };
1217
1514
  var DefaultFormSectionFooter = ({ children }) => {
1218
- return /* @__PURE__ */ jsx28("div", { className: "rounded-b-xl gap-2 flex justify-end px-6 py-4 bg-dialog-bg-subtle border border-dialog-border-default text-sm text-dialog-fg-mute items-center [&>span]:mr-auto min-h-[72px]", children });
1219
- };
1220
-
1221
- // src/theme/default/components/form/social.tsx
1222
- import {
1223
- uiTextToFormattedMessage as uiTextToFormattedMessage8,
1224
- useOryFlow as useOryFlow9
1225
- } from "@ory/elements-react";
1226
-
1227
- // src/theme/default/provider-logos/apple.svg
1228
- import * as React9 from "react";
1229
- import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
1230
- var SvgApple = (props) => {
1231
- var _a, _b;
1232
- 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: [
1233
- /* @__PURE__ */ jsx29("path", { fill: "#283544", d: "M30 16c0 7.728-6.265 14-14 14S2 23.728 2 16C2 8.265 8.265 2 16 2s14 6.265 14 14" }),
1234
- /* @__PURE__ */ jsx29("path", { fill: "#fff", d: "M22.562 12.457c-.076.045-1.895.986-1.895 3.07.086 2.38 2.295 3.213 2.333 3.213-.038.045-.334 1.136-1.21 2.28-.694.986-1.466 1.98-2.637 1.98-1.114 0-1.514-.657-2.8-.657-1.381 0-1.772.657-2.829.657-1.171 0-2-1.047-2.733-2.023-.952-1.278-1.761-3.284-1.79-5.21-.02-1.02.19-2.023.724-2.875.752-1.19 2.095-1.997 3.561-2.023 1.124-.036 2.124.719 2.81.719.657 0 1.885-.72 3.275-.72.6.001 2.2.17 3.191 1.59m-6.561-1.792c-.2-.932.352-1.864.866-2.458.657-.72 1.695-1.207 2.59-1.207a3.33 3.33 0 0 1-.952 2.511c-.58.72-1.58 1.26-2.504 1.154" })
1235
- ] });
1515
+ return /* @__PURE__ */ jsx42("div", { className: "rounded-b-xl gap-2 flex justify-end px-6 py-4 bg-dialog-bg-subtle border border-dialog-border-default text-sm text-dialog-fg-mute items-center [&>span]:mr-auto min-h-[72px]", children });
1236
1516
  };
1237
- var apple_default = SvgApple;
1238
-
1239
- // src/theme/default/provider-logos/auth0.svg
1240
- import * as React10 from "react";
1241
- import { jsx as jsx30 } from "react/jsx-runtime";
1242
- var SvgAuth0 = (props) => {
1243
- var _a, _b;
1244
- return /* @__PURE__ */ jsx30("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__ */ jsx30("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" }) });
1245
- };
1246
- var auth0_default = SvgAuth0;
1247
-
1248
- // src/theme/default/provider-logos/discord.svg
1249
- import * as React11 from "react";
1250
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
1251
- var SvgDiscord = (props) => {
1252
- var _a, _b;
1253
- 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: [
1254
- /* @__PURE__ */ jsx31("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" }),
1255
- /* @__PURE__ */ jsx31("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" })
1256
- ] });
1257
- };
1258
- var discord_default = SvgDiscord;
1259
-
1260
- // src/theme/default/provider-logos/facebook.svg
1261
- import * as React12 from "react";
1262
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
1263
- var SvgFacebook = (props) => {
1264
- var _a, _b;
1265
- return /* @__PURE__ */ jsxs17("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: [
1266
- /* @__PURE__ */ jsxs17("g", { clipPath: "url(#facebook_svg__a)", children: [
1267
- /* @__PURE__ */ jsx32("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
1268
- /* @__PURE__ */ jsx32("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
1269
- ] }),
1270
- /* @__PURE__ */ jsx32("defs", { children: /* @__PURE__ */ jsx32("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx32("rect", { fill: "#fff" }) }) })
1271
- ] });
1272
- };
1273
- var facebook_default = SvgFacebook;
1274
-
1275
- // src/theme/default/provider-logos/generic.svg
1276
- import * as React13 from "react";
1277
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
1278
- var SvgGeneric = (props) => {
1279
- var _a, _b;
1280
- return /* @__PURE__ */ jsxs18("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: [
1281
- /* @__PURE__ */ jsx33("path", { stroke: "none", d: "M0 0h24v24H0z" }),
1282
- /* @__PURE__ */ jsx33("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
1283
- /* @__PURE__ */ jsx33("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" })
1284
- ] });
1285
- };
1286
- var generic_default = SvgGeneric;
1287
-
1288
- // src/theme/default/provider-logos/github.svg
1289
- import * as React14 from "react";
1290
- import { jsx as jsx34 } from "react/jsx-runtime";
1291
- var SvgGithub = (props) => {
1292
- var _a, _b;
1293
- return /* @__PURE__ */ jsx34("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__ */ jsx34("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" }) });
1294
- };
1295
- var github_default = SvgGithub;
1296
-
1297
- // src/theme/default/provider-logos/gitlab.svg
1298
- import * as React15 from "react";
1299
- import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
1300
- var SvgGitlab = (props) => {
1301
- var _a, _b;
1302
- return /* @__PURE__ */ jsxs19("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: [
1303
- /* @__PURE__ */ jsx35("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" }),
1304
- /* @__PURE__ */ jsx35("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" }),
1305
- /* @__PURE__ */ jsx35("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" }),
1306
- /* @__PURE__ */ jsx35("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" })
1307
- ] });
1308
- };
1309
- var gitlab_default = SvgGitlab;
1310
-
1311
- // src/theme/default/provider-logos/google.svg
1312
- import * as React16 from "react";
1313
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
1314
- var SvgGoogle = (props) => {
1315
- var _a, _b;
1316
- return /* @__PURE__ */ jsxs20("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: [
1317
- /* @__PURE__ */ jsx36("path", { fill: "#4285F4", d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82" }),
1318
- /* @__PURE__ */ jsx36("path", { fill: "#34A853", d: "M12.255 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96h-3.98v3.09C3.515 21.3 7.565 24 12.255 24" }),
1319
- /* @__PURE__ */ jsx36("path", { fill: "#FBBC05", d: "M5.525 14.29c-.25-.72-.38-1.49-.38-2.29s.14-1.57.38-2.29V6.62h-3.98a11.86 11.86 0 0 0 0 10.76z" }),
1320
- /* @__PURE__ */ jsx36("path", { fill: "#EA4335", d: "M12.255 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C18.205 1.19 15.495 0 12.255 0c-4.69 0-8.74 2.7-10.71 6.62l3.98 3.09c.95-2.85 3.6-4.96 6.73-4.96" })
1321
- ] });
1322
- };
1323
- var google_default = SvgGoogle;
1324
-
1325
- // src/theme/default/provider-logos/linkedin.svg
1326
- import * as React17 from "react";
1327
- import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
1328
- var SvgLinkedin = (props) => {
1329
- var _a, _b;
1330
- return /* @__PURE__ */ jsxs21("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: [
1331
- /* @__PURE__ */ jsx37("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
1332
- /* @__PURE__ */ jsx37("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" })
1333
- ] });
1334
- };
1335
- var linkedin_default = SvgLinkedin;
1336
-
1337
- // src/theme/default/provider-logos/microsoft.svg
1338
- import * as React18 from "react";
1339
- import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
1340
- var SvgMicrosoft = (props) => {
1341
- var _a, _b;
1342
- return /* @__PURE__ */ jsxs22("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: [
1343
- /* @__PURE__ */ jsx38("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
1344
- /* @__PURE__ */ jsx38("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
1345
- /* @__PURE__ */ jsx38("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
1346
- /* @__PURE__ */ jsx38("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
1347
- ] });
1348
- };
1349
- var microsoft_default = SvgMicrosoft;
1350
-
1351
- // src/theme/default/provider-logos/slack.svg
1352
- import * as React19 from "react";
1353
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
1354
- var SvgSlack = (props) => {
1355
- var _a, _b;
1356
- return /* @__PURE__ */ jsxs23("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1357
- /* @__PURE__ */ jsx39("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" }),
1358
- /* @__PURE__ */ jsx39("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" }),
1359
- /* @__PURE__ */ jsx39("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" }),
1360
- /* @__PURE__ */ jsx39("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" })
1361
- ] });
1362
- };
1363
- var slack_default = SvgSlack;
1364
-
1365
- // src/theme/default/provider-logos/spotify.svg
1366
- import * as React20 from "react";
1367
- import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
1368
- var SvgSpotify = (props) => {
1369
- var _a, _b;
1370
- return /* @__PURE__ */ jsxs24("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: [
1371
- /* @__PURE__ */ jsx40("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
1372
- /* @__PURE__ */ jsx40("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" })
1373
- ] });
1374
- };
1375
- var spotify_default = SvgSpotify;
1376
-
1377
- // src/theme/default/provider-logos/yandex.svg
1378
- import * as React21 from "react";
1379
- import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
1380
- var SvgYandex = (props) => {
1381
- var _a, _b;
1382
- return /* @__PURE__ */ jsxs25("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1383
- /* @__PURE__ */ jsx41("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
1384
- /* @__PURE__ */ jsx41("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" })
1385
- ] });
1386
- };
1387
- var yandex_default = SvgYandex;
1388
-
1389
- // src/theme/default/provider-logos/index.ts
1390
- var logos = {
1391
- apple: apple_default,
1392
- auth0: auth0_default,
1393
- discord: discord_default,
1394
- facebook: facebook_default,
1395
- generic: generic_default,
1396
- github: github_default,
1397
- gitlab: gitlab_default,
1398
- google: google_default,
1399
- linkedin: linkedin_default,
1400
- microsoft: microsoft_default,
1401
- slack: slack_default,
1402
- spotify: spotify_default,
1403
- yandex: yandex_default
1404
- };
1405
- var provider_logos_default = logos;
1406
-
1407
- // src/theme/default/components/form/social.tsx
1408
- import { useIntl as useIntl11 } from "react-intl";
1409
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
1410
- function extractProvider(context) {
1411
- if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
1412
- return context.provider;
1413
- }
1414
- return void 0;
1415
- }
1416
- function DefaultButtonSocial({
1417
- attributes,
1418
- node,
1419
- onClick,
1420
- showLabel: _showLabel
1421
- }) {
1422
- var _a, _b, _c;
1423
- const {
1424
- node_type: _ignoredNodeType,
1425
- type: _ignoredType,
1426
- name: _ignoredName,
1427
- ...props
1428
- } = attributes;
1429
- const {
1430
- flow: { ui }
1431
- } = useOryFlow9();
1432
- const intl = useIntl11();
1433
- const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
1434
- const Logo = provider_logos_default[attributes.value];
1435
- const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
1436
- const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
1437
- return /* @__PURE__ */ jsxs26(
1438
- "button",
1439
- {
1440
- className: cn(
1441
- "gap-3 ring-1 ring-forms-border-default bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover transition-colors rounded flex items-center justify-center py-2.5 px-4 md:py-4",
1442
- { "py-2.5": showLabel }
1443
- ),
1444
- value: attributes.value,
1445
- type: "submit",
1446
- name: "provider",
1447
- ...props,
1448
- onClick,
1449
- children: [
1450
- /* @__PURE__ */ jsx42("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx42(
1451
- Logo,
1452
- {
1453
- size: 20,
1454
- className: "object-fill w-full h-full"
1455
- }
1456
- ) : /* @__PURE__ */ jsx42("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
1457
- showLabel && node.meta.label ? /* @__PURE__ */ jsx42("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: uiTextToFormattedMessage8(node.meta.label, intl) }) : null
1458
- ]
1459
- }
1460
- );
1461
- }
1462
- function DefaultSocialButtonContainer({
1463
- children,
1464
- nodes
1465
- }) {
1466
- return /* @__PURE__ */ jsx42(
1467
- "div",
1468
- {
1469
- className: cn("grid gap-3", {
1470
- // needed because tailwind is not compiling dynamic classes
1471
- "grid-cols-1": nodes.length % 4 <= 2,
1472
- "grid-cols-3": nodes.length % 3 === 0,
1473
- "grid-cols-4": nodes.length > 1 && nodes.length % 4 === 0
1474
- }),
1475
- children
1476
- }
1477
- );
1478
- }
1479
1517
 
1480
1518
  // src/theme/default/components/form/text.tsx
1481
1519
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
1482
1520
  import { useIntl as useIntl12 } from "react-intl";
1483
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
1521
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs26 } from "react/jsx-runtime";
1484
1522
  function DefaultText({ node, attributes }) {
1485
1523
  var _a;
1486
1524
  const intl = useIntl12();
1487
- return /* @__PURE__ */ jsxs27(Fragment3, { children: [
1525
+ return /* @__PURE__ */ jsxs26(Fragment3, { children: [
1488
1526
  /* @__PURE__ */ jsx43("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1489
1527
  (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx43("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx43("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" }) }, index))
1490
1528
  ] });
1491
1529
  }
1492
1530
 
1493
1531
  // src/theme/default/components/generic/page-header.tsx
1494
- import { useComponents as useComponents2 } from "@ory/elements-react";
1532
+ import { useComponents as useComponents3 } from "@ory/elements-react";
1495
1533
 
1496
1534
  // src/theme/default/components/ui/user-menu.tsx
1497
1535
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
@@ -1526,10 +1564,10 @@ var logout_default = SvgLogout;
1526
1564
 
1527
1565
  // src/theme/default/assets/icons/settings.svg
1528
1566
  import * as React23 from "react";
1529
- import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
1567
+ import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
1530
1568
  var SvgSettings = (props) => {
1531
1569
  var _a, _b;
1532
- return /* @__PURE__ */ jsx45("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__ */ jsxs28("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1570
+ return /* @__PURE__ */ jsx45("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: [
1533
1571
  /* @__PURE__ */ jsx45("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" }),
1534
1572
  /* @__PURE__ */ jsx45("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1535
1573
  ] }) });
@@ -1662,7 +1700,7 @@ var UserAvatar = forwardRef4(
1662
1700
  UserAvatar.displayName = "UserAvatar";
1663
1701
 
1664
1702
  // src/theme/default/components/ui/user-menu.tsx
1665
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
1703
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
1666
1704
  var UserMenu = ({ session }) => {
1667
1705
  const { config } = useOryFlow10();
1668
1706
  const initials = getUserInitials(session);
@@ -1674,21 +1712,21 @@ var UserMenu = ({ session }) => {
1674
1712
  useEffect(() => {
1675
1713
  void fetchLogoutFlow();
1676
1714
  }, [fetchLogoutFlow]);
1677
- return /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
1715
+ return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
1678
1716
  /* @__PURE__ */ jsx49(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx49(UserAvatar, { initials }) }),
1679
- /* @__PURE__ */ jsxs29(DropdownMenuContent, { children: [
1680
- /* @__PURE__ */ jsxs29(DropdownMenuLabel2, { className: "px-5 py-4.5 flex gap-3", children: [
1717
+ /* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
1718
+ /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "px-5 py-4.5 flex gap-3", children: [
1681
1719
  /* @__PURE__ */ jsx49(UserAvatar, { disabled: true, initials }),
1682
- /* @__PURE__ */ jsxs29("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1720
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1683
1721
  /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-default", children: initials.primary }),
1684
1722
  initials.secondary && /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-mute", children: initials.secondary })
1685
1723
  ] })
1686
1724
  ] }),
1687
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs29("a", { href: "/settings", children: [
1725
+ /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
1688
1726
  /* @__PURE__ */ jsx49(settings_default, { size: 16 }),
1689
1727
  " User settings"
1690
1728
  ] }) }),
1691
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs29("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1729
+ /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1692
1730
  /* @__PURE__ */ jsx49(logout_default, { size: 16 }),
1693
1731
  " Logout"
1694
1732
  ] }) })
@@ -1698,11 +1736,11 @@ var UserMenu = ({ session }) => {
1698
1736
 
1699
1737
  // src/theme/default/components/generic/page-header.tsx
1700
1738
  import { useSession } from "@ory/elements-react/client";
1701
- import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
1739
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
1702
1740
  var DefaultPageHeader = (_props) => {
1703
- const { Card } = useComponents2();
1741
+ const { Card } = useComponents3();
1704
1742
  const { session } = useSession();
1705
- return /* @__PURE__ */ jsx50("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs30("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1743
+ return /* @__PURE__ */ jsx50("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1706
1744
  /* @__PURE__ */ jsx50("div", { className: "h-10 flex-1 relative", children: /* @__PURE__ */ jsx50(Card.Logo, {}) }),
1707
1745
  /* @__PURE__ */ jsx50(UserMenu, { session })
1708
1746
  ] }) }) });
@@ -1718,16 +1756,16 @@ var SvgTrash = (props) => {
1718
1756
  var trash_default = SvgTrash;
1719
1757
 
1720
1758
  // src/theme/default/components/settings/settings-oidc.tsx
1721
- import { useFormContext as useFormContext5 } from "react-hook-form";
1722
- import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
1759
+ import { useFormContext as useFormContext6 } from "react-hook-form";
1760
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
1723
1761
  function DefaultSettingsOidc({
1724
1762
  linkButtons,
1725
1763
  unlinkButtons
1726
1764
  }) {
1727
1765
  const hasLinkButtons = linkButtons.length > 0;
1728
1766
  const hasUnlinkButtons = unlinkButtons.length > 0;
1729
- const { setValue } = useFormContext5();
1730
- return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1767
+ const { setValue } = useFormContext6();
1768
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
1731
1769
  hasLinkButtons && /* @__PURE__ */ jsx52("div", { className: "flex gap-3 items-start [&>button]:w-[79px]", children: linkButtons.map((button) => {
1732
1770
  const attrs = button.attributes;
1733
1771
  return /* @__PURE__ */ jsx52(
@@ -1750,8 +1788,8 @@ function DefaultSettingsOidc({
1750
1788
  const attrs = button.attributes;
1751
1789
  const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1752
1790
  const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
1753
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between", children: [
1754
- /* @__PURE__ */ jsxs31("div", { className: "flex gap-6 items-center", children: [
1791
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
1792
+ /* @__PURE__ */ jsxs30("div", { className: "flex gap-6 items-center", children: [
1755
1793
  /* @__PURE__ */ jsx52(Logo, { size: 32 }),
1756
1794
  /* @__PURE__ */ jsx52("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: provider })
1757
1795
  ] }),
@@ -1773,13 +1811,13 @@ function DefaultSettingsOidc({
1773
1811
  }
1774
1812
 
1775
1813
  // src/theme/default/components/settings/settings-passkey.tsx
1776
- import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
1814
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
1777
1815
  function DefaultSettingsPasskey({
1778
1816
  triggerButton,
1779
1817
  removeButtons
1780
1818
  }) {
1781
1819
  const hasRemoveButtons = removeButtons.length > 0;
1782
- return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
1820
+ return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1783
1821
  /* @__PURE__ */ jsx53("div", { className: "flex gap-3 items-end max-w-[60%]", children: triggerButton ? /* @__PURE__ */ jsx53(
1784
1822
  DefaultButton,
1785
1823
  {
@@ -1788,7 +1826,7 @@ function DefaultSettingsPasskey({
1788
1826
  onClick: triggerButton.onClick
1789
1827
  }
1790
1828
  ) : null }),
1791
- hasRemoveButtons ? /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
1829
+ hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1792
1830
  /* @__PURE__ */ jsx53(DefaultHorizontalDivider, {}),
1793
1831
  /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1794
1832
  var _a, _b;
@@ -1796,13 +1834,13 @@ function DefaultSettingsPasskey({
1796
1834
  const addedAt = "added_at" in context ? context.added_at : null;
1797
1835
  const diaplyName = "display_name" in context ? context.display_name : null;
1798
1836
  const keyId = "value" in node.attributes ? node.attributes.value : null;
1799
- return /* @__PURE__ */ jsxs32(
1837
+ return /* @__PURE__ */ jsxs31(
1800
1838
  "div",
1801
1839
  {
1802
1840
  className: "flex justify-between gap-6",
1803
1841
  children: [
1804
1842
  /* @__PURE__ */ jsx53(passkey_default, { size: 32, className: "text-dialog-fg-default" }),
1805
- /* @__PURE__ */ jsxs32("div", { className: "flex-1 flex-col", children: [
1843
+ /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col", children: [
1806
1844
  /* @__PURE__ */ jsx53("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
1807
1845
  /* @__PURE__ */ jsx53("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
1808
1846
  ] }),
@@ -1836,10 +1874,10 @@ var download_default = SvgDownload;
1836
1874
 
1837
1875
  // src/theme/default/assets/icons/eye.svg
1838
1876
  import * as React27 from "react";
1839
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
1877
+ import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
1840
1878
  var SvgEye = (props) => {
1841
1879
  var _a, _b;
1842
- return /* @__PURE__ */ jsx55("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__ */ jsxs33("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1880
+ return /* @__PURE__ */ jsx55("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: [
1843
1881
  /* @__PURE__ */ jsx55("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1844
1882
  /* @__PURE__ */ jsx55("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1845
1883
  ] }) });
@@ -1856,7 +1894,7 @@ var SvgRefresh = (props) => {
1856
1894
  var refresh_default = SvgRefresh;
1857
1895
 
1858
1896
  // src/theme/default/components/settings/settings-recovery-codes.tsx
1859
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
1897
+ import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
1860
1898
  function DefaultSettingsRecoveryCodes({
1861
1899
  codes,
1862
1900
  regnerateButton,
@@ -1873,9 +1911,9 @@ function DefaultSettingsRecoveryCodes({
1873
1911
  element.click();
1874
1912
  };
1875
1913
  const hasCodes = codes.length >= 1;
1876
- return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-8", children: [
1914
+ return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
1877
1915
  /* @__PURE__ */ jsx57(DefaultHorizontalDivider, {}),
1878
- /* @__PURE__ */ jsxs34("div", { className: "flex justify-end gap-4", children: [
1916
+ /* @__PURE__ */ jsxs33("div", { className: "flex justify-end gap-4", children: [
1879
1917
  regnerateButton && /* @__PURE__ */ jsx57(
1880
1918
  "button",
1881
1919
  {
@@ -1927,7 +1965,7 @@ var SvgQrcode = (props) => {
1927
1965
  var qrcode_default = SvgQrcode;
1928
1966
 
1929
1967
  // src/theme/default/components/settings/settings-top.tsx
1930
- import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
1968
+ import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
1931
1969
  function DefaultSettingsTotp(props) {
1932
1970
  var _a;
1933
1971
  if ("totpUnlink" in props && props.totpUnlink) {
@@ -1938,9 +1976,9 @@ function DefaultSettingsTotp(props) {
1938
1976
  node_type: _ignoredNodeType,
1939
1977
  ...buttonAttrs
1940
1978
  } = (_a = props.totpUnlink) == null ? void 0 : _a.attributes;
1941
- return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1979
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1942
1980
  /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
1943
- /* @__PURE__ */ jsxs35("div", { className: "flex gap-6 items-center col-span-full", children: [
1981
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-6 items-center col-span-full", children: [
1944
1982
  /* @__PURE__ */ jsx59("div", { className: "size-8 aspect-square ", children: /* @__PURE__ */ jsx59(qrcode_default, { size: 32 }) }),
1945
1983
  /* @__PURE__ */ jsx59("div", { className: "flex flex-col mr-auto", children: /* @__PURE__ */ jsx59("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: "Authenticator app" }) }),
1946
1984
  /* @__PURE__ */ jsx59(
@@ -1961,7 +1999,7 @@ function DefaultSettingsTotp(props) {
1961
1999
  ] });
1962
2000
  }
1963
2001
  if ("totpSecret" in props) {
1964
- return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
2002
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1965
2003
  /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
1966
2004
  /* @__PURE__ */ jsx59("div", { className: "bg-dialog-bg-subtle p-8 rounded-xl flex justify-center", children: /* @__PURE__ */ jsx59("div", { className: "h-44 aspect-square bg-[white] rounded", children: /* @__PURE__ */ jsx59("div", { className: "mix-blend-multiply -m-3 antialiased", children: /* @__PURE__ */ jsx59(
1967
2005
  DefaultImage,
@@ -1972,7 +2010,7 @@ function DefaultSettingsTotp(props) {
1972
2010
  }
1973
2011
  }
1974
2012
  ) }) }) }),
1975
- /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-6", children: [
2013
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
1976
2014
  /* @__PURE__ */ jsx59(
1977
2015
  DefaultLabel,
1978
2016
  {
@@ -2022,15 +2060,15 @@ var SvgKey = (props) => {
2022
2060
  var key_default = SvgKey;
2023
2061
 
2024
2062
  // src/theme/default/components/settings/settings-webauthn.tsx
2025
- import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
2063
+ import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
2026
2064
  function DefaultSettingsWebauthn({
2027
2065
  nameInput,
2028
2066
  triggerButton,
2029
2067
  removeButtons
2030
2068
  }) {
2031
2069
  const hasRemoveButtons = removeButtons.length > 0;
2032
- return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2033
- /* @__PURE__ */ jsxs36("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
2070
+ return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2071
+ /* @__PURE__ */ jsxs35("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
2034
2072
  /* @__PURE__ */ jsx61("div", { className: "flex-1", children: /* @__PURE__ */ jsx61(
2035
2073
  DefaultLabel,
2036
2074
  {
@@ -2054,7 +2092,7 @@ function DefaultSettingsWebauthn({
2054
2092
  }
2055
2093
  ) : null
2056
2094
  ] }),
2057
- hasRemoveButtons ? /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2095
+ hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2058
2096
  /* @__PURE__ */ jsx61(DefaultHorizontalDivider, {}),
2059
2097
  /* @__PURE__ */ jsx61("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2060
2098
  var _a, _b;
@@ -2062,13 +2100,13 @@ function DefaultSettingsWebauthn({
2062
2100
  const addedAt = "added_at" in context ? context.added_at : null;
2063
2101
  const diaplyName = "display_name" in context ? context.display_name : null;
2064
2102
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2065
- return /* @__PURE__ */ jsxs36(
2103
+ return /* @__PURE__ */ jsxs35(
2066
2104
  "div",
2067
2105
  {
2068
2106
  className: "flex justify-between gap-6",
2069
2107
  children: [
2070
2108
  /* @__PURE__ */ jsx61(key_default, { size: 32, className: "text-dialog-fg-default" }),
2071
- /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col", children: [
2109
+ /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col", children: [
2072
2110
  /* @__PURE__ */ jsx61("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
2073
2111
  /* @__PURE__ */ jsx61("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
2074
2112
  ] }),
@@ -2232,7 +2270,7 @@ import {
2232
2270
  OryProvider as OryProvider4,
2233
2271
  OrySettingsCard
2234
2272
  } from "@ory/elements-react";
2235
- import { Fragment as Fragment4, jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
2273
+ import { Fragment as Fragment4, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
2236
2274
  function Settings({
2237
2275
  flow,
2238
2276
  config,
@@ -2247,7 +2285,7 @@ function Settings({
2247
2285
  flow,
2248
2286
  flowType: FlowType11.Settings,
2249
2287
  components,
2250
- children: children != null ? children : /* @__PURE__ */ jsxs37(Fragment4, { children: [
2288
+ children: children != null ? children : /* @__PURE__ */ jsxs36(Fragment4, { children: [
2251
2289
  /* @__PURE__ */ jsx66(HeadlessPageHeader, {}),
2252
2290
  /* @__PURE__ */ jsx66(OrySettingsCard, {})
2253
2291
  ] })
@@ -2281,6 +2319,7 @@ function Verification({
2281
2319
  );
2282
2320
  }
2283
2321
  export {
2322
+ DefaultButtonSocial,
2284
2323
  DefaultCard,
2285
2324
  DefaultCardContent,
2286
2325
  DefaultCardFooter,