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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1523,9 +1523,33 @@ import {
1523
1523
  uiTextToFormattedMessage as uiTextToFormattedMessage6,
1524
1524
  useOryFlow as useOryFlow7
1525
1525
  } from "@ory/elements-react";
1526
+ import { useRef, useState as useState2 } from "react";
1526
1527
  import { useFormContext as useFormContext4 } from "react-hook-form";
1527
1528
  import { useIntl as useIntl9 } from "react-intl";
1529
+
1530
+ // src/theme/default/assets/icons/eye-off.svg
1531
+ import * as React24 from "react";
1528
1532
  import { jsx as jsx42 } from "react/jsx-runtime";
1533
+ var SvgEyeOff = (props) => {
1534
+ var _a, _b;
1535
+ return /* @__PURE__ */ jsx42("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx42("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
1536
+ };
1537
+ var eye_off_default = SvgEyeOff;
1538
+
1539
+ // src/theme/default/assets/icons/eye.svg
1540
+ import * as React25 from "react";
1541
+ import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
1542
+ var SvgEye = (props) => {
1543
+ var _a, _b;
1544
+ return /* @__PURE__ */ jsx43("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs23("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1545
+ /* @__PURE__ */ jsx43("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1546
+ /* @__PURE__ */ jsx43("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1547
+ ] }) });
1548
+ };
1549
+ var eye_default = SvgEye;
1550
+
1551
+ // src/theme/default/components/form/input.tsx
1552
+ import { jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
1529
1553
  var DefaultInput = ({
1530
1554
  node,
1531
1555
  attributes,
@@ -1543,6 +1567,7 @@ var DefaultInput = ({
1543
1567
  } = attributes;
1544
1568
  const intl = useIntl9();
1545
1569
  const { flowType } = useOryFlow7();
1570
+ const inputRef = useRef(null);
1546
1571
  const formattedLabel = label ? intl.formatMessage(
1547
1572
  {
1548
1573
  id: "input.placeholder",
@@ -1552,29 +1577,79 @@ var DefaultInput = ({
1552
1577
  placeholder: uiTextToFormattedMessage6(label, intl)
1553
1578
  }
1554
1579
  ) : "";
1555
- return /* @__PURE__ */ jsx42(
1556
- "input",
1580
+ if (rest.type === "hidden") {
1581
+ return /* @__PURE__ */ jsx44(
1582
+ "input",
1583
+ {
1584
+ ...rest,
1585
+ onClick,
1586
+ maxLength: maxlength,
1587
+ autoComplete: autocomplete,
1588
+ placeholder: formattedLabel,
1589
+ "data-testid": `ory/form/node/input/${name}`,
1590
+ ...register(name, { value })
1591
+ }
1592
+ );
1593
+ }
1594
+ const { ref, ...restRegister } = register(name, { value });
1595
+ return /* @__PURE__ */ jsxs24(
1596
+ "div",
1557
1597
  {
1558
- ...rest,
1559
- onClick,
1560
- maxLength: maxlength,
1561
- autoComplete: autocomplete,
1562
- placeholder: formattedLabel,
1563
- "data-testid": `ory/form/node/input/${name}`,
1564
1598
  className: cn(
1565
- "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0",
1566
- "bg-input-background-default border-input-border-default text-input-foreground-primary",
1567
- "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
1568
- "focus:border-input-border-focus focus-visible:border-input-border-focus",
1569
- "hover:bg-input-background-hover hover:border-input-border-hover",
1570
- "px-4 py-[13px]",
1599
+ "relative flex justify-stretch",
1571
1600
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1572
1601
  flowType === FlowType5.Settings && "max-w-[488px]"
1573
1602
  ),
1574
- ...register(name, { value })
1603
+ children: [
1604
+ /* @__PURE__ */ jsx44(
1605
+ "input",
1606
+ {
1607
+ ...rest,
1608
+ onClick,
1609
+ maxLength: maxlength,
1610
+ autoComplete: autocomplete,
1611
+ placeholder: formattedLabel,
1612
+ "data-testid": `ory/form/node/input/${name}`,
1613
+ className: cn(
1614
+ "antialiased rounded-forms border leading-tight transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus-visible:outline-none focus:ring-0 w-full",
1615
+ "bg-input-background-default border-input-border-default text-input-foreground-primary",
1616
+ "disabled:bg-input-background-disabled disabled:border-input-border-disabled disabled:text-input-foreground-disabled",
1617
+ "focus:border-input-border-focus focus-visible:border-input-border-focus",
1618
+ "hover:bg-input-background-hover hover:border-input-border-hover",
1619
+ "px-4 py-[13px]"
1620
+ ),
1621
+ ref: (e) => {
1622
+ inputRef.current = e;
1623
+ ref(e);
1624
+ },
1625
+ ...restRegister
1626
+ }
1627
+ ),
1628
+ rest.type === "password" && /* @__PURE__ */ jsx44(PasswordToggle, { inputRef })
1629
+ ]
1575
1630
  }
1576
1631
  );
1577
1632
  };
1633
+ function PasswordToggle({
1634
+ inputRef
1635
+ }) {
1636
+ const [shown, setShown] = useState2(false);
1637
+ const handleClick = () => {
1638
+ setShown(!shown);
1639
+ if (inputRef.current) {
1640
+ inputRef.current.type = shown ? "password" : "text";
1641
+ }
1642
+ };
1643
+ return /* @__PURE__ */ jsx44(
1644
+ "button",
1645
+ {
1646
+ onClick: handleClick,
1647
+ className: "absolute right-0 h-full w-12 flex items-center justify-center",
1648
+ type: "button",
1649
+ children: shown ? /* @__PURE__ */ jsx44(eye_off_default, {}) : /* @__PURE__ */ jsx44(eye_default, {})
1650
+ }
1651
+ );
1652
+ }
1578
1653
 
1579
1654
  // src/theme/default/components/form/label.tsx
1580
1655
  import {
@@ -1590,7 +1665,7 @@ import {
1590
1665
  } from "@ory/elements-react";
1591
1666
  import { useFormContext as useFormContext5 } from "react-hook-form";
1592
1667
  import { useIntl as useIntl10 } from "react-intl";
1593
- import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
1668
+ import { jsx as jsx45, jsxs as jsxs25 } from "react/jsx-runtime";
1594
1669
  function findResendNode(nodes) {
1595
1670
  return nodes.find(
1596
1671
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -1615,9 +1690,9 @@ function DefaultLabel({
1615
1690
  }
1616
1691
  };
1617
1692
  const fieldError = formState.errors[attributes.name];
1618
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-1 antialiased", children: [
1619
- label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
1620
- /* @__PURE__ */ jsx43(
1693
+ return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-1 antialiased", children: [
1694
+ label && /* @__PURE__ */ jsxs25("span", { className: "inline-flex justify-between", children: [
1695
+ /* @__PURE__ */ jsx45(
1621
1696
  "label",
1622
1697
  {
1623
1698
  ...messageTestId3(label),
@@ -1629,7 +1704,7 @@ function DefaultLabel({
1629
1704
  }
1630
1705
  ),
1631
1706
  isPassword && config.project.recovery_enabled && flowType === FlowType6.Login && // TODO: make it possible to override with a custom component
1632
- /* @__PURE__ */ jsx43(
1707
+ /* @__PURE__ */ jsx45(
1633
1708
  "a",
1634
1709
  {
1635
1710
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -1640,7 +1715,7 @@ function DefaultLabel({
1640
1715
  })
1641
1716
  }
1642
1717
  ),
1643
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx43(
1718
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx45(
1644
1719
  "button",
1645
1720
  {
1646
1721
  type: "submit",
@@ -1653,8 +1728,8 @@ function DefaultLabel({
1653
1728
  )
1654
1729
  ] }),
1655
1730
  children,
1656
- node.messages.map((message) => /* @__PURE__ */ jsx43(Message.Content, { message }, message.id)),
1657
- fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx43(Message.Content, { message: fieldError })
1731
+ node.messages.map((message) => /* @__PURE__ */ jsx45(Message.Content, { message }, message.id)),
1732
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx45(Message.Content, { message: fieldError })
1658
1733
  ] });
1659
1734
  }
1660
1735
 
@@ -1665,11 +1740,11 @@ import {
1665
1740
  } from "@ory/elements-react";
1666
1741
  import { forwardRef } from "react";
1667
1742
  import { useIntl as useIntl11 } from "react-intl";
1668
- import { jsx as jsx44 } from "react/jsx-runtime";
1743
+ import { jsx as jsx46 } from "react/jsx-runtime";
1669
1744
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1670
1745
  const intl = useIntl11();
1671
1746
  const label = getNodeLabel5(node);
1672
- return /* @__PURE__ */ jsx44(
1747
+ return /* @__PURE__ */ jsx46(
1673
1748
  "a",
1674
1749
  {
1675
1750
  ...attributes,
@@ -1690,9 +1765,9 @@ import { useFormContext as useFormContext6 } from "react-hook-form";
1690
1765
 
1691
1766
  // src/theme/default/components/form/shadcn/otp-input.tsx
1692
1767
  import { OTPInput, OTPInputContext } from "input-otp";
1693
- import * as React24 from "react";
1694
- import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
1695
- var InputOTP = React24.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx45(
1768
+ import * as React26 from "react";
1769
+ import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
1770
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx47(
1696
1771
  OTPInput,
1697
1772
  {
1698
1773
  ref,
@@ -1705,12 +1780,12 @@ var InputOTP = React24.forwardRef(({ className, containerClassName, ...props },
1705
1780
  }
1706
1781
  ));
1707
1782
  InputOTP.displayName = "InputOTP";
1708
- var InputOTPGroup = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx45("div", { ref, className: cn("flex items-center", className), ...props }));
1783
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("div", { ref, className: cn("flex items-center", className), ...props }));
1709
1784
  InputOTPGroup.displayName = "InputOTPGroup";
1710
- var InputOTPSlot = React24.forwardRef(({ index, className, ...props }, ref) => {
1711
- const inputOTPContext = React24.useContext(OTPInputContext);
1785
+ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
1786
+ const inputOTPContext = React26.useContext(OTPInputContext);
1712
1787
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1713
- return /* @__PURE__ */ jsxs24(
1788
+ return /* @__PURE__ */ jsxs26(
1714
1789
  "div",
1715
1790
  {
1716
1791
  ref,
@@ -1722,8 +1797,8 @@ var InputOTPSlot = React24.forwardRef(({ index, className, ...props }, ref) => {
1722
1797
  ),
1723
1798
  ...props,
1724
1799
  children: [
1725
- /* @__PURE__ */ jsx45("span", { className: "inline-block size-4", children: char }),
1726
- hasFakeCaret && /* @__PURE__ */ jsx45("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx45("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1800
+ /* @__PURE__ */ jsx47("span", { className: "inline-block size-4", children: char }),
1801
+ hasFakeCaret && /* @__PURE__ */ jsx47("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx47("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1727
1802
  ]
1728
1803
  }
1729
1804
  );
@@ -1733,7 +1808,7 @@ InputOTPSlot.displayName = "InputOTPSlot";
1733
1808
  // src/theme/default/components/form/pin-code-input.tsx
1734
1809
  import { useOryFlow as useOryFlow9 } from "@ory/elements-react";
1735
1810
  import { FlowType as FlowType7 } from "@ory/client-fetch";
1736
- import { jsx as jsx46 } from "react/jsx-runtime";
1811
+ import { jsx as jsx48 } from "react/jsx-runtime";
1737
1812
  var DefaultPinCodeInput = ({ attributes }) => {
1738
1813
  const { setValue, watch } = useFormContext6();
1739
1814
  const { maxlength, name } = attributes;
@@ -1743,14 +1818,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
1743
1818
  setValue(name, v);
1744
1819
  };
1745
1820
  const value = watch(name);
1746
- return /* @__PURE__ */ jsx46(
1821
+ return /* @__PURE__ */ jsx48(
1747
1822
  InputOTP,
1748
1823
  {
1749
1824
  maxLength: maxlength != null ? maxlength : 6,
1750
1825
  onChange: handleInputChange,
1751
1826
  name,
1752
1827
  value,
1753
- children: /* @__PURE__ */ jsx46(
1828
+ children: /* @__PURE__ */ jsx48(
1754
1829
  InputOTPGroup,
1755
1830
  {
1756
1831
  className: cn(
@@ -1758,7 +1833,7 @@ var DefaultPinCodeInput = ({ attributes }) => {
1758
1833
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1759
1834
  flowType === FlowType7.Settings && "max-w-[488px]"
1760
1835
  ),
1761
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx46(InputOTPSlot, { index }, index))
1836
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx48(InputOTPSlot, { index }, index))
1762
1837
  }
1763
1838
  )
1764
1839
  }
@@ -1766,13 +1841,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
1766
1841
  };
1767
1842
 
1768
1843
  // src/theme/default/components/form/section.tsx
1769
- import { jsx as jsx47, jsxs as jsxs25 } from "react/jsx-runtime";
1844
+ import { jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
1770
1845
  var DefaultFormSection = ({
1771
1846
  children,
1772
1847
  nodes: _nodes,
1773
1848
  ...rest
1774
1849
  }) => {
1775
- return /* @__PURE__ */ jsx47(
1850
+ return /* @__PURE__ */ jsx49(
1776
1851
  "form",
1777
1852
  {
1778
1853
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -1786,10 +1861,10 @@ var DefaultFormSectionContent = ({
1786
1861
  description,
1787
1862
  children
1788
1863
  }) => {
1789
- return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1790
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1791
- /* @__PURE__ */ jsx47("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1792
- /* @__PURE__ */ jsx47("span", { className: "text-interface-foreground-default-secondary", children: description })
1864
+ return /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1865
+ /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-2", children: [
1866
+ /* @__PURE__ */ jsx49("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1867
+ /* @__PURE__ */ jsx49("span", { className: "text-interface-foreground-default-secondary", children: description })
1793
1868
  ] }),
1794
1869
  children
1795
1870
  ] });
@@ -1798,14 +1873,14 @@ var DefaultFormSectionFooter = ({
1798
1873
  children,
1799
1874
  text
1800
1875
  }) => {
1801
- return /* @__PURE__ */ jsxs25(
1876
+ return /* @__PURE__ */ jsxs27(
1802
1877
  "div",
1803
1878
  {
1804
1879
  className: cn(
1805
1880
  "flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
1806
1881
  ),
1807
1882
  children: [
1808
- /* @__PURE__ */ jsx47("span", { children: text }),
1883
+ /* @__PURE__ */ jsx49("span", { children: text }),
1809
1884
  children
1810
1885
  ]
1811
1886
  }
@@ -1815,31 +1890,31 @@ var DefaultFormSectionFooter = ({
1815
1890
  // src/theme/default/components/form/text.tsx
1816
1891
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
1817
1892
  import { useIntl as useIntl12 } from "react-intl";
1818
- import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs26 } from "react/jsx-runtime";
1893
+ import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs28 } from "react/jsx-runtime";
1819
1894
  function DefaultText({ node, attributes }) {
1820
1895
  var _a;
1821
1896
  const intl = useIntl12();
1822
1897
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
1823
1898
  if (lookup) {
1824
- return /* @__PURE__ */ jsxs26(Fragment4, { children: [
1825
- /* @__PURE__ */ jsx48("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1826
- lookup.map((text, index) => /* @__PURE__ */ jsx48(
1899
+ return /* @__PURE__ */ jsxs28(Fragment4, { children: [
1900
+ /* @__PURE__ */ jsx50("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1901
+ lookup.map((text, index) => /* @__PURE__ */ jsx50(
1827
1902
  "pre",
1828
1903
  {
1829
1904
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
1830
- children: /* @__PURE__ */ jsx48("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
1905
+ children: /* @__PURE__ */ jsx50("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" })
1831
1906
  },
1832
1907
  index
1833
1908
  ))
1834
1909
  ] });
1835
1910
  }
1836
- return /* @__PURE__ */ jsx48(Fragment4, { children: /* @__PURE__ */ jsxs26(
1911
+ return /* @__PURE__ */ jsx50(Fragment4, { children: /* @__PURE__ */ jsxs28(
1837
1912
  "p",
1838
1913
  {
1839
1914
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
1840
1915
  id: attributes.id,
1841
1916
  children: [
1842
- node.meta.label ? /* @__PURE__ */ jsx48("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
1917
+ node.meta.label ? /* @__PURE__ */ jsx50("label", { children: uiTextToFormattedMessage9(node.meta.label, intl) }) : null,
1843
1918
  attributes.text ? uiTextToFormattedMessage9(attributes.text, intl) : ""
1844
1919
  ]
1845
1920
  }
@@ -1851,7 +1926,7 @@ import { useComponents as useComponents4 } from "@ory/elements-react";
1851
1926
 
1852
1927
  // src/theme/default/components/ui/user-menu.tsx
1853
1928
  import { DropdownMenuLabel as DropdownMenuLabel2 } from "@radix-ui/react-dropdown-menu";
1854
- import { useCallback, useEffect as useEffect3, useState as useState2 } from "react";
1929
+ import { useCallback, useEffect as useEffect3, useState as useState3 } from "react";
1855
1930
  import { useOryFlow as useOryFlow10 } from "@ory/elements-react";
1856
1931
 
1857
1932
  // src/util/client.ts
@@ -1872,22 +1947,22 @@ function frontendClient(sdkUrl, opts = {}) {
1872
1947
  }
1873
1948
 
1874
1949
  // src/theme/default/assets/icons/logout.svg
1875
- import * as React25 from "react";
1876
- import { jsx as jsx49 } from "react/jsx-runtime";
1950
+ import * as React27 from "react";
1951
+ import { jsx as jsx51 } from "react/jsx-runtime";
1877
1952
  var SvgLogout = (props) => {
1878
1953
  var _a, _b;
1879
- return /* @__PURE__ */ jsx49("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__ */ jsx49("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1954
+ return /* @__PURE__ */ jsx51("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx51("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1880
1955
  };
1881
1956
  var logout_default = SvgLogout;
1882
1957
 
1883
1958
  // src/theme/default/assets/icons/settings.svg
1884
- import * as React26 from "react";
1885
- import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
1959
+ import * as React28 from "react";
1960
+ import { jsx as jsx52, jsxs as jsxs29 } from "react/jsx-runtime";
1886
1961
  var SvgSettings = (props) => {
1887
1962
  var _a, _b;
1888
- return /* @__PURE__ */ jsx50("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1889
- /* @__PURE__ */ jsx50("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" }),
1890
- /* @__PURE__ */ jsx50("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1963
+ return /* @__PURE__ */ jsx52("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs29("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1964
+ /* @__PURE__ */ jsx52("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1965
+ /* @__PURE__ */ jsx52("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1891
1966
  ] }) });
1892
1967
  };
1893
1968
  var settings_default = SvgSettings;
@@ -1934,10 +2009,10 @@ var getUserInitials = (session) => {
1934
2009
  // src/theme/default/components/ui/dropdown-menu.tsx
1935
2010
  import { forwardRef as forwardRef3 } from "react";
1936
2011
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
1937
- import { jsx as jsx51 } from "react/jsx-runtime";
2012
+ import { jsx as jsx53 } from "react/jsx-runtime";
1938
2013
  var DropdownMenu = DropdownMenuPrimitive.Root;
1939
2014
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1940
- var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx51(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx51(
2015
+ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ jsx53(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx53(
1941
2016
  DropdownMenuPrimitive.Content,
1942
2017
  {
1943
2018
  ref,
@@ -1952,7 +2027,7 @@ var DropdownMenuContent = forwardRef3(({ className, sideOffset = 16, ...props },
1952
2027
  }
1953
2028
  ) }));
1954
2029
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
1955
- var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx51(
2030
+ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx53(
1956
2031
  DropdownMenuPrimitive.Item,
1957
2032
  {
1958
2033
  ref,
@@ -1970,7 +2045,7 @@ var DropdownMenuItem = forwardRef3(({ className, inset, ...props }, ref) => /* @
1970
2045
  }
1971
2046
  ));
1972
2047
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
1973
- var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx51(
2048
+ var DropdownMenuLabel = forwardRef3(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx53(
1974
2049
  DropdownMenuPrimitive.Label,
1975
2050
  {
1976
2051
  ref,
@@ -1988,32 +2063,32 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
1988
2063
  import { forwardRef as forwardRef4 } from "react";
1989
2064
 
1990
2065
  // src/theme/default/assets/icons/user.svg
1991
- import * as React27 from "react";
1992
- import { jsx as jsx52 } from "react/jsx-runtime";
2066
+ import * as React29 from "react";
2067
+ import { jsx as jsx54 } from "react/jsx-runtime";
1993
2068
  var SvgUser = (props) => {
1994
2069
  var _a, _b;
1995
- return /* @__PURE__ */ jsx52("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__ */ jsx52("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
2070
+ return /* @__PURE__ */ jsx54("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx54("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
1996
2071
  };
1997
2072
  var user_default = SvgUser;
1998
2073
 
1999
2074
  // src/theme/default/components/ui/user-avater.tsx
2000
- import { jsx as jsx53 } from "react/jsx-runtime";
2075
+ import { jsx as jsx55 } from "react/jsx-runtime";
2001
2076
  var UserAvatar = forwardRef4(
2002
2077
  ({ initials, ...rest }, ref) => {
2003
- return /* @__PURE__ */ jsx53(
2078
+ return /* @__PURE__ */ jsx55(
2004
2079
  "button",
2005
2080
  {
2006
2081
  ref,
2007
2082
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
2008
2083
  ...rest,
2009
- children: /* @__PURE__ */ jsx53("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx53(
2084
+ children: /* @__PURE__ */ jsx55("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ jsx55(
2010
2085
  "img",
2011
2086
  {
2012
2087
  src: initials.avatar,
2013
2088
  alt: initials.primary,
2014
2089
  className: "w-full object-contain"
2015
2090
  }
2016
- ) : /* @__PURE__ */ jsx53(
2091
+ ) : /* @__PURE__ */ jsx55(
2017
2092
  user_default,
2018
2093
  {
2019
2094
  size: 24,
@@ -2027,11 +2102,11 @@ var UserAvatar = forwardRef4(
2027
2102
  UserAvatar.displayName = "UserAvatar";
2028
2103
 
2029
2104
  // src/theme/default/components/ui/user-menu.tsx
2030
- import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
2105
+ import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
2031
2106
  var UserMenu = ({ session }) => {
2032
2107
  const { config } = useOryFlow10();
2033
2108
  const initials = getUserInitials(session);
2034
- const [logoutFlow, setLogoutFlow] = useState2();
2109
+ const [logoutFlow, setLogoutFlow] = useState3();
2035
2110
  const fetchLogoutFlow = useCallback(async () => {
2036
2111
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow();
2037
2112
  setLogoutFlow(flow);
@@ -2039,22 +2114,22 @@ var UserMenu = ({ session }) => {
2039
2114
  useEffect3(() => {
2040
2115
  void fetchLogoutFlow();
2041
2116
  }, [fetchLogoutFlow]);
2042
- return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
2043
- /* @__PURE__ */ jsx54(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx54(UserAvatar, { initials }) }),
2044
- /* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
2045
- /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
2046
- /* @__PURE__ */ jsx54(UserAvatar, { disabled: true, initials }),
2047
- /* @__PURE__ */ jsxs28("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
2048
- /* @__PURE__ */ jsx54("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
2049
- initials.secondary && /* @__PURE__ */ jsx54("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
2117
+ return /* @__PURE__ */ jsxs30(DropdownMenu, { children: [
2118
+ /* @__PURE__ */ jsx56(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx56(UserAvatar, { initials }) }),
2119
+ /* @__PURE__ */ jsxs30(DropdownMenuContent, { children: [
2120
+ /* @__PURE__ */ jsxs30(DropdownMenuLabel2, { className: "flex gap-3 px-5 py-4.5", children: [
2121
+ /* @__PURE__ */ jsx56(UserAvatar, { disabled: true, initials }),
2122
+ /* @__PURE__ */ jsxs30("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
2123
+ /* @__PURE__ */ jsx56("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
2124
+ initials.secondary && /* @__PURE__ */ jsx56("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
2050
2125
  ] })
2051
2126
  ] }),
2052
- /* @__PURE__ */ jsx54(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
2053
- /* @__PURE__ */ jsx54(settings_default, { size: 16 }),
2127
+ /* @__PURE__ */ jsx56(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs30("a", { href: "/settings", children: [
2128
+ /* @__PURE__ */ jsx56(settings_default, { size: 16 }),
2054
2129
  " User settings"
2055
2130
  ] }) }),
2056
- /* @__PURE__ */ jsx54(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
2057
- /* @__PURE__ */ jsx54(logout_default, { size: 16 }),
2131
+ /* @__PURE__ */ jsx56(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs30("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
2132
+ /* @__PURE__ */ jsx56(logout_default, { size: 16 }),
2058
2133
  " Logout"
2059
2134
  ] }) })
2060
2135
  ] })
@@ -2063,13 +2138,13 @@ var UserMenu = ({ session }) => {
2063
2138
 
2064
2139
  // src/theme/default/components/generic/page-header.tsx
2065
2140
  import { useSession } from "@ory/elements-react/client";
2066
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
2141
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
2067
2142
  var DefaultPageHeader = (_props) => {
2068
2143
  const { Card } = useComponents4();
2069
2144
  const { session } = useSession();
2070
- return /* @__PURE__ */ jsx55("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsx55("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
2071
- /* @__PURE__ */ jsx55("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx55(Card.Logo, {}) }),
2072
- /* @__PURE__ */ jsx55(UserMenu, { session })
2145
+ return /* @__PURE__ */ jsx57("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ jsx57("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs31("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
2146
+ /* @__PURE__ */ jsx57("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ jsx57(Card.Logo, {}) }),
2147
+ /* @__PURE__ */ jsx57(UserMenu, { session })
2073
2148
  ] }) }) });
2074
2149
  };
2075
2150
 
@@ -2079,26 +2154,26 @@ import { useFormContext as useFormContext7 } from "react-hook-form";
2079
2154
  import { useDebounceValue as useDebounceValue2 } from "usehooks-ts";
2080
2155
 
2081
2156
  // src/theme/default/assets/icons/trash.svg
2082
- import * as React28 from "react";
2083
- import { jsx as jsx56 } from "react/jsx-runtime";
2157
+ import * as React30 from "react";
2158
+ import { jsx as jsx58 } from "react/jsx-runtime";
2084
2159
  var SvgTrash = (props) => {
2085
2160
  var _a, _b;
2086
- return /* @__PURE__ */ jsx56("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__ */ jsx56("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
2161
+ return /* @__PURE__ */ jsx58("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx58("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
2087
2162
  };
2088
2163
  var trash_default = SvgTrash;
2089
2164
 
2090
2165
  // src/theme/default/components/settings/settings-oidc.tsx
2091
- import { jsx as jsx57, jsxs as jsxs30 } from "react/jsx-runtime";
2166
+ import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
2092
2167
  function DefaultSettingsOidc({
2093
2168
  linkButtons,
2094
2169
  unlinkButtons
2095
2170
  }) {
2096
2171
  const hasLinkButtons = linkButtons.length > 0;
2097
2172
  const hasUnlinkButtons = unlinkButtons.length > 0;
2098
- return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
2099
- hasLinkButtons && /* @__PURE__ */ jsx57("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
2173
+ return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
2174
+ hasLinkButtons && /* @__PURE__ */ jsx59("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
2100
2175
  const attrs = button.attributes;
2101
- return /* @__PURE__ */ jsx57(
2176
+ return /* @__PURE__ */ jsx59(
2102
2177
  DefaultButtonSocial,
2103
2178
  {
2104
2179
  showLabel: true,
@@ -2109,12 +2184,12 @@ function DefaultSettingsOidc({
2109
2184
  attrs.value
2110
2185
  );
2111
2186
  }) }),
2112
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx57(DefaultHorizontalDivider, {}) : null,
2187
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) : null,
2113
2188
  unlinkButtons.map((button) => {
2114
2189
  if (button.attributes.node_type !== "input") {
2115
2190
  return null;
2116
2191
  }
2117
- return /* @__PURE__ */ jsx57(UnlinkRow, { button }, button.attributes.value);
2192
+ return /* @__PURE__ */ jsx59(UnlinkRow, { button }, button.attributes.value);
2118
2193
  })
2119
2194
  ] });
2120
2195
  }
@@ -2136,12 +2211,12 @@ function UnlinkRow({ button }) {
2136
2211
  setClicked(false);
2137
2212
  }
2138
2213
  }, [isSubmitting, setClicked]);
2139
- return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
2140
- /* @__PURE__ */ jsxs30("div", { className: "flex items-center gap-6", children: [
2141
- Logo ? /* @__PURE__ */ jsx57(Logo, { size: 32 }) : /* @__PURE__ */ jsx57(provider_logos_default.generic, { size: 32 }),
2142
- /* @__PURE__ */ jsx57("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
2214
+ return /* @__PURE__ */ jsxs32("div", { className: "flex justify-between", children: [
2215
+ /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-6", children: [
2216
+ Logo ? /* @__PURE__ */ jsx59(Logo, { size: 32 }) : /* @__PURE__ */ jsx59(provider_logos_default.generic, { size: 32 }),
2217
+ /* @__PURE__ */ jsx59("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
2143
2218
  ] }),
2144
- /* @__PURE__ */ jsx57(
2219
+ /* @__PURE__ */ jsx59(
2145
2220
  "button",
2146
2221
  {
2147
2222
  ...attrs,
@@ -2150,7 +2225,7 @@ function UnlinkRow({ button }) {
2150
2225
  disabled: isSubmitting,
2151
2226
  className: "relative",
2152
2227
  title: `Unlink ${provider}`,
2153
- children: clicked ? /* @__PURE__ */ jsx57(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx57(
2228
+ children: clicked ? /* @__PURE__ */ jsx59(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx59(
2154
2229
  trash_default,
2155
2230
  {
2156
2231
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2165,7 +2240,7 @@ function UnlinkRow({ button }) {
2165
2240
  // src/theme/default/components/settings/settings-passkey.tsx
2166
2241
  import { useComponents as useComponents5 } from "@ory/elements-react";
2167
2242
  import { useFormContext as useFormContext8 } from "react-hook-form";
2168
- import { jsx as jsx58, jsxs as jsxs31 } from "react/jsx-runtime";
2243
+ import { jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
2169
2244
  function DefaultSettingsPasskey({
2170
2245
  triggerButton,
2171
2246
  removeButtons
@@ -2175,8 +2250,8 @@ function DefaultSettingsPasskey({
2175
2250
  } = useFormContext8();
2176
2251
  const { Node: Node2 } = useComponents5();
2177
2252
  const hasRemoveButtons = removeButtons.length > 0;
2178
- return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
2179
- /* @__PURE__ */ jsx58("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx58(
2253
+ return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2254
+ /* @__PURE__ */ jsx60("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ jsx60(
2180
2255
  Node2.Button,
2181
2256
  {
2182
2257
  node: triggerButton,
@@ -2184,38 +2259,38 @@ function DefaultSettingsPasskey({
2184
2259
  onClick: triggerButton.onClick
2185
2260
  }
2186
2261
  ) }),
2187
- hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
2188
- /* @__PURE__ */ jsx58(DefaultHorizontalDivider, {}),
2189
- /* @__PURE__ */ jsx58("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2262
+ hasRemoveButtons ? /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2263
+ /* @__PURE__ */ jsx60(DefaultHorizontalDivider, {}),
2264
+ /* @__PURE__ */ jsx60("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2190
2265
  var _a, _b;
2191
2266
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2192
2267
  const addedAt = "added_at" in context ? context.added_at : null;
2193
2268
  const displayName = "display_name" in context ? context.display_name : null;
2194
2269
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2195
- return /* @__PURE__ */ jsxs31(
2270
+ return /* @__PURE__ */ jsxs33(
2196
2271
  "div",
2197
2272
  {
2198
2273
  className: "flex justify-between gap-6 md:items-center",
2199
2274
  children: [
2200
- /* @__PURE__ */ jsxs31("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2201
- /* @__PURE__ */ jsx58(
2275
+ /* @__PURE__ */ jsxs33("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2276
+ /* @__PURE__ */ jsx60(
2202
2277
  passkey_default,
2203
2278
  {
2204
2279
  size: 32,
2205
2280
  className: "text-interface-foreground-default-primary"
2206
2281
  }
2207
2282
  ),
2208
- /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2209
- /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col truncate", children: [
2210
- /* @__PURE__ */ jsx58("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2211
- /* @__PURE__ */ jsx58("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2283
+ /* @__PURE__ */ jsxs33("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2284
+ /* @__PURE__ */ jsxs33("div", { className: "flex-1 flex-col truncate", children: [
2285
+ /* @__PURE__ */ jsx60("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2286
+ /* @__PURE__ */ jsx60("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2212
2287
  ] }),
2213
- addedAt && /* @__PURE__ */ jsx58("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2288
+ addedAt && /* @__PURE__ */ jsx60("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2214
2289
  dateStyle: "long"
2215
2290
  }).format(new Date(addedAt)) })
2216
2291
  ] })
2217
2292
  ] }),
2218
- /* @__PURE__ */ jsx58(
2293
+ /* @__PURE__ */ jsx60(
2219
2294
  "button",
2220
2295
  {
2221
2296
  ...node.attributes,
@@ -2223,7 +2298,7 @@ function DefaultSettingsPasskey({
2223
2298
  onClick: node.onClick,
2224
2299
  disabled: isSubmitting,
2225
2300
  className: "relative",
2226
- children: isSubmitting ? /* @__PURE__ */ jsx58(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx58(
2301
+ children: isSubmitting ? /* @__PURE__ */ jsx60(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx60(
2227
2302
  trash_default,
2228
2303
  {
2229
2304
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2242,38 +2317,26 @@ function DefaultSettingsPasskey({
2242
2317
  }
2243
2318
 
2244
2319
  // src/theme/default/assets/icons/download.svg
2245
- import * as React29 from "react";
2246
- import { jsx as jsx59 } from "react/jsx-runtime";
2320
+ import * as React31 from "react";
2321
+ import { jsx as jsx61 } from "react/jsx-runtime";
2247
2322
  var SvgDownload = (props) => {
2248
2323
  var _a, _b;
2249
- return /* @__PURE__ */ jsx59("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__ */ jsx59("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
2324
+ return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
2250
2325
  };
2251
2326
  var download_default = SvgDownload;
2252
2327
 
2253
- // src/theme/default/assets/icons/eye.svg
2254
- import * as React30 from "react";
2255
- import { jsx as jsx60, jsxs as jsxs32 } from "react/jsx-runtime";
2256
- var SvgEye = (props) => {
2257
- var _a, _b;
2258
- return /* @__PURE__ */ jsx60("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
2259
- /* @__PURE__ */ jsx60("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
2260
- /* @__PURE__ */ jsx60("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
2261
- ] }) });
2262
- };
2263
- var eye_default = SvgEye;
2264
-
2265
2328
  // src/theme/default/assets/icons/refresh.svg
2266
- import * as React31 from "react";
2267
- import { jsx as jsx61 } from "react/jsx-runtime";
2329
+ import * as React32 from "react";
2330
+ import { jsx as jsx62 } from "react/jsx-runtime";
2268
2331
  var SvgRefresh = (props) => {
2269
2332
  var _a, _b;
2270
- return /* @__PURE__ */ jsx61("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx61("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
2333
+ return /* @__PURE__ */ jsx62("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx62("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
2271
2334
  };
2272
2335
  var refresh_default = SvgRefresh;
2273
2336
 
2274
2337
  // src/theme/default/components/settings/settings-recovery-codes.tsx
2275
2338
  import { useFormContext as useFormContext9 } from "react-hook-form";
2276
- import { Fragment as Fragment5, jsx as jsx62, jsxs as jsxs33 } from "react/jsx-runtime";
2339
+ import { Fragment as Fragment5, jsx as jsx63, jsxs as jsxs34 } from "react/jsx-runtime";
2277
2340
  function DefaultSettingsRecoveryCodes({
2278
2341
  codes,
2279
2342
  regnerateButton,
@@ -2295,12 +2358,12 @@ function DefaultSettingsRecoveryCodes({
2295
2358
  element.click();
2296
2359
  };
2297
2360
  const hasCodes = codes.length >= 1;
2298
- return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
2299
- codes.length > 0 && /* @__PURE__ */ jsx62(DefaultHorizontalDivider, {}),
2300
- /* @__PURE__ */ jsxs33("div", { className: "flex gap-4 justify-between", children: [
2301
- /* @__PURE__ */ jsx62("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2302
- /* @__PURE__ */ jsxs33("div", { className: "flex gap-2", children: [
2303
- regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx62(
2361
+ return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-8", children: [
2362
+ codes.length > 0 && /* @__PURE__ */ jsx63(DefaultHorizontalDivider, {}),
2363
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-4 justify-between", children: [
2364
+ /* @__PURE__ */ jsx63("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2365
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-2", children: [
2366
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ jsx63(
2304
2367
  "button",
2305
2368
  {
2306
2369
  ...regnerateButton.attributes,
@@ -2309,7 +2372,7 @@ function DefaultSettingsRecoveryCodes({
2309
2372
  onClick: onRegenerate,
2310
2373
  disabled: isSubmitting,
2311
2374
  "data-loading": isSubmitting,
2312
- children: /* @__PURE__ */ jsx62(
2375
+ children: /* @__PURE__ */ jsx63(
2313
2376
  refresh_default,
2314
2377
  {
2315
2378
  size: 24,
@@ -2318,7 +2381,7 @@ function DefaultSettingsRecoveryCodes({
2318
2381
  )
2319
2382
  }
2320
2383
  ),
2321
- revealButton && /* @__PURE__ */ jsx62(Fragment5, { children: /* @__PURE__ */ jsx62(
2384
+ revealButton && /* @__PURE__ */ jsx63(Fragment5, { children: /* @__PURE__ */ jsx63(
2322
2385
  "button",
2323
2386
  {
2324
2387
  ...revealButton.attributes,
@@ -2326,7 +2389,7 @@ function DefaultSettingsRecoveryCodes({
2326
2389
  className: "ml-auto",
2327
2390
  onClick: onReveal,
2328
2391
  title: "Reveal recovery codes",
2329
- children: /* @__PURE__ */ jsx62(
2392
+ children: /* @__PURE__ */ jsx63(
2330
2393
  eye_default,
2331
2394
  {
2332
2395
  size: 24,
@@ -2335,7 +2398,7 @@ function DefaultSettingsRecoveryCodes({
2335
2398
  )
2336
2399
  }
2337
2400
  ) }),
2338
- hasCodes && /* @__PURE__ */ jsx62(
2401
+ hasCodes && /* @__PURE__ */ jsx63(
2339
2402
  "button",
2340
2403
  {
2341
2404
  onClick: onDownload,
@@ -2343,7 +2406,7 @@ function DefaultSettingsRecoveryCodes({
2343
2406
  className: "ml-auto",
2344
2407
  "data-testid": "ory/screen/settings/group/recovery_code/download",
2345
2408
  title: "Download recovery codes",
2346
- children: /* @__PURE__ */ jsx62(
2409
+ children: /* @__PURE__ */ jsx63(
2347
2410
  download_default,
2348
2411
  {
2349
2412
  size: 24,
@@ -2354,12 +2417,12 @@ function DefaultSettingsRecoveryCodes({
2354
2417
  )
2355
2418
  ] })
2356
2419
  ] }),
2357
- hasCodes ? /* @__PURE__ */ jsx62("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx62(
2420
+ hasCodes ? /* @__PURE__ */ jsx63("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ jsx63(
2358
2421
  "div",
2359
2422
  {
2360
2423
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
2361
2424
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
2362
- children: codes.map((code) => /* @__PURE__ */ jsx62("p", { children: code }, code))
2425
+ children: codes.map((code) => /* @__PURE__ */ jsx63("p", { children: code }, code))
2363
2426
  }
2364
2427
  ) }) : null
2365
2428
  ] });
@@ -2369,17 +2432,17 @@ function DefaultSettingsRecoveryCodes({
2369
2432
  import { useComponents as useComponents6 } from "@ory/elements-react";
2370
2433
 
2371
2434
  // src/theme/default/assets/icons/qrcode.svg
2372
- import * as React32 from "react";
2373
- import { jsx as jsx63 } from "react/jsx-runtime";
2435
+ import * as React33 from "react";
2436
+ import { jsx as jsx64 } from "react/jsx-runtime";
2374
2437
  var SvgQrcode = (props) => {
2375
2438
  var _a, _b;
2376
- return /* @__PURE__ */ jsx63("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__ */ jsx63("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
2439
+ return /* @__PURE__ */ jsx64("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsx64("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
2377
2440
  };
2378
2441
  var qrcode_default = SvgQrcode;
2379
2442
 
2380
2443
  // src/theme/default/components/settings/settings-totp.tsx
2381
2444
  import { useFormContext as useFormContext10 } from "react-hook-form";
2382
- import { jsx as jsx64, jsxs as jsxs34 } from "react/jsx-runtime";
2445
+ import { jsx as jsx65, jsxs as jsxs35 } from "react/jsx-runtime";
2383
2446
  function DefaultSettingsTotp({
2384
2447
  totpImage,
2385
2448
  totpInput,
@@ -2399,19 +2462,19 @@ function DefaultSettingsTotp({
2399
2462
  node_type: _ignoredNodeType,
2400
2463
  ...buttonAttrs
2401
2464
  } = totpUnlink.attributes;
2402
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2403
- /* @__PURE__ */ jsx64("div", { className: "col-span-full", children: /* @__PURE__ */ jsx64(Card.Divider, {}) }),
2404
- /* @__PURE__ */ jsxs34("div", { className: "col-span-full flex items-center gap-6", children: [
2405
- /* @__PURE__ */ jsx64("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx64(qrcode_default, { size: 32 }) }),
2406
- /* @__PURE__ */ jsx64("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx64("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2407
- /* @__PURE__ */ jsx64(
2465
+ return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2466
+ /* @__PURE__ */ jsx65("div", { className: "col-span-full", children: /* @__PURE__ */ jsx65(Card.Divider, {}) }),
2467
+ /* @__PURE__ */ jsxs35("div", { className: "col-span-full flex items-center gap-6", children: [
2468
+ /* @__PURE__ */ jsx65("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ jsx65(qrcode_default, { size: 32 }) }),
2469
+ /* @__PURE__ */ jsx65("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ jsx65("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2470
+ /* @__PURE__ */ jsx65(
2408
2471
  "button",
2409
2472
  {
2410
2473
  type: type === "button" ? "button" : "submit",
2411
2474
  ...buttonAttrs,
2412
2475
  onClick: onUnlink,
2413
2476
  disabled: isSubmitting,
2414
- children: isSubmitting ? /* @__PURE__ */ jsx64(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx64(
2477
+ children: isSubmitting ? /* @__PURE__ */ jsx65(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx65(
2415
2478
  trash_default,
2416
2479
  {
2417
2480
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2424,9 +2487,9 @@ function DefaultSettingsTotp({
2424
2487
  ] });
2425
2488
  }
2426
2489
  if (totpImage && totpSecret && totpInput) {
2427
- return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2428
- /* @__PURE__ */ jsx64("div", { className: "col-span-full", children: /* @__PURE__ */ jsx64(DefaultHorizontalDivider, {}) }),
2429
- /* @__PURE__ */ jsx64("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx64("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx64("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx64(
2490
+ return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2491
+ /* @__PURE__ */ jsx65("div", { className: "col-span-full", children: /* @__PURE__ */ jsx65(DefaultHorizontalDivider, {}) }),
2492
+ /* @__PURE__ */ jsx65("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ jsx65("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ jsx65("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ jsx65(
2430
2493
  Node2.Image,
2431
2494
  {
2432
2495
  node: totpImage,
@@ -2435,13 +2498,13 @@ function DefaultSettingsTotp({
2435
2498
  }
2436
2499
  }
2437
2500
  ) }) }) }),
2438
- /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
2439
- /* @__PURE__ */ jsx64(
2501
+ /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-6", children: [
2502
+ /* @__PURE__ */ jsx65(
2440
2503
  Node2.Label,
2441
2504
  {
2442
2505
  node: totpSecret,
2443
2506
  attributes: totpSecret.attributes,
2444
- children: /* @__PURE__ */ jsx64(
2507
+ children: /* @__PURE__ */ jsx65(
2445
2508
  Node2.Input,
2446
2509
  {
2447
2510
  node: totpSecret,
@@ -2456,12 +2519,12 @@ function DefaultSettingsTotp({
2456
2519
  )
2457
2520
  }
2458
2521
  ),
2459
- /* @__PURE__ */ jsx64(
2522
+ /* @__PURE__ */ jsx65(
2460
2523
  Node2.Label,
2461
2524
  {
2462
2525
  attributes: totpInput.attributes,
2463
2526
  node: totpInput,
2464
- children: /* @__PURE__ */ jsx64(
2527
+ children: /* @__PURE__ */ jsx65(
2465
2528
  Node2.CodeInput,
2466
2529
  {
2467
2530
  node: totpInput,
@@ -2479,17 +2542,17 @@ function DefaultSettingsTotp({
2479
2542
  import { useComponents as useComponents7 } from "@ory/elements-react";
2480
2543
 
2481
2544
  // src/theme/default/assets/icons/key.svg
2482
- import * as React33 from "react";
2483
- import { jsx as jsx65 } from "react/jsx-runtime";
2545
+ import * as React34 from "react";
2546
+ import { jsx as jsx66 } from "react/jsx-runtime";
2484
2547
  var SvgKey = (props) => {
2485
2548
  var _a, _b;
2486
- return /* @__PURE__ */ jsx65("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__ */ jsx65("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2549
+ return /* @__PURE__ */ jsx66("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx66("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2487
2550
  };
2488
2551
  var key_default = SvgKey;
2489
2552
 
2490
2553
  // src/theme/default/components/settings/settings-webauthn.tsx
2491
2554
  import { useFormContext as useFormContext11 } from "react-hook-form";
2492
- import { jsx as jsx66, jsxs as jsxs35 } from "react/jsx-runtime";
2555
+ import { jsx as jsx67, jsxs as jsxs36 } from "react/jsx-runtime";
2493
2556
  function DefaultSettingsWebauthn({
2494
2557
  nameInput,
2495
2558
  triggerButton,
@@ -2500,14 +2563,14 @@ function DefaultSettingsWebauthn({
2500
2563
  } = useFormContext11();
2501
2564
  const { Node: Node2, Card } = useComponents7();
2502
2565
  const hasRemoveButtons = removeButtons.length > 0;
2503
- return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2504
- /* @__PURE__ */ jsxs35("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2505
- /* @__PURE__ */ jsx66("div", { className: "flex-1", children: /* @__PURE__ */ jsx66(
2566
+ return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2567
+ /* @__PURE__ */ jsxs36("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2568
+ /* @__PURE__ */ jsx67("div", { className: "flex-1", children: /* @__PURE__ */ jsx67(
2506
2569
  Node2.Label,
2507
2570
  {
2508
2571
  node: nameInput,
2509
2572
  attributes: nameInput.attributes,
2510
- children: /* @__PURE__ */ jsx66(
2573
+ children: /* @__PURE__ */ jsx67(
2511
2574
  Node2.Input,
2512
2575
  {
2513
2576
  node: nameInput,
@@ -2516,7 +2579,7 @@ function DefaultSettingsWebauthn({
2516
2579
  )
2517
2580
  }
2518
2581
  ) }),
2519
- triggerButton ? /* @__PURE__ */ jsx66(
2582
+ triggerButton ? /* @__PURE__ */ jsx67(
2520
2583
  Node2.Button,
2521
2584
  {
2522
2585
  node: triggerButton,
@@ -2525,38 +2588,38 @@ function DefaultSettingsWebauthn({
2525
2588
  }
2526
2589
  ) : null
2527
2590
  ] }),
2528
- hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2529
- /* @__PURE__ */ jsx66(Card.Divider, {}),
2530
- /* @__PURE__ */ jsx66("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2591
+ hasRemoveButtons ? /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2592
+ /* @__PURE__ */ jsx67(Card.Divider, {}),
2593
+ /* @__PURE__ */ jsx67("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2531
2594
  var _a, _b;
2532
2595
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2533
2596
  const addedAt = "added_at" in context ? context.added_at : null;
2534
2597
  const displayName = "display_name" in context ? context.display_name : null;
2535
2598
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2536
- return /* @__PURE__ */ jsxs35(
2599
+ return /* @__PURE__ */ jsxs36(
2537
2600
  "div",
2538
2601
  {
2539
2602
  className: "flex justify-between gap-6 md:items-center",
2540
2603
  children: [
2541
- /* @__PURE__ */ jsxs35("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2542
- /* @__PURE__ */ jsx66(
2604
+ /* @__PURE__ */ jsxs36("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2605
+ /* @__PURE__ */ jsx67(
2543
2606
  key_default,
2544
2607
  {
2545
2608
  size: 32,
2546
2609
  className: "text-interface-foreground-default-primary"
2547
2610
  }
2548
2611
  ),
2549
- /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2550
- /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col truncate", children: [
2551
- /* @__PURE__ */ jsx66("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2552
- /* @__PURE__ */ jsx66("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2612
+ /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2613
+ /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col truncate", children: [
2614
+ /* @__PURE__ */ jsx67("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2615
+ /* @__PURE__ */ jsx67("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2553
2616
  ] }),
2554
- addedAt && /* @__PURE__ */ jsx66("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2617
+ addedAt && /* @__PURE__ */ jsx67("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2555
2618
  dateStyle: "long"
2556
2619
  }).format(new Date(addedAt)) })
2557
2620
  ] })
2558
2621
  ] }),
2559
- /* @__PURE__ */ jsx66(
2622
+ /* @__PURE__ */ jsx67(
2560
2623
  "button",
2561
2624
  {
2562
2625
  ...node.attributes,
@@ -2564,7 +2627,7 @@ function DefaultSettingsWebauthn({
2564
2627
  onClick: node.onClick,
2565
2628
  disabled: isSubmitting,
2566
2629
  className: "relative",
2567
- children: isSubmitting ? /* @__PURE__ */ jsx66(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx66(
2630
+ children: isSubmitting ? /* @__PURE__ */ jsx67(Spinner, { className: "relative" }) : /* @__PURE__ */ jsx67(
2568
2631
  trash_default,
2569
2632
  {
2570
2633
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2583,24 +2646,24 @@ function DefaultSettingsWebauthn({
2583
2646
  }
2584
2647
 
2585
2648
  // src/theme/default/components/card/auth-method-list-container.tsx
2586
- import { jsx as jsx67 } from "react/jsx-runtime";
2649
+ import { jsx as jsx68 } from "react/jsx-runtime";
2587
2650
  function DefaultAuthMethodListContainer({
2588
2651
  children
2589
2652
  }) {
2590
- return /* @__PURE__ */ jsx67("div", { className: "grid grid-cols-1 gap-2", children });
2653
+ return /* @__PURE__ */ jsx68("div", { className: "grid grid-cols-1 gap-2", children });
2591
2654
  }
2592
2655
 
2593
2656
  // src/theme/default/components/form/captcha.tsx
2594
2657
  import { isUiNodeInputAttributes as isUiNodeInputAttributes7 } from "@ory/client-fetch";
2595
2658
  import { Turnstile } from "@marsidev/react-turnstile";
2596
- import { useRef as useRef2 } from "react";
2659
+ import { useRef as useRef3 } from "react";
2597
2660
  import { useFormContext as useFormContext23 } from "react-hook-form";
2598
2661
 
2599
2662
  // src/context/flow-context.tsx
2600
2663
  import {
2601
2664
  createContext as createContext2,
2602
2665
  useContext as useContext3,
2603
- useState as useState3
2666
+ useState as useState4
2604
2667
  } from "react";
2605
2668
 
2606
2669
  // src/context/form-state.ts
@@ -2611,14 +2674,14 @@ import { useReducer } from "react";
2611
2674
  import { FlowType as FlowType8, UiNodeGroupEnum as UiNodeGroupEnum3 } from "@ory/client-fetch";
2612
2675
 
2613
2676
  // src/context/flow-context.tsx
2614
- import { jsx as jsx68 } from "react/jsx-runtime";
2677
+ import { jsx as jsx69 } from "react/jsx-runtime";
2615
2678
  var OryFlowContext = createContext2(null);
2616
2679
 
2617
2680
  // src/context/intl-context.tsx
2618
2681
  import { IntlProvider as OriginalIntlProvider } from "react-intl";
2619
2682
 
2620
2683
  // src/components/card/header.tsx
2621
- import { jsx as jsx69 } from "react/jsx-runtime";
2684
+ import { jsx as jsx70 } from "react/jsx-runtime";
2622
2685
 
2623
2686
  // src/components/form/form-provider.tsx
2624
2687
  import { UiNodeGroupEnum as UiNodeGroupEnum5 } from "@ory/client-fetch";
@@ -2631,16 +2694,16 @@ import { isUiNodeInputAttributes as isUiNodeInputAttributes3 } from "@ory/client
2631
2694
  import { isUiNodeInputAttributes as isUiNodeInputAttributes4 } from "@ory/client-fetch";
2632
2695
 
2633
2696
  // src/components/form/form-provider.tsx
2634
- import { jsx as jsx70 } from "react/jsx-runtime";
2697
+ import { jsx as jsx71 } from "react/jsx-runtime";
2635
2698
 
2636
2699
  // src/components/card/card.tsx
2637
- import { jsx as jsx71 } from "react/jsx-runtime";
2700
+ import { jsx as jsx72 } from "react/jsx-runtime";
2638
2701
 
2639
2702
  // src/components/card/footer.tsx
2640
- import { jsx as jsx72 } from "react/jsx-runtime";
2703
+ import { jsx as jsx73 } from "react/jsx-runtime";
2641
2704
 
2642
2705
  // src/components/card/content.tsx
2643
- import { jsx as jsx73 } from "react/jsx-runtime";
2706
+ import { jsx as jsx74 } from "react/jsx-runtime";
2644
2707
 
2645
2708
  // src/components/card/card-two-step.tsx
2646
2709
  import { UiNodeGroupEnum as UiNodeGroupEnum7 } from "@ory/client-fetch";
@@ -2705,10 +2768,10 @@ import {
2705
2768
  } from "@ory/client-fetch";
2706
2769
 
2707
2770
  // src/components/form/form.tsx
2708
- import { Fragment as Fragment6, jsx as jsx74, jsxs as jsxs36 } from "react/jsx-runtime";
2771
+ import { Fragment as Fragment6, jsx as jsx75, jsxs as jsxs37 } from "react/jsx-runtime";
2709
2772
 
2710
2773
  // src/components/form/messages.tsx
2711
- import { jsx as jsx75 } from "react/jsx-runtime";
2774
+ import { jsx as jsx76 } from "react/jsx-runtime";
2712
2775
 
2713
2776
  // src/components/form/nodes/node.tsx
2714
2777
  import {
@@ -2719,27 +2782,27 @@ import {
2719
2782
  isUiNodeTextAttributes,
2720
2783
  UiNodeGroupEnum as UiNodeGroupEnum6
2721
2784
  } from "@ory/client-fetch";
2722
- import { jsx as jsx76 } from "react/jsx-runtime";
2785
+ import { jsx as jsx77 } from "react/jsx-runtime";
2723
2786
 
2724
2787
  // src/components/form/social.tsx
2725
2788
  import { useFormContext as useFormContext14 } from "react-hook-form";
2726
- import { jsx as jsx77 } from "react/jsx-runtime";
2789
+ import { jsx as jsx78 } from "react/jsx-runtime";
2727
2790
 
2728
2791
  // src/components/card/card-two-step.tsx
2729
- import { Fragment as Fragment7, jsx as jsx78, jsxs as jsxs37 } from "react/jsx-runtime";
2792
+ import { Fragment as Fragment7, jsx as jsx79, jsxs as jsxs38 } from "react/jsx-runtime";
2730
2793
 
2731
2794
  // src/components/form/groups.tsx
2732
- import { jsx as jsx79 } from "react/jsx-runtime";
2795
+ import { jsx as jsx80 } from "react/jsx-runtime";
2733
2796
 
2734
2797
  // src/components/form/section.tsx
2735
2798
  import { useFormContext as useFormContext16 } from "react-hook-form";
2736
- import { jsx as jsx80 } from "react/jsx-runtime";
2799
+ import { jsx as jsx81 } from "react/jsx-runtime";
2737
2800
 
2738
2801
  // src/components/generic/divider.tsx
2739
- import { jsx as jsx81 } from "react/jsx-runtime";
2802
+ import { jsx as jsx82 } from "react/jsx-runtime";
2740
2803
 
2741
2804
  // src/components/generic/page-header.tsx
2742
- import { jsx as jsx82 } from "react/jsx-runtime";
2805
+ import { jsx as jsx83 } from "react/jsx-runtime";
2743
2806
 
2744
2807
  // src/components/settings/settings-card.tsx
2745
2808
  import { UiNodeGroupEnum as UiNodeGroupEnum8 } from "@ory/client-fetch";
@@ -2748,44 +2811,44 @@ import { useIntl as useIntl19 } from "react-intl";
2748
2811
  // src/components/settings/oidc-settings.tsx
2749
2812
  import { useIntl as useIntl14 } from "react-intl";
2750
2813
  import { useFormContext as useFormContext17 } from "react-hook-form";
2751
- import { Fragment as Fragment8, jsx as jsx83, jsxs as jsxs38 } from "react/jsx-runtime";
2814
+ import { Fragment as Fragment8, jsx as jsx84, jsxs as jsxs39 } from "react/jsx-runtime";
2752
2815
 
2753
2816
  // src/components/settings/passkey-settings.tsx
2754
2817
  import { useFormContext as useFormContext18 } from "react-hook-form";
2755
2818
  import { useIntl as useIntl15 } from "react-intl";
2756
- import { Fragment as Fragment9, jsx as jsx84, jsxs as jsxs39 } from "react/jsx-runtime";
2819
+ import { Fragment as Fragment9, jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
2757
2820
 
2758
2821
  // src/components/settings/recovery-codes-settings.tsx
2759
2822
  import { useIntl as useIntl16 } from "react-intl";
2760
2823
  import { useFormContext as useFormContext19 } from "react-hook-form";
2761
- import { Fragment as Fragment10, jsx as jsx85, jsxs as jsxs40 } from "react/jsx-runtime";
2824
+ import { Fragment as Fragment10, jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
2762
2825
 
2763
2826
  // src/components/settings/totp-settings.tsx
2764
2827
  import { useFormContext as useFormContext20 } from "react-hook-form";
2765
2828
  import { useIntl as useIntl17 } from "react-intl";
2766
- import { Fragment as Fragment11, jsx as jsx86, jsxs as jsxs41 } from "react/jsx-runtime";
2829
+ import { Fragment as Fragment11, jsx as jsx87, jsxs as jsxs42 } from "react/jsx-runtime";
2767
2830
 
2768
2831
  // src/components/settings/webauthn-settings.tsx
2769
2832
  import { useFormContext as useFormContext21 } from "react-hook-form";
2770
2833
  import { useIntl as useIntl18 } from "react-intl";
2771
- import { Fragment as Fragment12, jsx as jsx87, jsxs as jsxs42 } from "react/jsx-runtime";
2834
+ import { Fragment as Fragment12, jsx as jsx88, jsxs as jsxs43 } from "react/jsx-runtime";
2772
2835
 
2773
2836
  // src/components/settings/settings-card.tsx
2774
- import { Fragment as Fragment13, jsx as jsx88, jsxs as jsxs43 } from "react/jsx-runtime";
2837
+ import { Fragment as Fragment13, jsx as jsx89, jsxs as jsxs44 } from "react/jsx-runtime";
2775
2838
 
2776
2839
  // src/context/intl-context.tsx
2777
- import { jsx as jsx89 } from "react/jsx-runtime";
2840
+ import { jsx as jsx90 } from "react/jsx-runtime";
2778
2841
 
2779
2842
  // src/context/provider.tsx
2780
- import { jsx as jsx90 } from "react/jsx-runtime";
2843
+ import { jsx as jsx91 } from "react/jsx-runtime";
2781
2844
 
2782
2845
  // src/components/form/nodes/input.tsx
2783
2846
  import {
2784
2847
  UiNodeInputAttributesTypeEnum
2785
2848
  } from "@ory/client-fetch";
2786
- import { useEffect as useEffect5, useRef } from "react";
2849
+ import { useEffect as useEffect5, useRef as useRef2 } from "react";
2787
2850
  import { useFormContext as useFormContext22 } from "react-hook-form";
2788
- import { jsx as jsx91 } from "react/jsx-runtime";
2851
+ import { jsx as jsx92 } from "react/jsx-runtime";
2789
2852
  var NodeInput = ({
2790
2853
  node,
2791
2854
  attributes
@@ -2809,7 +2872,7 @@ var NodeInput = ({
2809
2872
  setValue(attrs.name, attrs.value);
2810
2873
  }
2811
2874
  };
2812
- const hasRun = useRef(false);
2875
+ const hasRun = useRef2(false);
2813
2876
  useEffect5(
2814
2877
  () => {
2815
2878
  setFormValue();
@@ -2839,30 +2902,30 @@ var NodeInput = ({
2839
2902
  if (isResendNode || isScreenSelectionNode) {
2840
2903
  return null;
2841
2904
  }
2842
- return /* @__PURE__ */ jsx91(
2905
+ return /* @__PURE__ */ jsx92(
2843
2906
  Node2.Label,
2844
2907
  {
2845
2908
  attributes: { ...attrs, label: void 0 },
2846
2909
  node: { ...node, meta: { ...node.meta, label: void 0 } },
2847
- children: /* @__PURE__ */ jsx91(Node2.Button, { attributes: attrs, node, onClick: handleClick })
2910
+ children: /* @__PURE__ */ jsx92(Node2.Button, { attributes: attrs, node, onClick: handleClick })
2848
2911
  }
2849
2912
  );
2850
2913
  case UiNodeInputAttributesTypeEnum.DatetimeLocal:
2851
2914
  throw new Error("Not implemented");
2852
2915
  case UiNodeInputAttributesTypeEnum.Checkbox:
2853
- return /* @__PURE__ */ jsx91(
2916
+ return /* @__PURE__ */ jsx92(
2854
2917
  Node2.Label,
2855
2918
  {
2856
2919
  attributes: { ...attrs, label: void 0 },
2857
2920
  node: { ...node, meta: { ...node.meta, label: void 0 } },
2858
- children: /* @__PURE__ */ jsx91(Node2.Checkbox, { attributes: attrs, node, onClick: handleClick })
2921
+ children: /* @__PURE__ */ jsx92(Node2.Checkbox, { attributes: attrs, node, onClick: handleClick })
2859
2922
  }
2860
2923
  );
2861
2924
  case UiNodeInputAttributesTypeEnum.Hidden:
2862
- return /* @__PURE__ */ jsx91(Node2.Input, { attributes: attrs, node, onClick: handleClick });
2925
+ return /* @__PURE__ */ jsx92(Node2.Input, { attributes: attrs, node, onClick: handleClick });
2863
2926
  default:
2864
2927
  if (isPinCodeInput) {
2865
- return /* @__PURE__ */ jsx91(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx91(
2928
+ return /* @__PURE__ */ jsx92(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx92(
2866
2929
  Node2.CodeInput,
2867
2930
  {
2868
2931
  attributes: attrs,
@@ -2871,25 +2934,25 @@ var NodeInput = ({
2871
2934
  }
2872
2935
  ) });
2873
2936
  }
2874
- return /* @__PURE__ */ jsx91(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx91(Node2.Input, { attributes: attrs, node, onClick: handleClick }) });
2937
+ return /* @__PURE__ */ jsx92(Node2.Label, { attributes: attrs, node, children: /* @__PURE__ */ jsx92(Node2.Input, { attributes: attrs, node, onClick: handleClick }) });
2875
2938
  }
2876
2939
  };
2877
2940
 
2878
2941
  // src/theme/default/components/form/captcha.tsx
2879
- import { jsx as jsx92 } from "react/jsx-runtime";
2942
+ import { jsx as jsx93 } from "react/jsx-runtime";
2880
2943
  var DefaultCaptcha = ({ node }) => {
2881
2944
  const { setValue } = useFormContext23();
2882
- const ref = useRef2();
2945
+ const ref = useRef3();
2883
2946
  const nodes = [];
2884
2947
  if (isUiNodeInputAttributes7(node.attributes)) {
2885
2948
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
2886
- nodes.push(/* @__PURE__ */ jsx92(NodeInput, { node, attributes: node.attributes }, 1));
2949
+ nodes.push(/* @__PURE__ */ jsx93(NodeInput, { node, attributes: node.attributes }, 1));
2887
2950
  }
2888
2951
  }
2889
2952
  if (isUiNodeInputAttributes7(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
2890
2953
  const options = JSON.parse(node.attributes.value);
2891
2954
  nodes.push(
2892
- /* @__PURE__ */ jsx92(
2955
+ /* @__PURE__ */ jsx93(
2893
2956
  Turnstile,
2894
2957
  {
2895
2958
  ref,
@@ -2966,12 +3029,12 @@ function getOryComponents(overrides) {
2966
3029
  }
2967
3030
 
2968
3031
  // src/theme/default/flows/error.tsx
2969
- import { jsx as jsx93 } from "react/jsx-runtime";
3032
+ import { jsx as jsx94 } from "react/jsx-runtime";
2970
3033
  function Error2({
2971
3034
  error,
2972
3035
  children
2973
3036
  }) {
2974
- return /* @__PURE__ */ jsx93("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
3037
+ return /* @__PURE__ */ jsx94("div", { "data-testid": "ory/screen/error/raw", children: JSON.stringify(error) || children });
2975
3038
  }
2976
3039
 
2977
3040
  // src/theme/default/flows/login.tsx
@@ -2980,7 +3043,7 @@ import {
2980
3043
  OryProvider,
2981
3044
  OryTwoStepCard as OryTwoStepCard2
2982
3045
  } from "@ory/elements-react";
2983
- import { jsx as jsx94 } from "react/jsx-runtime";
3046
+ import { jsx as jsx95 } from "react/jsx-runtime";
2984
3047
  function Login({
2985
3048
  flow,
2986
3049
  config,
@@ -2988,14 +3051,14 @@ function Login({
2988
3051
  components: flowOverrideComponents
2989
3052
  }) {
2990
3053
  const components = getOryComponents(flowOverrideComponents);
2991
- return /* @__PURE__ */ jsx94(
3054
+ return /* @__PURE__ */ jsx95(
2992
3055
  OryProvider,
2993
3056
  {
2994
3057
  config,
2995
3058
  flow,
2996
3059
  flowType: FlowType17.Login,
2997
3060
  components,
2998
- children: children != null ? children : /* @__PURE__ */ jsx94(OryTwoStepCard2, {})
3061
+ children: children != null ? children : /* @__PURE__ */ jsx95(OryTwoStepCard2, {})
2999
3062
  }
3000
3063
  );
3001
3064
  }
@@ -3006,7 +3069,7 @@ import {
3006
3069
  OryProvider as OryProvider2,
3007
3070
  OryTwoStepCard as OryTwoStepCard3
3008
3071
  } from "@ory/elements-react";
3009
- import { jsx as jsx95 } from "react/jsx-runtime";
3072
+ import { jsx as jsx96 } from "react/jsx-runtime";
3010
3073
  function Recovery({
3011
3074
  flow,
3012
3075
  config,
@@ -3014,14 +3077,14 @@ function Recovery({
3014
3077
  components: flowOverrideComponents
3015
3078
  }) {
3016
3079
  const components = getOryComponents(flowOverrideComponents);
3017
- return /* @__PURE__ */ jsx95(
3080
+ return /* @__PURE__ */ jsx96(
3018
3081
  OryProvider2,
3019
3082
  {
3020
3083
  config,
3021
3084
  flow,
3022
3085
  flowType: FlowType18.Recovery,
3023
3086
  components,
3024
- children: children != null ? children : /* @__PURE__ */ jsx95(OryTwoStepCard3, {})
3087
+ children: children != null ? children : /* @__PURE__ */ jsx96(OryTwoStepCard3, {})
3025
3088
  }
3026
3089
  );
3027
3090
  }
@@ -3032,7 +3095,7 @@ import {
3032
3095
  OryProvider as OryProvider3,
3033
3096
  OryTwoStepCard as OryTwoStepCard4
3034
3097
  } from "@ory/elements-react";
3035
- import { jsx as jsx96 } from "react/jsx-runtime";
3098
+ import { jsx as jsx97 } from "react/jsx-runtime";
3036
3099
  function Registration({
3037
3100
  flow,
3038
3101
  children,
@@ -3040,14 +3103,14 @@ function Registration({
3040
3103
  config
3041
3104
  }) {
3042
3105
  const components = getOryComponents(flowOverrideComponents);
3043
- return /* @__PURE__ */ jsx96(
3106
+ return /* @__PURE__ */ jsx97(
3044
3107
  OryProvider3,
3045
3108
  {
3046
3109
  config,
3047
3110
  flow,
3048
3111
  flowType: FlowType19.Registration,
3049
3112
  components,
3050
- children: children != null ? children : /* @__PURE__ */ jsx96(OryTwoStepCard4, {})
3113
+ children: children != null ? children : /* @__PURE__ */ jsx97(OryTwoStepCard4, {})
3051
3114
  }
3052
3115
  );
3053
3116
  }
@@ -3059,7 +3122,7 @@ import {
3059
3122
  OryProvider as OryProvider4,
3060
3123
  OrySettingsCard
3061
3124
  } from "@ory/elements-react";
3062
- import { Fragment as Fragment14, jsx as jsx97, jsxs as jsxs44 } from "react/jsx-runtime";
3125
+ import { Fragment as Fragment14, jsx as jsx98, jsxs as jsxs45 } from "react/jsx-runtime";
3063
3126
  function Settings({
3064
3127
  flow,
3065
3128
  config,
@@ -3067,16 +3130,16 @@ function Settings({
3067
3130
  components: flowOverrideComponents
3068
3131
  }) {
3069
3132
  const components = getOryComponents(flowOverrideComponents);
3070
- return /* @__PURE__ */ jsx97(
3133
+ return /* @__PURE__ */ jsx98(
3071
3134
  OryProvider4,
3072
3135
  {
3073
3136
  config,
3074
3137
  flow,
3075
3138
  flowType: FlowType20.Settings,
3076
3139
  components,
3077
- children: children != null ? children : /* @__PURE__ */ jsxs44(Fragment14, { children: [
3078
- /* @__PURE__ */ jsx97(HeadlessPageHeader, {}),
3079
- /* @__PURE__ */ jsx97(OrySettingsCard, {})
3140
+ children: children != null ? children : /* @__PURE__ */ jsxs45(Fragment14, { children: [
3141
+ /* @__PURE__ */ jsx98(HeadlessPageHeader, {}),
3142
+ /* @__PURE__ */ jsx98(OrySettingsCard, {})
3080
3143
  ] })
3081
3144
  }
3082
3145
  );
@@ -3088,7 +3151,7 @@ import {
3088
3151
  OryProvider as OryProvider5,
3089
3152
  OryTwoStepCard as OryTwoStepCard5
3090
3153
  } from "@ory/elements-react";
3091
- import { jsx as jsx98 } from "react/jsx-runtime";
3154
+ import { jsx as jsx99 } from "react/jsx-runtime";
3092
3155
  function Verification({
3093
3156
  flow,
3094
3157
  config,
@@ -3096,14 +3159,14 @@ function Verification({
3096
3159
  components: flowOverrideComponents
3097
3160
  }) {
3098
3161
  const components = getOryComponents(flowOverrideComponents);
3099
- return /* @__PURE__ */ jsx98(
3162
+ return /* @__PURE__ */ jsx99(
3100
3163
  OryProvider5,
3101
3164
  {
3102
3165
  config,
3103
3166
  flow,
3104
3167
  flowType: FlowType21.Verification,
3105
3168
  components,
3106
- children: children != null ? children : /* @__PURE__ */ jsx98(OryTwoStepCard5, {})
3169
+ children: children != null ? children : /* @__PURE__ */ jsx99(OryTwoStepCard5, {})
3107
3170
  }
3108
3171
  );
3109
3172
  }