@ory/elements-react 1.0.0-next.11 → 1.0.0-next.12

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.
@@ -366,19 +366,13 @@ function DefaultCardLogo() {
366
366
  if (flow.config.logoUrl) {
367
367
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("img", { src: flow.config.logoUrl, width: 100, height: 36, alt: "Logo" });
368
368
  }
369
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
370
- "h1",
371
- {
372
- className: "text-xl font-semibold leading-normal text-dialog-fg-default",
373
- children: flow.config.name
374
- }
375
- );
369
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h1", { className: "text-xl font-semibold leading-normal text-dialog-fg-default", children: flow.config.name });
376
370
  }
377
371
 
378
372
  // src/theme/default/components/card/index.tsx
379
373
  var import_jsx_runtime7 = require("react/jsx-runtime");
380
374
  function DefaultCard({ children }) {
381
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "grid grid-cols-1 max-w-sm md:max-w-[480px] md:w-[480px] gap-8 bg-dialog-bg-default px-8 md:px-12 py-12 md:py-14 relative rounded-border-radius-cards border border-dialog-border-default", children: [
375
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 flex-col flex justify-center items-center font-sans", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "grid grid-cols-1 max-w-sm md:max-w-[480px] md:w-[480px] gap-8 bg-dialog-bg-default px-8 md:px-12 py-12 md:py-14 relative rounded-border-radius-cards border border-dialog-border-default", children: [
382
376
  children,
383
377
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge, {})
384
378
  ] }) });
@@ -394,6 +388,7 @@ function cn(...inputs) {
394
388
  // src/theme/default/components/form/index.tsx
395
389
  var import_react_intl3 = require("react-intl");
396
390
  var import_elements_react4 = require("@ory/elements-react");
391
+ var import_client_fetch3 = require("@ory/client-fetch");
397
392
  var import_jsx_runtime8 = require("react/jsx-runtime");
398
393
  function DefaultFormContainer({
399
394
  children,
@@ -414,10 +409,19 @@ function DefaultFormContainer({
414
409
  );
415
410
  }
416
411
  function DefaultMessageContainer({ children }) {
412
+ const { flowType } = (0, import_elements_react4.useOryFlow)();
417
413
  if (!children || Array.isArray(children) && children.length === 0) {
418
414
  return null;
419
415
  }
420
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("section", { className: "text-left", children });
416
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
417
+ "section",
418
+ {
419
+ className: cn(
420
+ flowType === import_client_fetch3.FlowType.Settings ? "text-center" : "text-left"
421
+ ),
422
+ children
423
+ }
424
+ );
421
425
  }
422
426
  function DefaultMessage({ message }) {
423
427
  const intl = (0, import_react_intl3.useIntl)();
@@ -473,6 +477,11 @@ var SvgWebauthn = (props) => {
473
477
  };
474
478
  var webauthn_default = SvgWebauthn;
475
479
 
480
+ // src/theme/default/utils/form.ts
481
+ function isGroupImmediateSubmit(group) {
482
+ return group === "code";
483
+ }
484
+
476
485
  // src/theme/default/components/card/auth-methods.tsx
477
486
  var import_jsx_runtime13 = require("react/jsx-runtime");
478
487
  var iconsMap = {
@@ -490,8 +499,9 @@ function DefaultAuthMethodListItem({
490
499
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
491
500
  "button",
492
501
  {
493
- className: "flex text-left py-2 gap-3 cursor-pointer ",
502
+ className: "flex text-left py-2 gap-3 cursor-pointer",
494
503
  onClick,
504
+ type: isGroupImmediateSubmit(group) ? "submit" : "button",
495
505
  children: [
496
506
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { size: 20, className: "text-forms-fg-default" }) }),
497
507
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex-1 text-sm leading-normal", children: [
@@ -504,7 +514,7 @@ function DefaultAuthMethodListItem({
504
514
  }
505
515
 
506
516
  // src/theme/default/components/form/button.tsx
507
- var import_client_fetch3 = require("@ory/client-fetch");
517
+ var import_client_fetch4 = require("@ory/client-fetch");
508
518
  var import_elements_react5 = require("@ory/elements-react");
509
519
  var import_react_hook_form = require("react-hook-form");
510
520
  var import_react_intl5 = require("react-intl");
@@ -518,7 +528,7 @@ function Spinner({ className }) {
518
528
  "aria-hidden": "true",
519
529
  role: "status",
520
530
  className: cn(
521
- "absolute inset-0 mx-auto my-auto w-8 h-8 text-branding-fg-default animate-spin text-button-primary-fg-default",
531
+ "absolute pointer-events-none inset-0 mx-auto my-auto w-8 h-8 animate-spin",
522
532
  className
523
533
  ),
524
534
  viewBox: "0 0 34 34",
@@ -549,12 +559,50 @@ function Spinner({ className }) {
549
559
  }
550
560
 
551
561
  // src/theme/default/components/form/button.tsx
562
+ var import_elements_react6 = require("@ory/elements-react");
563
+ var import_class_variance_authority = require("class-variance-authority");
552
564
  var import_jsx_runtime15 = require("react/jsx-runtime");
565
+ var buttonStyles = (0, import_class_variance_authority.cva)(
566
+ [
567
+ "ring-1 relative overflow-hidden ring-inset rounded text-sm leading-none flex gap-3 justify-center",
568
+ "disabled:cursor-not-allowed loading:before:pointer-events-none loading:cursor-wait",
569
+ "transition-colors ease-linear duration-100"
570
+ ],
571
+ {
572
+ variants: {
573
+ intent: {
574
+ primary: [
575
+ "bg-button-primary-bg-default text-button-primary-fg-default ring-button-primary-border-default",
576
+ "hover:bg-button-primary-bg-hover hover:text-button-primary-fg-hover hover:ring-button-primary-border-hover",
577
+ "disabled:bg-button-primary-bg-disabled disabled:text-button-primary-fg-disabled disabled:ring-button-primary-border-disabled",
578
+ "loading:bg-button-primary-bg-default loading:text-button-primary-fg-default loading:ring-button-primary-border-default",
579
+ "loading:before:absolute loading:before:content-[''] loading:before:inset-0 loading:before:bg-button-primary-bg-default loading:before:opacity-80"
580
+ ],
581
+ secondary: [
582
+ "bg-button-secondary-bg-default text-button-secondary-fg-default ring-button-secondary-border-default",
583
+ "hover:bg-button-secondary-bg-hover hover:text-button-secondary-fg-hover hover:ring-button-secondary-border-hover",
584
+ "disabled:bg-button-secondary-bg-disabled disabled:text-button-secondary-fg-disabled disabled:ring-button-secondary-border-disabled",
585
+ "loading:bg-button-secondary-bg-default loading:text-button-secondary-fg-default loading:ring-button-secondary-border-default",
586
+ "loading:before:absolute loading:before:content-[''] loading:before:inset-0 loading:before:bg-button-secondary-bg-default loading:before:opacity-80"
587
+ ]
588
+ },
589
+ size: {
590
+ default: ["px-4 py-3"],
591
+ large: ["px-4 py-4.5 max-md:py-3"]
592
+ },
593
+ defaultVariants: {
594
+ intent: "primary",
595
+ size: "default"
596
+ }
597
+ }
598
+ }
599
+ );
553
600
  var DefaultButton = ({
554
601
  attributes,
555
602
  node,
556
603
  onClick
557
604
  }) => {
605
+ var _a;
558
606
  const {
559
607
  type,
560
608
  name,
@@ -567,12 +615,14 @@ var DefaultButton = ({
567
615
  ...rest
568
616
  } = attributes;
569
617
  const intl = (0, import_react_intl5.useIntl)();
570
- const label = (0, import_client_fetch3.getNodeLabel)(node);
618
+ const label = (0, import_client_fetch4.getNodeLabel)(node);
619
+ const { flowType } = (0, import_elements_react6.useOryFlow)();
571
620
  const {
572
621
  formState: { isSubmitting },
573
622
  setValue
574
623
  } = (0, import_react_hook_form.useFormContext)();
575
- const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn");
624
+ const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
625
+ const isSmall = flowType === import_client_fetch4.FlowType.Settings && attributes.name !== "webauthn_register_trigger";
576
626
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
577
627
  "button",
578
628
  {
@@ -584,38 +634,20 @@ var DefaultButton = ({
584
634
  setValue(name, value);
585
635
  },
586
636
  onClick: (e) => {
587
- if (onClick) {
588
- onClick(e);
589
- }
637
+ onClick == null ? void 0 : onClick(e);
590
638
  if (type !== "button") {
591
639
  setValue(name, value);
592
640
  }
593
641
  },
594
- className: cn(
595
- "antialiased rounded-border-radius-buttons border border-transparent gap-3 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-3 md:py-4.5 text-sm leading-none font-medium",
596
- {
597
- "cursor-not-allowed": isSubmitting,
598
- "bg-button-primary-bg-hover": isSubmitting,
599
- "bg-button-primary-bg-default hover:bg-button-primary-bg-hover text-button-primary-fg-default hover:text-button-primary-fg-hover": isPrimary,
600
- "bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover text-button-secondary-fg-default hover:text-button-secondary-fg-hover border-button-secondary-border-default": !isPrimary
601
- },
602
- {}
603
- ),
642
+ className: buttonStyles({
643
+ intent: isPrimary ? "primary" : "secondary",
644
+ size: isSmall ? "default" : "large"
645
+ }),
646
+ disabled: (_a = rest.disabled) != null ? _a : true,
647
+ "data-loading": isSubmitting,
604
648
  children: [
605
649
  isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spinner, {}) : null,
606
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
607
- "span",
608
- {
609
- className: cn(
610
- "transition-colors ease-linear duration-100 leading-none text-button-primary-fg-default/20",
611
- {
612
- "text-button-primary-fg-default opacity-20 transition-opacity": isSubmitting && isPrimary,
613
- "text-button-secondary-fg-default/20": isSubmitting && !isPrimary
614
- }
615
- ),
616
- children: label ? (0, import_elements_react5.uiTextToFormattedMessage)(label, intl) : ""
617
- }
618
- )
650
+ label ? (0, import_elements_react5.uiTextToFormattedMessage)(label, intl) : ""
619
651
  ]
620
652
  }
621
653
  );
@@ -623,14 +655,112 @@ var DefaultButton = ({
623
655
  DefaultButton.displayName = "DefaultButton";
624
656
 
625
657
  // src/theme/default/components/form/checkbox.tsx
626
- var import_client_fetch4 = require("@ory/client-fetch");
627
- var import_elements_react6 = require("@ory/elements-react");
658
+ var import_client_fetch5 = require("@ory/client-fetch");
659
+ var import_elements_react7 = require("@ory/elements-react");
628
660
  var import_react = require("react");
629
661
  var import_react_hook_form2 = require("react-hook-form");
662
+ var import_react_intl7 = require("react-intl");
663
+
664
+ // src/theme/default/components/ui/checkbox-label.tsx
630
665
  var import_react_intl6 = require("react-intl");
666
+
667
+ // src/util/i18n/index.ts
668
+ var uiTextToFormattedMessage3 = ({ id, context = {}, text }, intl) => {
669
+ const contextInjectedMessage = Object.entries(context).reduce(
670
+ (accumulator, [key, value]) => {
671
+ if (Array.isArray(value)) {
672
+ return {
673
+ ...accumulator,
674
+ [key]: value,
675
+ [key + "_list"]: intl.formatList(value)
676
+ };
677
+ } else if (key.endsWith("_unix")) {
678
+ if (typeof value === "number") {
679
+ return {
680
+ ...accumulator,
681
+ [key]: intl.formatDate(new Date(value * 1e3)),
682
+ [key + "_since"]: intl.formatDateTimeRange(
683
+ new Date(value),
684
+ /* @__PURE__ */ new Date()
685
+ ),
686
+ [key + "_since_minutes"]: Math.abs(
687
+ (value - (/* @__PURE__ */ new Date()).getTime() / 1e3) / 60
688
+ ).toFixed(2),
689
+ [key + "_until"]: intl.formatDateTimeRange(
690
+ /* @__PURE__ */ new Date(),
691
+ new Date(value)
692
+ ),
693
+ [key + "_until_minutes"]: Math.abs(
694
+ ((/* @__PURE__ */ new Date()).getTime() / 1e3 - value) / 60
695
+ ).toFixed(2)
696
+ };
697
+ }
698
+ }
699
+ return {
700
+ ...accumulator,
701
+ [key]: value
702
+ };
703
+ },
704
+ {}
705
+ );
706
+ return intl.formatMessage(
707
+ {
708
+ id: `identities.messages.${id}`,
709
+ defaultMessage: text
710
+ },
711
+ contextInjectedMessage
712
+ );
713
+ };
714
+
715
+ // src/theme/default/components/ui/checkbox-label.tsx
631
716
  var import_jsx_runtime16 = require("react/jsx-runtime");
717
+ var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
718
+ function computeLabelElements(labelText) {
719
+ const elements = [];
720
+ let lastIndex = 0;
721
+ for (const match of labelText.matchAll(linkRegex)) {
722
+ const linkText = match[1];
723
+ const url = match[2];
724
+ const matchStart = match.index;
725
+ if (typeof matchStart === "undefined") {
726
+ continue;
727
+ }
728
+ if (matchStart > lastIndex) {
729
+ elements.push(labelText.slice(lastIndex, matchStart));
730
+ }
731
+ elements.push(
732
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
733
+ "a",
734
+ {
735
+ href: url,
736
+ target: "_blank",
737
+ rel: "noopener noreferrer",
738
+ className: "text-links-link-default hover:text-links-link-hover hover:underline",
739
+ children: linkText
740
+ },
741
+ matchStart
742
+ )
743
+ );
744
+ lastIndex = matchStart + match[0].length;
745
+ }
746
+ if (lastIndex < labelText.length) {
747
+ elements.push(labelText.slice(lastIndex));
748
+ }
749
+ return elements;
750
+ }
751
+ function CheckboxLabel({ label }) {
752
+ const intl = (0, import_react_intl6.useIntl)();
753
+ if (!label) {
754
+ return null;
755
+ }
756
+ const labelText = uiTextToFormattedMessage3(label, intl);
757
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: computeLabelElements(labelText) });
758
+ }
759
+
760
+ // src/theme/default/components/form/checkbox.tsx
761
+ var import_jsx_runtime17 = require("react/jsx-runtime");
632
762
  function CheckboxSVG() {
633
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
763
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
634
764
  "svg",
635
765
  {
636
766
  className: "absolute w-4 h-4 hidden peer-checked:block",
@@ -640,14 +770,14 @@ function CheckboxSVG() {
640
770
  viewBox: "0 0 16 16",
641
771
  fill: "none",
642
772
  children: [
643
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
773
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
644
774
  "path",
645
775
  {
646
776
  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",
647
777
  fill: "#0F172A"
648
778
  }
649
779
  ),
650
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
780
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
651
781
  "path",
652
782
  {
653
783
  fillRule: "evenodd",
@@ -670,14 +800,15 @@ var DefaultCheckbox = ({
670
800
  // Button does not support these attributes, so we skip them
671
801
  autocomplete: _autocomplete,
672
802
  onclick: _onclick,
803
+ maxlength: _max,
673
804
  // End of skipped attributes
674
805
  ...attributes
675
806
  } = initialAttributes;
676
- const intl = (0, import_react_intl6.useIntl)();
677
- const label = (0, import_client_fetch4.getNodeLabel)(node);
807
+ const intl = (0, import_react_intl7.useIntl)();
808
+ const label = (0, import_client_fetch5.getNodeLabel)(node);
678
809
  const [checked, setChecked] = (0, import_react.useState)(Boolean(value));
679
810
  const { register } = (0, import_react_hook_form2.useForm)();
680
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
811
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
681
812
  "div",
682
813
  {
683
814
  className: "flex antialiased gap-3 self-stretch item-start",
@@ -685,8 +816,8 @@ var DefaultCheckbox = ({
685
816
  setChecked(!checked);
686
817
  },
687
818
  children: [
688
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex h-5 items-center", children: [
689
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
819
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex h-5 items-center", children: [
820
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
690
821
  "input",
691
822
  {
692
823
  ...attributes,
@@ -701,16 +832,16 @@ var DefaultCheckbox = ({
701
832
  ...register(name, { value })
702
833
  }
703
834
  ),
704
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckboxSVG, {})
835
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckboxSVG, {})
705
836
  ] }),
706
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "text-sm items-center", children: [
707
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: label && (0, import_elements_react6.uiTextToFormattedMessage)(label, intl) }),
708
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
837
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "text-sm items-center", children: [
838
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CheckboxLabel, { label }) }),
839
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
709
840
  "span",
710
841
  {
711
842
  className: "text-sm text-red-900 mt-1",
712
- ...(0, import_elements_react6.messageTestId)(message),
713
- children: (0, import_elements_react6.uiTextToFormattedMessage)(message, intl)
843
+ ...(0, import_elements_react7.messageTestId)(message),
844
+ children: (0, import_elements_react7.uiTextToFormattedMessage)(message, intl)
714
845
  },
715
846
  message.id
716
847
  ))
@@ -721,48 +852,48 @@ var DefaultCheckbox = ({
721
852
  };
722
853
 
723
854
  // src/theme/default/components/form/group-container.tsx
724
- var import_jsx_runtime17 = require("react/jsx-runtime");
855
+ var import_jsx_runtime18 = require("react/jsx-runtime");
725
856
  function DefaultGroupContainer({ children }) {
726
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "grid grid-cols-1 gap-6", children });
857
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "grid grid-cols-1 gap-6", children });
727
858
  }
728
859
 
729
860
  // src/theme/default/components/form/horizontal-divider.tsx
730
- var import_jsx_runtime18 = require("react/jsx-runtime");
861
+ var import_jsx_runtime19 = require("react/jsx-runtime");
731
862
  function DefaultHorizontalDivider() {
732
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("hr", { className: "border-dialog-border-default" });
863
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("hr", { className: "border-dialog-border-default" });
733
864
  }
734
865
 
735
866
  // src/theme/default/components/form/image.tsx
736
- var import_jsx_runtime19 = require("react/jsx-runtime");
867
+ var import_jsx_runtime20 = require("react/jsx-runtime");
737
868
  function DefaultImage({ attributes }) {
738
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("img", { ...attributes }) });
869
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("img", { ...attributes }) });
739
870
  }
740
871
 
741
872
  // src/theme/default/components/form/input.tsx
742
- var import_client_fetch5 = require("@ory/client-fetch");
743
- var import_elements_react7 = require("@ory/elements-react");
873
+ var import_client_fetch6 = require("@ory/client-fetch");
874
+ var import_elements_react8 = require("@ory/elements-react");
744
875
  var import_react_hook_form3 = require("react-hook-form");
745
- var import_react_intl7 = require("react-intl");
746
- var import_jsx_runtime20 = require("react/jsx-runtime");
876
+ var import_react_intl8 = require("react-intl");
877
+ var import_jsx_runtime21 = require("react/jsx-runtime");
747
878
  var DefaultInput = ({
748
879
  node,
749
880
  attributes,
750
881
  onClick
751
882
  }) => {
752
- const label = (0, import_client_fetch5.getNodeLabel)(node);
883
+ const label = (0, import_client_fetch6.getNodeLabel)(node);
753
884
  const { register } = (0, import_react_hook_form3.useFormContext)();
754
885
  const { value, autocomplete, name, maxlength, ...rest } = attributes;
755
- const intl = (0, import_react_intl7.useIntl)();
886
+ const intl = (0, import_react_intl8.useIntl)();
756
887
  const formattedLabel = label ? intl.formatMessage(
757
888
  {
758
889
  id: "input.placeholder",
759
890
  defaultMessage: "Enter your {placeholder}"
760
891
  },
761
892
  {
762
- placeholder: (0, import_elements_react7.uiTextToFormattedMessage)(label, intl)
893
+ placeholder: (0, import_elements_react8.uiTextToFormattedMessage)(label, intl)
763
894
  }
764
895
  ) : "";
765
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
896
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
766
897
  "input",
767
898
  {
768
899
  ...rest,
@@ -770,42 +901,42 @@ var DefaultInput = ({
770
901
  maxLength: maxlength,
771
902
  autoComplete: autocomplete,
772
903
  placeholder: formattedLabel,
773
- className: "antialiased bg-forms-bg-default rounded-border-radius-forms border px-3 py-2.5 md:px-4 md:py-4 border-forms-border-default leading-tight hover:border-forms-border-hover transition-colors text-sm",
904
+ className: "antialiased disabled:text-forms-fg-disabled disabled:bg-forms-bg-disabled bg-forms-bg-default rounded-border-radius-forms border px-3 py-2.5 md:px-4 md:py-4 border-forms-border-default leading-tight hover:border-forms-border-hover transition-colors text-sm",
774
905
  ...register(name, { value })
775
906
  }
776
907
  );
777
908
  };
778
909
 
779
910
  // src/theme/default/components/form/label.tsx
780
- var import_client_fetch6 = require("@ory/client-fetch");
781
- var import_elements_react8 = require("@ory/elements-react");
782
- var import_react_intl8 = require("react-intl");
783
- var import_jsx_runtime21 = require("react/jsx-runtime");
911
+ var import_client_fetch7 = require("@ory/client-fetch");
912
+ var import_elements_react9 = require("@ory/elements-react");
913
+ var import_react_intl9 = require("react-intl");
914
+ var import_jsx_runtime22 = require("react/jsx-runtime");
784
915
  function DefaultLabel({
785
916
  node,
786
917
  children,
787
918
  attributes,
788
919
  ...rest
789
920
  }) {
790
- const intl = (0, import_react_intl8.useIntl)();
791
- const label = (0, import_client_fetch6.getNodeLabel)(node);
792
- const { config, flowType } = (0, import_elements_react8.useOryFlow)();
921
+ const intl = (0, import_react_intl9.useIntl)();
922
+ const label = (0, import_client_fetch7.getNodeLabel)(node);
923
+ const { config, flowType } = (0, import_elements_react9.useOryFlow)();
793
924
  const isPassword = attributes.type === "password";
794
925
  const isCode = attributes.name === "code";
795
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "flex flex-col antialiased gap-1", children: [
796
- label && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "inline-flex justify-between", children: [
797
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
926
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "flex flex-col antialiased gap-1", children: [
927
+ label && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "inline-flex justify-between", children: [
928
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
798
929
  "label",
799
930
  {
800
- ...(0, import_elements_react8.messageTestId)(label),
931
+ ...(0, import_elements_react9.messageTestId)(label),
801
932
  className: "text-sm font-medium leading-normal",
802
933
  htmlFor: attributes.name,
803
934
  ...rest,
804
- children: (0, import_elements_react8.uiTextToFormattedMessage)(label, intl)
935
+ children: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl)
805
936
  }
806
937
  ),
807
- isPassword && config.project.recovery_enabled && flowType === import_client_fetch6.FlowType.Login && // TODO: make it possible to override with a custom component
808
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
938
+ isPassword && config.project.recovery_enabled && flowType === import_client_fetch7.FlowType.Login && // TODO: make it possible to override with a custom component
939
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
809
940
  "a",
810
941
  {
811
942
  href: config.project.recovery_ui_url,
@@ -816,17 +947,19 @@ function DefaultLabel({
816
947
  })
817
948
  }
818
949
  ),
819
- isCode && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
820
- "input",
950
+ isCode && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
951
+ "button",
821
952
  {
822
953
  type: "submit",
823
- value: "Resend Code",
824
- className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium cursor-pointer"
954
+ name: "method",
955
+ value: "code",
956
+ className: "text-links-link-default hover:underline hover:text-link-hover transition-colors text-sm font-medium cursor-pointer",
957
+ children: intl.formatMessage({ id: "identities.messages.1070008" })
825
958
  }
826
959
  )
827
960
  ] }),
828
961
  children,
829
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
962
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
830
963
  "span",
831
964
  {
832
965
  className: cn("text-sm leading-normal", {
@@ -834,8 +967,8 @@ function DefaultLabel({
834
967
  "text-forms-fg-default": message.type === "info",
835
968
  "text-forms-fg-success": message.type === "success"
836
969
  }),
837
- ...(0, import_elements_react8.messageTestId)(message),
838
- children: (0, import_elements_react8.uiTextToFormattedMessage)(message, intl)
970
+ ...(0, import_elements_react9.messageTestId)(message),
971
+ children: (0, import_elements_react9.uiTextToFormattedMessage)(message, intl)
839
972
  },
840
973
  message.id
841
974
  ))
@@ -843,24 +976,24 @@ function DefaultLabel({
843
976
  }
844
977
 
845
978
  // src/theme/default/components/form/link-button.tsx
846
- var import_client_fetch7 = require("@ory/client-fetch");
847
- var import_elements_react9 = require("@ory/elements-react");
979
+ var import_client_fetch8 = require("@ory/client-fetch");
980
+ var import_elements_react10 = require("@ory/elements-react");
848
981
  var import_react2 = require("react");
849
- var import_react_intl9 = require("react-intl");
850
- var import_jsx_runtime22 = require("react/jsx-runtime");
982
+ var import_react_intl10 = require("react-intl");
983
+ var import_jsx_runtime23 = require("react/jsx-runtime");
851
984
  var DefaultLinkButton = (0, import_react2.forwardRef)(({ attributes, node }, ref) => {
852
- const intl = (0, import_react_intl9.useIntl)();
853
- const label = (0, import_client_fetch7.getNodeLabel)(node);
854
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
985
+ const intl = (0, import_react_intl10.useIntl)();
986
+ const label = (0, import_client_fetch8.getNodeLabel)(node);
987
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
855
988
  "a",
856
989
  {
857
990
  ...attributes,
858
991
  ref,
859
- title: label ? (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) : "",
992
+ title: label ? (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) : "",
860
993
  className: cn(
861
994
  "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"
862
995
  ),
863
- children: label ? (0, import_elements_react9.uiTextToFormattedMessage)(label, intl) : ""
996
+ children: label ? (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) : ""
864
997
  }
865
998
  );
866
999
  });
@@ -872,8 +1005,8 @@ var import_react_hook_form4 = require("react-hook-form");
872
1005
  // src/theme/default/components/form/shadcn/otp-input.tsx
873
1006
  var import_input_otp = require("input-otp");
874
1007
  var React7 = __toESM(require("react"));
875
- var import_jsx_runtime23 = require("react/jsx-runtime");
876
- var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1008
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1009
+ var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
877
1010
  import_input_otp.OTPInput,
878
1011
  {
879
1012
  ref,
@@ -886,12 +1019,12 @@ var InputOTP = React7.forwardRef(({ className, containerClassName, ...props }, r
886
1019
  }
887
1020
  ));
888
1021
  InputOTP.displayName = "InputOTP";
889
- var InputOTPGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
1022
+ var InputOTPGroup = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
890
1023
  InputOTPGroup.displayName = "InputOTPGroup";
891
1024
  var InputOTPSlot = React7.forwardRef(({ index, className, ...props }, ref) => {
892
1025
  const inputOTPContext = React7.useContext(import_input_otp.OTPInputContext);
893
1026
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
894
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1027
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
895
1028
  "div",
896
1029
  {
897
1030
  ref,
@@ -903,7 +1036,7 @@ var InputOTPSlot = React7.forwardRef(({ index, className, ...props }, ref) => {
903
1036
  ...props,
904
1037
  children: [
905
1038
  char,
906
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1039
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
907
1040
  ]
908
1041
  }
909
1042
  );
@@ -911,7 +1044,7 @@ var InputOTPSlot = React7.forwardRef(({ index, className, ...props }, ref) => {
911
1044
  InputOTPSlot.displayName = "InputOTPSlot";
912
1045
 
913
1046
  // src/theme/default/components/form/pin-code-input.tsx
914
- var import_jsx_runtime24 = require("react/jsx-runtime");
1047
+ var import_jsx_runtime25 = require("react/jsx-runtime");
915
1048
  var DefaultPinCodeInput = ({ attributes }) => {
916
1049
  const { setValue, watch } = (0, import_react_hook_form4.useFormContext)();
917
1050
  const { maxlength, name } = attributes;
@@ -920,192 +1053,186 @@ var DefaultPinCodeInput = ({ attributes }) => {
920
1053
  setValue(name, v);
921
1054
  };
922
1055
  const value = watch(name);
923
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
924
- "div",
1056
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1057
+ InputOTP,
925
1058
  {
926
- className: `grid grid-flow-col grid-cols-${maxlength} gap-3 auto-cols-fr rtl:space-x-reverse`,
927
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
928
- InputOTP,
1059
+ maxLength: maxlength != null ? maxlength : 6,
1060
+ onChange: handleInputChange,
1061
+ name,
1062
+ value,
1063
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1064
+ InputOTPSlot,
929
1065
  {
930
- maxLength: maxlength != null ? maxlength : 6,
931
- onChange: handleInputChange,
932
- name,
933
- value,
934
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
935
- InputOTPSlot,
936
- {
937
- index,
938
- className: "text-center px-1.5 py-2.5 h-10 w-11 md:w-14 md:h-12 border border-radius border-solid rounded-border-radius-forms border-forms-border-default bg-forms-bg-default"
939
- },
940
- index
941
- )) })
942
- }
943
- )
1066
+ index,
1067
+ className: "text-center px-1.5 py-2.5 h-10 w-11 md:w-14 md:h-12 border border-radius border-solid rounded-border-radius-forms border-forms-border-default bg-forms-bg-default"
1068
+ },
1069
+ index
1070
+ )) })
944
1071
  }
945
1072
  );
946
1073
  };
947
1074
 
948
1075
  // src/theme/default/components/form/social.tsx
949
- var import_elements_react10 = require("@ory/elements-react");
1076
+ var import_elements_react11 = require("@ory/elements-react");
950
1077
 
951
1078
  // src/theme/default/provider-logos/apple.svg
952
1079
  var React8 = __toESM(require("react"));
953
- var import_jsx_runtime25 = require("react/jsx-runtime");
1080
+ var import_jsx_runtime26 = require("react/jsx-runtime");
954
1081
  var SvgApple = (props) => {
955
1082
  var _a, _b;
956
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
957
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("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" }),
958
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("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" })
1083
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1084
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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" }),
1085
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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" })
959
1086
  ] });
960
1087
  };
961
1088
  var apple_default = SvgApple;
962
1089
 
963
1090
  // src/theme/default/provider-logos/auth0.svg
964
1091
  var React9 = __toESM(require("react"));
965
- var import_jsx_runtime26 = require("react/jsx-runtime");
1092
+ var import_jsx_runtime27 = require("react/jsx-runtime");
966
1093
  var SvgAuth0 = (props) => {
967
1094
  var _a, _b;
968
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
1095
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
969
1096
  };
970
1097
  var auth0_default = SvgAuth0;
971
1098
 
972
1099
  // src/theme/default/provider-logos/discord.svg
973
1100
  var React10 = __toESM(require("react"));
974
- var import_jsx_runtime27 = require("react/jsx-runtime");
1101
+ var import_jsx_runtime28 = require("react/jsx-runtime");
975
1102
  var SvgDiscord = (props) => {
976
1103
  var _a, _b;
977
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
978
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
979
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
1104
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1105
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
1106
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
980
1107
  ] });
981
1108
  };
982
1109
  var discord_default = SvgDiscord;
983
1110
 
984
1111
  // src/theme/default/provider-logos/facebook.svg
985
1112
  var React11 = __toESM(require("react"));
986
- var import_jsx_runtime28 = require("react/jsx-runtime");
1113
+ var import_jsx_runtime29 = require("react/jsx-runtime");
987
1114
  var SvgFacebook = (props) => {
988
1115
  var _a, _b;
989
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
990
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("g", { clipPath: "url(#facebook_svg__a)", children: [
991
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("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" }),
992
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("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" })
1116
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1117
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("g", { clipPath: "url(#facebook_svg__a)", children: [
1118
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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" }),
1119
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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" })
993
1120
  ] }),
994
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("rect", { fill: "#fff" }) }) })
1121
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("rect", { fill: "#fff" }) }) })
995
1122
  ] });
996
1123
  };
997
1124
  var facebook_default = SvgFacebook;
998
1125
 
999
1126
  // src/theme/default/provider-logos/generic.svg
1000
1127
  var React12 = __toESM(require("react"));
1001
- var import_jsx_runtime29 = require("react/jsx-runtime");
1128
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1002
1129
  var SvgGeneric = (props) => {
1003
1130
  var _a, _b;
1004
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("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: [
1005
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { stroke: "none", d: "M0 0h24v24H0z" }),
1006
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
1007
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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" })
1131
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("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: [
1132
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { stroke: "none", d: "M0 0h24v24H0z" }),
1133
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
1134
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" })
1008
1135
  ] });
1009
1136
  };
1010
1137
  var generic_default = SvgGeneric;
1011
1138
 
1012
1139
  // src/theme/default/provider-logos/github.svg
1013
1140
  var React13 = __toESM(require("react"));
1014
- var import_jsx_runtime30 = require("react/jsx-runtime");
1141
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1015
1142
  var SvgGithub = (props) => {
1016
1143
  var _a, _b;
1017
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
1144
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
1018
1145
  };
1019
1146
  var github_default = SvgGithub;
1020
1147
 
1021
1148
  // src/theme/default/provider-logos/gitlab.svg
1022
1149
  var React14 = __toESM(require("react"));
1023
- var import_jsx_runtime31 = require("react/jsx-runtime");
1150
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1024
1151
  var SvgGitlab = (props) => {
1025
1152
  var _a, _b;
1026
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1027
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
1028
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
1029
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
1030
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
1153
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1154
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
1155
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
1156
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
1157
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
1031
1158
  ] });
1032
1159
  };
1033
1160
  var gitlab_default = SvgGitlab;
1034
1161
 
1035
1162
  // src/theme/default/provider-logos/google.svg
1036
1163
  var React15 = __toESM(require("react"));
1037
- var import_jsx_runtime32 = require("react/jsx-runtime");
1164
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1038
1165
  var SvgGoogle = (props) => {
1039
1166
  var _a, _b;
1040
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("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: [
1041
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" }),
1042
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" }),
1043
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" }),
1044
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("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" })
1167
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("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: [
1168
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" }),
1169
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" }),
1170
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" }),
1171
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("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" })
1045
1172
  ] });
1046
1173
  };
1047
1174
  var google_default = SvgGoogle;
1048
1175
 
1049
1176
  // src/theme/default/provider-logos/linkedin.svg
1050
1177
  var React16 = __toESM(require("react"));
1051
- var import_jsx_runtime33 = require("react/jsx-runtime");
1178
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1052
1179
  var SvgLinkedin = (props) => {
1053
1180
  var _a, _b;
1054
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1055
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
1056
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
1181
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1182
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
1183
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
1057
1184
  ] });
1058
1185
  };
1059
1186
  var linkedin_default = SvgLinkedin;
1060
1187
 
1061
1188
  // src/theme/default/provider-logos/microsoft.svg
1062
1189
  var React17 = __toESM(require("react"));
1063
- var import_jsx_runtime34 = require("react/jsx-runtime");
1190
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1064
1191
  var SvgMicrosoft = (props) => {
1065
1192
  var _a, _b;
1066
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1067
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
1068
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
1069
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
1070
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
1193
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1194
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
1195
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
1196
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
1197
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
1071
1198
  ] });
1072
1199
  };
1073
1200
  var microsoft_default = SvgMicrosoft;
1074
1201
 
1075
1202
  // src/theme/default/provider-logos/slack.svg
1076
1203
  var React18 = __toESM(require("react"));
1077
- var import_jsx_runtime35 = require("react/jsx-runtime");
1204
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1078
1205
  var SvgSlack = (props) => {
1079
1206
  var _a, _b;
1080
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1081
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
1082
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
1083
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
1084
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
1207
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1208
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
1209
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
1210
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
1211
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
1085
1212
  ] });
1086
1213
  };
1087
1214
  var slack_default = SvgSlack;
1088
1215
 
1089
1216
  // src/theme/default/provider-logos/spotify.svg
1090
1217
  var React19 = __toESM(require("react"));
1091
- var import_jsx_runtime36 = require("react/jsx-runtime");
1218
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1092
1219
  var SvgSpotify = (props) => {
1093
1220
  var _a, _b;
1094
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1095
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
1096
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
1221
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1222
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
1223
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
1097
1224
  ] });
1098
1225
  };
1099
1226
  var spotify_default = SvgSpotify;
1100
1227
 
1101
1228
  // src/theme/default/provider-logos/yandex.svg
1102
1229
  var React20 = __toESM(require("react"));
1103
- var import_jsx_runtime37 = require("react/jsx-runtime");
1230
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1104
1231
  var SvgYandex = (props) => {
1105
1232
  var _a, _b;
1106
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1107
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
1108
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
1233
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1234
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
1235
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
1109
1236
  ] });
1110
1237
  };
1111
1238
  var yandex_default = SvgYandex;
@@ -1129,8 +1256,8 @@ var logos = {
1129
1256
  var provider_logos_default = logos;
1130
1257
 
1131
1258
  // src/theme/default/components/form/social.tsx
1132
- var import_react_intl10 = require("react-intl");
1133
- var import_jsx_runtime38 = require("react/jsx-runtime");
1259
+ var import_react_intl11 = require("react-intl");
1260
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1134
1261
  function extractProvider(context) {
1135
1262
  if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
1136
1263
  return context.provider;
@@ -1140,7 +1267,8 @@ function extractProvider(context) {
1140
1267
  function DefaultButtonSocial({
1141
1268
  attributes,
1142
1269
  node,
1143
- onClick
1270
+ onClick,
1271
+ showLabel: _showLabel
1144
1272
  }) {
1145
1273
  var _a, _b, _c;
1146
1274
  const {
@@ -1151,13 +1279,13 @@ function DefaultButtonSocial({
1151
1279
  } = attributes;
1152
1280
  const {
1153
1281
  flow: { ui }
1154
- } = (0, import_elements_react10.useOryFlow)();
1155
- const intl = (0, import_react_intl10.useIntl)();
1282
+ } = (0, import_elements_react11.useOryFlow)();
1283
+ const intl = (0, import_react_intl11.useIntl)();
1156
1284
  const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
1157
1285
  const Logo = provider_logos_default[attributes.value];
1158
- const showLabel = oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
1286
+ const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
1159
1287
  const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
1160
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
1288
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
1161
1289
  "button",
1162
1290
  {
1163
1291
  className: cn(
@@ -1170,14 +1298,14 @@ function DefaultButtonSocial({
1170
1298
  ...props,
1171
1299
  onClick,
1172
1300
  children: [
1173
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1301
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1174
1302
  Logo,
1175
1303
  {
1176
1304
  size: 20,
1177
1305
  className: "object-fill w-full h-full"
1178
1306
  }
1179
- ) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
1180
- showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: (0, import_elements_react10.uiTextToFormattedMessage)(node.meta.label, intl) }) : null
1307
+ ) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
1308
+ showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: (0, import_elements_react11.uiTextToFormattedMessage)(node.meta.label, intl) }) : null
1181
1309
  ]
1182
1310
  }
1183
1311
  );
@@ -1186,7 +1314,7 @@ function DefaultSocialButtonContainer({
1186
1314
  children,
1187
1315
  nodes
1188
1316
  }) {
1189
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1317
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1190
1318
  "div",
1191
1319
  {
1192
1320
  className: cn("grid gap-3", {
@@ -1201,29 +1329,29 @@ function DefaultSocialButtonContainer({
1201
1329
  }
1202
1330
 
1203
1331
  // src/theme/default/components/form/text.tsx
1204
- var import_elements_react11 = require("@ory/elements-react");
1205
- var import_react_intl11 = require("react-intl");
1206
- var import_jsx_runtime39 = require("react/jsx-runtime");
1332
+ var import_elements_react12 = require("@ory/elements-react");
1333
+ var import_react_intl12 = require("react-intl");
1334
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1207
1335
  function DefaultText({ node, attributes }) {
1208
1336
  var _a;
1209
- const intl = (0, import_react_intl11.useIntl)();
1210
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
1211
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react11.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
1212
- (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("code", { children: text ? (0, import_elements_react11.uiTextToFormattedMessage)(text, intl) : "" }) }, index))
1337
+ const intl = (0, import_react_intl12.useIntl)();
1338
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
1339
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react12.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
1340
+ (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("code", { children: text ? (0, import_elements_react12.uiTextToFormattedMessage)(text, intl) : "" }) }, index))
1213
1341
  ] });
1214
1342
  }
1215
1343
 
1216
1344
  // src/theme/default/assets/icons/arrow-left.svg
1217
1345
  var React21 = __toESM(require("react"));
1218
- var import_jsx_runtime40 = require("react/jsx-runtime");
1346
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1219
1347
  var SvgArrowLeft = (props) => {
1220
1348
  var _a, _b;
1221
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
1349
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
1222
1350
  };
1223
1351
  var arrow_left_default = SvgArrowLeft;
1224
1352
 
1225
1353
  // src/theme/default/components/card/current-identifier-button.tsx
1226
- var import_jsx_runtime41 = require("react/jsx-runtime");
1354
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1227
1355
  function DefaultCurrentIdentifierButton({
1228
1356
  attributes,
1229
1357
  onClick,
@@ -1231,7 +1359,7 @@ function DefaultCurrentIdentifierButton({
1231
1359
  href
1232
1360
  }) {
1233
1361
  const Element = onClick ? "button" : "a";
1234
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
1362
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
1235
1363
  Element,
1236
1364
  {
1237
1365
  className: "cursor-pointer py-1.5 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",
@@ -1240,13 +1368,615 @@ function DefaultCurrentIdentifierButton({
1240
1368
  href,
1241
1369
  type,
1242
1370
  children: [
1243
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(arrow_left_default, { size: 16, className: "text-button-identifier-fg-subtle" }),
1244
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "text-sm font-medium leading-none text-button-identifier-fg-default", children: attributes.value })
1371
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(arrow_left_default, { size: 16, className: "text-button-identifier-fg-subtle" }),
1372
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-sm font-medium leading-none text-button-identifier-fg-default", children: attributes.value })
1245
1373
  ]
1246
1374
  }
1247
1375
  ) });
1248
1376
  }
1249
1377
 
1378
+ // src/theme/default/components/form/section.tsx
1379
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1380
+ var DefaultFormSection = ({ children }) => {
1381
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1382
+ };
1383
+ var DefaultFormSectionContent = ({
1384
+ title,
1385
+ description,
1386
+ children
1387
+ }) => {
1388
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("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: [
1389
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col gap-2", children: [
1390
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1391
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1392
+ ] }),
1393
+ children
1394
+ ] });
1395
+ };
1396
+ var DefaultFormSectionFooter = ({ children }) => {
1397
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("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 });
1398
+ };
1399
+
1400
+ // src/theme/default/assets/icons/download.svg
1401
+ var React22 = __toESM(require("react"));
1402
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1403
+ var SvgDownload = (props) => {
1404
+ var _a, _b;
1405
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
1406
+ };
1407
+ var download_default = SvgDownload;
1408
+
1409
+ // src/theme/default/assets/icons/eye.svg
1410
+ var React23 = __toESM(require("react"));
1411
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1412
+ var SvgEye = (props) => {
1413
+ var _a, _b;
1414
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1415
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1416
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1417
+ ] }) });
1418
+ };
1419
+ var eye_default = SvgEye;
1420
+
1421
+ // src/theme/default/assets/icons/refresh.svg
1422
+ var React24 = __toESM(require("react"));
1423
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1424
+ var SvgRefresh = (props) => {
1425
+ var _a, _b;
1426
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
1427
+ };
1428
+ var refresh_default = SvgRefresh;
1429
+
1430
+ // src/theme/default/components/settings/settings-recovery-codes.tsx
1431
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1432
+ function DefaultSettingsRecoveryCodes({
1433
+ codes,
1434
+ regnerateButton,
1435
+ revealButton
1436
+ }) {
1437
+ const onDownload = () => {
1438
+ const element = document.createElement("a");
1439
+ const file = new Blob([codes.join("\n")], {
1440
+ type: "text/plain"
1441
+ });
1442
+ element.href = URL.createObjectURL(file);
1443
+ element.download = "recovery-codes.txt";
1444
+ document.body.appendChild(element);
1445
+ element.click();
1446
+ };
1447
+ const hasCodes = codes.length >= 1;
1448
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-8", children: [
1449
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DefaultHorizontalDivider, {}),
1450
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex justify-end gap-4", children: [
1451
+ regnerateButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1452
+ "button",
1453
+ {
1454
+ ...regnerateButton.attributes,
1455
+ type: "submit",
1456
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1457
+ refresh_default,
1458
+ {
1459
+ size: 24,
1460
+ className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
1461
+ }
1462
+ )
1463
+ }
1464
+ ),
1465
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1466
+ "button",
1467
+ {
1468
+ ...revealButton.attributes,
1469
+ type: "submit",
1470
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1471
+ eye_default,
1472
+ {
1473
+ size: 24,
1474
+ className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
1475
+ }
1476
+ )
1477
+ }
1478
+ ),
1479
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1480
+ download_default,
1481
+ {
1482
+ size: 24,
1483
+ onClick: onDownload,
1484
+ className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover"
1485
+ }
1486
+ ) : null
1487
+ ] }),
1488
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "rounded-border-radius-cards bg-bg-default ring-1 ring-dialog-border-default p-6", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "grid grid-cols-6 gap-4 flex-wrap text-dialog-fg-default text-sm", children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { children: code }, code)) }) }) : null
1489
+ ] });
1490
+ }
1491
+
1492
+ // src/theme/default/assets/icons/qrcode.svg
1493
+ var React25 = __toESM(require("react"));
1494
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1495
+ var SvgQrcode = (props) => {
1496
+ var _a, _b;
1497
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
1498
+ };
1499
+ var qrcode_default = SvgQrcode;
1500
+
1501
+ // src/theme/default/assets/icons/trash.svg
1502
+ var React26 = __toESM(require("react"));
1503
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1504
+ var SvgTrash = (props) => {
1505
+ var _a, _b;
1506
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
1507
+ };
1508
+ var trash_default = SvgTrash;
1509
+
1510
+ // src/theme/default/components/settings/settings-top.tsx
1511
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1512
+ function DefaultSettingsTotp(props) {
1513
+ var _a;
1514
+ if ("totpUnlink" in props && props.totpUnlink) {
1515
+ const {
1516
+ type,
1517
+ autocomplete: _ignoredAutocomplete,
1518
+ label: _ignoredLabel,
1519
+ node_type: _ignoredNodeType,
1520
+ ...buttonAttrs
1521
+ } = (_a = props.totpUnlink) == null ? void 0 : _a.attributes;
1522
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1523
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DefaultHorizontalDivider, {}) }),
1524
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex gap-6 items-center col-span-full", children: [
1525
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "size-8 aspect-square ", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(qrcode_default, { size: 32 }) }),
1526
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex flex-col mr-auto", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: "Authenticator app" }) }),
1527
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1528
+ "button",
1529
+ {
1530
+ type: type === "button" ? "button" : "submit",
1531
+ ...buttonAttrs,
1532
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1533
+ trash_default,
1534
+ {
1535
+ size: 24,
1536
+ className: "text-links-link-mute-default hover:text-links-link-mute-hover"
1537
+ }
1538
+ )
1539
+ }
1540
+ )
1541
+ ] })
1542
+ ] });
1543
+ }
1544
+ if ("totpSecret" in props) {
1545
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1546
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DefaultHorizontalDivider, {}) }),
1547
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "bg-dialog-bg-subtle p-8 rounded-xl flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "h-44 aspect-square bg-[white] rounded", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "mix-blend-multiply -m-3 antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1548
+ DefaultImage,
1549
+ {
1550
+ node: props.totpImage,
1551
+ attributes: {
1552
+ ...props.totpImage.attributes
1553
+ }
1554
+ }
1555
+ ) }) }) }),
1556
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-6", children: [
1557
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1558
+ DefaultLabel,
1559
+ {
1560
+ node: props.totpSecret,
1561
+ attributes: props.totpSecret.attributes,
1562
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1563
+ DefaultInput,
1564
+ {
1565
+ node: props.totpSecret,
1566
+ attributes: {
1567
+ disabled: true,
1568
+ name: "totp_secret_key",
1569
+ node_type: "input",
1570
+ type: "text",
1571
+ value: props.totpSecret.attributes.text.text
1572
+ }
1573
+ }
1574
+ )
1575
+ }
1576
+ ),
1577
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1578
+ DefaultLabel,
1579
+ {
1580
+ attributes: props.totpInput.attributes,
1581
+ node: props.totpInput,
1582
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1583
+ DefaultInput,
1584
+ {
1585
+ node: props.totpInput,
1586
+ attributes: props.totpInput.attributes
1587
+ }
1588
+ )
1589
+ }
1590
+ )
1591
+ ] })
1592
+ ] });
1593
+ }
1594
+ }
1595
+
1596
+ // src/theme/default/components/settings/settings-oidc.tsx
1597
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1598
+ function DefaultSettingsOidc({
1599
+ linkButtons,
1600
+ unlinkButtons
1601
+ }) {
1602
+ const hasLinkButtons = linkButtons.length > 0;
1603
+ const hasUnlinkButtons = unlinkButtons.length > 0;
1604
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col gap-8", children: [
1605
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex gap-3 items-start [&>button]:w-[79px]", children: linkButtons.map((button) => {
1606
+ const attrs = button.attributes;
1607
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1608
+ DefaultButtonSocial,
1609
+ {
1610
+ showLabel: false,
1611
+ node: button,
1612
+ attributes: attrs
1613
+ },
1614
+ attrs.value
1615
+ );
1616
+ }) }),
1617
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(DefaultHorizontalDivider, {}) : null,
1618
+ unlinkButtons.map((button) => {
1619
+ var _a, _b;
1620
+ const attrs = button.attributes;
1621
+ const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1622
+ const Logo = provider_logos_default[attrs.value];
1623
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex justify-between", children: [
1624
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex gap-6 items-center", children: [
1625
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Logo, { size: 32 }),
1626
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: provider })
1627
+ ] }),
1628
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("button", { ...attrs, type: "submit", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(trash_default, { className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover" }) })
1629
+ ] }, attrs.value);
1630
+ })
1631
+ ] });
1632
+ }
1633
+
1634
+ // src/theme/default/assets/icons/key.svg
1635
+ var React27 = __toESM(require("react"));
1636
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1637
+ var SvgKey = (props) => {
1638
+ var _a, _b;
1639
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
1640
+ };
1641
+ var key_default = SvgKey;
1642
+
1643
+ // src/theme/default/components/settings/settings-webauthn.tsx
1644
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1645
+ function DefaultSettingsWebauthn({
1646
+ nameInput,
1647
+ triggerButton,
1648
+ removeButtons
1649
+ }) {
1650
+ const hasRemoveButtons = removeButtons.length > 0;
1651
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-8", children: [
1652
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
1653
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1654
+ DefaultLabel,
1655
+ {
1656
+ node: nameInput,
1657
+ attributes: nameInput.attributes,
1658
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1659
+ DefaultInput,
1660
+ {
1661
+ node: nameInput,
1662
+ attributes: nameInput.attributes
1663
+ }
1664
+ )
1665
+ }
1666
+ ) }),
1667
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1668
+ DefaultButton,
1669
+ {
1670
+ node: triggerButton,
1671
+ attributes: triggerButton.attributes,
1672
+ onClick: triggerButton.onClick
1673
+ }
1674
+ ) : null
1675
+ ] }),
1676
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex flex-col gap-8", children: [
1677
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DefaultHorizontalDivider, {}),
1678
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1679
+ var _a, _b;
1680
+ const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
1681
+ const addedAt = "added_at" in context ? context.added_at : null;
1682
+ const diaplyName = "display_name" in context ? context.display_name : null;
1683
+ const keyId = "value" in node.attributes ? node.attributes.value : null;
1684
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
1685
+ "div",
1686
+ {
1687
+ className: "flex justify-between gap-6",
1688
+ children: [
1689
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(key_default, { size: 32, className: "text-dialog-fg-default" }),
1690
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex-1 flex-col", children: [
1691
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
1692
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
1693
+ ] }),
1694
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm self-center text-dialog-fg-mute", children: new Date(addedAt).toLocaleDateString() }),
1695
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
1696
+ "button",
1697
+ {
1698
+ ...node.attributes,
1699
+ type: "submit",
1700
+ className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover",
1701
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(trash_default, { size: 20 })
1702
+ }
1703
+ )
1704
+ ]
1705
+ },
1706
+ `webauthn-remove-button-${i}`
1707
+ );
1708
+ }) })
1709
+ ] }) : null
1710
+ ] });
1711
+ }
1712
+
1713
+ // src/theme/default/components/settings/settings-passkey.tsx
1714
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1715
+ function DefaultSettingsPasskey({
1716
+ triggerButton,
1717
+ removeButtons
1718
+ }) {
1719
+ const hasRemoveButtons = removeButtons.length > 0;
1720
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex flex-col gap-8", children: [
1721
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex gap-3 items-end max-w-[60%]", children: triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1722
+ DefaultButton,
1723
+ {
1724
+ node: triggerButton,
1725
+ attributes: triggerButton.attributes,
1726
+ onClick: triggerButton.onClick
1727
+ }
1728
+ ) : null }),
1729
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex flex-col gap-8", children: [
1730
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DefaultHorizontalDivider, {}),
1731
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1732
+ var _a, _b;
1733
+ const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
1734
+ const addedAt = "added_at" in context ? context.added_at : null;
1735
+ const diaplyName = "display_name" in context ? context.display_name : null;
1736
+ const keyId = "value" in node.attributes ? node.attributes.value : null;
1737
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
1738
+ "div",
1739
+ {
1740
+ className: "flex justify-between gap-6",
1741
+ children: [
1742
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(passkey_default, { size: 32, className: "text-dialog-fg-default" }),
1743
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex-1 flex-col", children: [
1744
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
1745
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
1746
+ ] }),
1747
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-sm self-center text-dialog-fg-mute", children: new Date(addedAt).toLocaleDateString() }),
1748
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1749
+ "button",
1750
+ {
1751
+ ...node.attributes,
1752
+ type: "submit",
1753
+ className: "cursor-pointer text-links-link-mute-default hover:text-links-link-mute-hover",
1754
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(trash_default, { size: 20 })
1755
+ }
1756
+ )
1757
+ ]
1758
+ },
1759
+ `webauthn-remove-button-${i}`
1760
+ );
1761
+ }) })
1762
+ ] }) : null
1763
+ ] });
1764
+ }
1765
+
1766
+ // src/theme/default/components/generic/page-header.tsx
1767
+ var import_elements_react14 = require("@ory/elements-react");
1768
+
1769
+ // src/theme/default/components/ui/user-menu.tsx
1770
+ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
1771
+ var import_react5 = require("react");
1772
+ var import_elements_react13 = require("@ory/elements-react");
1773
+
1774
+ // src/util/client.ts
1775
+ var import_client_fetch9 = require("@ory/client-fetch");
1776
+ function frontendClient(sdkUrl, opts = {}) {
1777
+ const config = new import_client_fetch9.Configuration({
1778
+ ...opts,
1779
+ basePath: sdkUrl,
1780
+ headers: {
1781
+ Accept: "application/json",
1782
+ ...opts.headers
1783
+ }
1784
+ });
1785
+ return new import_client_fetch9.FrontendApi(config);
1786
+ }
1787
+
1788
+ // src/theme/default/assets/icons/logout.svg
1789
+ var React28 = __toESM(require("react"));
1790
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1791
+ var SvgLogout = (props) => {
1792
+ var _a, _b;
1793
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1794
+ };
1795
+ var logout_default = SvgLogout;
1796
+
1797
+ // src/theme/default/assets/icons/settings.svg
1798
+ var React29 = __toESM(require("react"));
1799
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1800
+ var SvgSettings = (props) => {
1801
+ var _a, _b;
1802
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1803
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1804
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1805
+ ] }) });
1806
+ };
1807
+ var settings_default = SvgSettings;
1808
+
1809
+ // src/theme/default/utils/user.ts
1810
+ var getUserInitials = (session) => {
1811
+ var _a, _b;
1812
+ const avatar = "";
1813
+ let primary = "";
1814
+ let secondary = "";
1815
+ if (!((_a = session == null ? void 0 : session.identity) == null ? void 0 : _a.traits)) {
1816
+ return {
1817
+ primary,
1818
+ secondary,
1819
+ avatar
1820
+ };
1821
+ }
1822
+ const traits = (_b = session.identity) == null ? void 0 : _b.traits;
1823
+ if (traits.email) {
1824
+ secondary = traits.email;
1825
+ }
1826
+ if (traits.name) {
1827
+ if (typeof traits.name === "string") {
1828
+ primary = traits.name;
1829
+ }
1830
+ if (traits.name.first && traits.name.last) {
1831
+ primary = traits.name.first + " " + traits.name.last;
1832
+ }
1833
+ }
1834
+ if (primary === "") {
1835
+ primary = secondary;
1836
+ secondary = "";
1837
+ }
1838
+ return {
1839
+ primary,
1840
+ secondary,
1841
+ avatar
1842
+ };
1843
+ };
1844
+
1845
+ // src/theme/default/components/ui/dropdown-menu.tsx
1846
+ var import_react3 = require("react");
1847
+ var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1848
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1849
+ var DropdownMenu = DropdownMenuPrimitive.Root;
1850
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1851
+ var DropdownMenuContent = (0, import_react3.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1852
+ DropdownMenuPrimitive.Content,
1853
+ {
1854
+ ref,
1855
+ sideOffset,
1856
+ align: "end",
1857
+ className: cn(
1858
+ "z-50 min-w-[19rem] overflow-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1859
+ "border border-dialog-border-default bg-dialog-bg-default rounded-border-radius-cards",
1860
+ className
1861
+ ),
1862
+ ...props
1863
+ }
1864
+ ) }));
1865
+ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1866
+ var DropdownMenuItem = (0, import_react3.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1867
+ DropdownMenuPrimitive.Item,
1868
+ {
1869
+ ref,
1870
+ className: cn(
1871
+ "relative flex cursor-pointer select-none items-center outline-none transition-colors data-[disabled]:pointer-events-none",
1872
+ "px-8 py-3 lg:py-4.5 text-sm gap-6",
1873
+ "first:border-0 border-t border-button-secondary-border-default hover:border-button-social-border-hover data-[disabled]:border-button-secondary-border-disabled",
1874
+ "text-button-secondary-fg-default bg-button-secondary-bg-default",
1875
+ "hover:text-button-secondary-fg-hover hover:bg-button-secondary-bg-hover",
1876
+ "data-[disabled]:text-button-secondary-fg-disabled data-[disabled]:bg-button-secondary-bg-disabled",
1877
+ inset && "pl-8",
1878
+ className
1879
+ ),
1880
+ ...props
1881
+ }
1882
+ ));
1883
+ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1884
+ var DropdownMenuLabel = (0, import_react3.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
1885
+ DropdownMenuPrimitive.Label,
1886
+ {
1887
+ ref,
1888
+ className: cn(
1889
+ "px-2 py-1.5 text-sm font-semibold",
1890
+ inset && "pl-8",
1891
+ className
1892
+ ),
1893
+ ...props
1894
+ }
1895
+ ));
1896
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1897
+
1898
+ // src/theme/default/components/ui/user-avater.tsx
1899
+ var import_react4 = require("react");
1900
+
1901
+ // src/theme/default/assets/icons/user.svg
1902
+ var React30 = __toESM(require("react"));
1903
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1904
+ var SvgUser = (props) => {
1905
+ var _a, _b;
1906
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
1907
+ };
1908
+ var user_default = SvgUser;
1909
+
1910
+ // src/theme/default/components/ui/user-avater.tsx
1911
+ var import_jsx_runtime59 = require("react/jsx-runtime");
1912
+ var UserAvatar = (0, import_react4.forwardRef)(
1913
+ ({ initials, ...rest }, ref) => {
1914
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1915
+ "button",
1916
+ {
1917
+ ref,
1918
+ className: "size-10 relative flex overflow-hidden items-center justify-center rounded-full bg-button-primary-bg-default disabled:hover:bg-button-primary-bg-default hover:bg-button-primary-bg-hover",
1919
+ ...rest,
1920
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "relative size-full flex items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
1921
+ "img",
1922
+ {
1923
+ src: initials.avatar,
1924
+ alt: initials.primary,
1925
+ className: "w-full object-contain"
1926
+ }
1927
+ ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(user_default, { size: 24, className: "text-button-primary-fg-default" }) })
1928
+ }
1929
+ );
1930
+ }
1931
+ );
1932
+ UserAvatar.displayName = "UserAvatar";
1933
+
1934
+ // src/theme/default/components/ui/user-menu.tsx
1935
+ var import_jsx_runtime60 = require("react/jsx-runtime");
1936
+ var UserMenu = ({ session }) => {
1937
+ const { config } = (0, import_elements_react13.useOryFlow)();
1938
+ const initials = getUserInitials(session);
1939
+ const [logoutFlow, setLogoutFlow] = (0, import_react5.useState)();
1940
+ const fetchLogoutFlow = (0, import_react5.useCallback)(async () => {
1941
+ const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow();
1942
+ setLogoutFlow(flow);
1943
+ }, [config.sdk.url]);
1944
+ (0, import_react5.useEffect)(() => {
1945
+ void fetchLogoutFlow();
1946
+ }, [fetchLogoutFlow]);
1947
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(DropdownMenu, { children: [
1948
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(UserAvatar, { initials }) }),
1949
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(DropdownMenuContent, { children: [
1950
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "px-5 py-4.5 flex gap-3", children: [
1951
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(UserAvatar, { disabled: true, initials }),
1952
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1953
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "text-dialog-fg-default", children: initials.primary }),
1954
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "text-dialog-fg-mute", children: initials.secondary })
1955
+ ] })
1956
+ ] }),
1957
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("a", { href: "/settings", children: [
1958
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(settings_default, { size: 16 }),
1959
+ " User settings"
1960
+ ] }) }),
1961
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1962
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(logout_default, { size: 16 }),
1963
+ " Logout"
1964
+ ] }) })
1965
+ ] })
1966
+ ] });
1967
+ };
1968
+
1969
+ // src/theme/default/components/generic/page-header.tsx
1970
+ var import_jsx_runtime61 = require("react/jsx-runtime");
1971
+ var DefaultPageHeader = (_props) => {
1972
+ const { Card } = (0, import_elements_react14.useComponents)();
1973
+ const { session } = (0, import_elements_react14.useSession)();
1974
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1975
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "h-10 flex-1 relative", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Card.Logo, {}) }),
1976
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(UserMenu, { session })
1977
+ ] }) }) });
1978
+ };
1979
+
1250
1980
  // src/theme/default/components/default-components.tsx
1251
1981
  var OryDefaultComponents = {
1252
1982
  Card: {
@@ -1256,7 +1986,10 @@ var OryDefaultComponents = {
1256
1986
  Content: DefaultCardContent,
1257
1987
  Logo: DefaultCardLogo,
1258
1988
  Divider: DefaultHorizontalDivider,
1259
- AuthMethodListItem: DefaultAuthMethodListItem
1989
+ AuthMethodListItem: DefaultAuthMethodListItem,
1990
+ SettingsSection: DefaultFormSection,
1991
+ SettingsSectionContent: DefaultFormSectionContent,
1992
+ SettingsSectionFooter: DefaultFormSectionFooter
1260
1993
  },
1261
1994
  Node: {
1262
1995
  Button: DefaultButton,
@@ -1273,28 +2006,36 @@ var OryDefaultComponents = {
1273
2006
  Form: {
1274
2007
  Root: DefaultFormContainer,
1275
2008
  Group: DefaultGroupContainer,
1276
- OidcRoot: DefaultSocialButtonContainer
2009
+ OidcRoot: DefaultSocialButtonContainer,
2010
+ RecoveryCodesSettings: DefaultSettingsRecoveryCodes,
2011
+ TotpSettings: DefaultSettingsTotp,
2012
+ OidcSettings: DefaultSettingsOidc,
2013
+ WebauthnSettings: DefaultSettingsWebauthn,
2014
+ PasskeySettings: DefaultSettingsPasskey
1277
2015
  },
1278
2016
  Message: {
1279
2017
  Root: DefaultMessageContainer,
1280
2018
  Content: DefaultMessage
2019
+ },
2020
+ Page: {
2021
+ Header: DefaultPageHeader
1281
2022
  }
1282
2023
  };
1283
2024
 
1284
2025
  // src/theme/default/flows/error.tsx
1285
- var import_jsx_runtime42 = require("react/jsx-runtime");
2026
+ var import_jsx_runtime62 = require("react/jsx-runtime");
1286
2027
  function Error2({
1287
2028
  error,
1288
2029
  children
1289
2030
  }) {
1290
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: JSON.stringify(error) || children });
2031
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { children: JSON.stringify(error) || children });
1291
2032
  }
1292
2033
 
1293
2034
  // src/theme/default/flows/login.tsx
1294
- var import_client_fetch8 = require("@ory/client-fetch");
1295
- var import_elements_react12 = require("@ory/elements-react");
2035
+ var import_client_fetch10 = require("@ory/client-fetch");
2036
+ var import_elements_react15 = require("@ory/elements-react");
1296
2037
  var import_lodash = __toESM(require("lodash.merge"));
1297
- var import_jsx_runtime43 = require("react/jsx-runtime");
2038
+ var import_jsx_runtime63 = require("react/jsx-runtime");
1298
2039
  function Login({
1299
2040
  flow,
1300
2041
  config,
@@ -1302,23 +2043,23 @@ function Login({
1302
2043
  components: flowOverrideComponents
1303
2044
  }) {
1304
2045
  const components = flowOverrideComponents ? (0, import_lodash.default)({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
1305
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1306
- import_elements_react12.OryProvider,
2046
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2047
+ import_elements_react15.OryProvider,
1307
2048
  {
1308
2049
  config,
1309
2050
  flow,
1310
- flowType: import_client_fetch8.FlowType.Login,
2051
+ flowType: import_client_fetch10.FlowType.Login,
1311
2052
  components,
1312
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_elements_react12.OryTwoStepCard, {})
2053
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_elements_react15.OryTwoStepCard, {})
1313
2054
  }
1314
2055
  );
1315
2056
  }
1316
2057
 
1317
2058
  // src/theme/default/flows/recovery.tsx
1318
- var import_client_fetch9 = require("@ory/client-fetch");
1319
- var import_elements_react13 = require("@ory/elements-react");
2059
+ var import_client_fetch11 = require("@ory/client-fetch");
2060
+ var import_elements_react16 = require("@ory/elements-react");
1320
2061
  var import_lodash2 = __toESM(require("lodash.merge"));
1321
- var import_jsx_runtime44 = require("react/jsx-runtime");
2062
+ var import_jsx_runtime64 = require("react/jsx-runtime");
1322
2063
  function Recovery({
1323
2064
  flow,
1324
2065
  config,
@@ -1326,23 +2067,23 @@ function Recovery({
1326
2067
  components: flowOverrideComponents
1327
2068
  }) {
1328
2069
  const components = flowOverrideComponents ? (0, import_lodash2.default)({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
1329
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1330
- import_elements_react13.OryProvider,
2070
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2071
+ import_elements_react16.OryProvider,
1331
2072
  {
1332
2073
  config,
1333
2074
  flow,
1334
- flowType: import_client_fetch9.FlowType.Recovery,
2075
+ flowType: import_client_fetch11.FlowType.Recovery,
1335
2076
  components,
1336
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_elements_react13.OryTwoStepCard, {})
2077
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_elements_react16.OryTwoStepCard, {})
1337
2078
  }
1338
2079
  );
1339
2080
  }
1340
2081
 
1341
2082
  // src/theme/default/flows/registration.tsx
1342
- var import_client_fetch10 = require("@ory/client-fetch");
1343
- var import_elements_react14 = require("@ory/elements-react");
2083
+ var import_client_fetch12 = require("@ory/client-fetch");
2084
+ var import_elements_react17 = require("@ory/elements-react");
1344
2085
  var import_lodash3 = __toESM(require("lodash.merge"));
1345
- var import_jsx_runtime45 = require("react/jsx-runtime");
2086
+ var import_jsx_runtime65 = require("react/jsx-runtime");
1346
2087
  function Registration({
1347
2088
  flow,
1348
2089
  children,
@@ -1350,23 +2091,23 @@ function Registration({
1350
2091
  config
1351
2092
  }) {
1352
2093
  const components = flowOverrideComponents ? (0, import_lodash3.default)({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
1353
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1354
- import_elements_react14.OryProvider,
2094
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2095
+ import_elements_react17.OryProvider,
1355
2096
  {
1356
2097
  config,
1357
2098
  flow,
1358
- flowType: import_client_fetch10.FlowType.Registration,
2099
+ flowType: import_client_fetch12.FlowType.Registration,
1359
2100
  components,
1360
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_elements_react14.OryTwoStepCard, {})
2101
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_elements_react17.OryTwoStepCard, {})
1361
2102
  }
1362
2103
  );
1363
2104
  }
1364
2105
 
1365
2106
  // src/theme/default/flows/settings.tsx
1366
- var import_client_fetch11 = require("@ory/client-fetch");
1367
- var import_elements_react15 = require("@ory/elements-react");
2107
+ var import_client_fetch13 = require("@ory/client-fetch");
2108
+ var import_elements_react18 = require("@ory/elements-react");
1368
2109
  var import_lodash4 = __toESM(require("lodash.merge"));
1369
- var import_jsx_runtime46 = require("react/jsx-runtime");
2110
+ var import_jsx_runtime66 = require("react/jsx-runtime");
1370
2111
  function Settings({
1371
2112
  flow,
1372
2113
  config,
@@ -1374,23 +2115,26 @@ function Settings({
1374
2115
  components: flowOverrideComponents
1375
2116
  }) {
1376
2117
  const components = flowOverrideComponents ? (0, import_lodash4.default)({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
1377
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1378
- import_elements_react15.OryProvider,
2118
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2119
+ import_elements_react18.OryProvider,
1379
2120
  {
1380
2121
  config,
1381
2122
  flow,
1382
- flowType: import_client_fetch11.FlowType.Settings,
2123
+ flowType: import_client_fetch13.FlowType.Settings,
1383
2124
  components,
1384
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_elements_react15.OryTwoStepCard, {})
2125
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
2126
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_elements_react18.HeadlessPageHeader, {}),
2127
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_elements_react18.OrySettingsCard, {})
2128
+ ] })
1385
2129
  }
1386
2130
  );
1387
2131
  }
1388
2132
 
1389
2133
  // src/theme/default/flows/verification.tsx
1390
- var import_client_fetch12 = require("@ory/client-fetch");
1391
- var import_elements_react16 = require("@ory/elements-react");
2134
+ var import_client_fetch14 = require("@ory/client-fetch");
2135
+ var import_elements_react19 = require("@ory/elements-react");
1392
2136
  var import_lodash5 = __toESM(require("lodash.merge"));
1393
- var import_jsx_runtime47 = require("react/jsx-runtime");
2137
+ var import_jsx_runtime67 = require("react/jsx-runtime");
1394
2138
  function Verification({
1395
2139
  flow,
1396
2140
  config,
@@ -1398,14 +2142,14 @@ function Verification({
1398
2142
  components: flowOverrideComponents
1399
2143
  }) {
1400
2144
  const components = flowOverrideComponents ? (0, import_lodash5.default)({}, OryDefaultComponents, flowOverrideComponents) : OryDefaultComponents;
1401
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1402
- import_elements_react16.OryProvider,
2145
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2146
+ import_elements_react19.OryProvider,
1403
2147
  {
1404
2148
  config,
1405
2149
  flow,
1406
- flowType: import_client_fetch12.FlowType.Verification,
2150
+ flowType: import_client_fetch14.FlowType.Verification,
1407
2151
  components,
1408
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_elements_react16.OryTwoStepCard, {})
2152
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_elements_react19.OryTwoStepCard, {})
1409
2153
  }
1410
2154
  );
1411
2155
  }