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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,7 +160,10 @@ function VerificationCardFooter() {
160
160
  import { useComponents, useOryFlow as useOryFlow3 } from "@ory/elements-react";
161
161
 
162
162
  // src/theme/default/utils/constructCardHeader.ts
163
- import { FlowType as FlowType2, isUiNodeInputAttributes } from "@ory/client-fetch";
163
+ import {
164
+ FlowType as FlowType2,
165
+ isUiNodeInputAttributes
166
+ } from "@ory/client-fetch";
164
167
  import { useIntl as useIntl2 } from "react-intl";
165
168
  function joinWithCommaOr(list, orText = "or") {
166
169
  if (list.length === 0) {
@@ -172,8 +175,9 @@ function joinWithCommaOr(list, orText = "or") {
172
175
  return `${list.join(", ")} ${orText} ${last}`;
173
176
  }
174
177
  }
175
- function useCardHeaderText(nodes, opts) {
176
- var _a;
178
+ function useCardHeaderText(container, opts) {
179
+ var _a, _b;
180
+ const nodes = container.nodes;
177
181
  const intl = useIntl2();
178
182
  switch (opts.flowType) {
179
183
  case FlowType2.Recovery:
@@ -227,6 +231,24 @@ function useCardHeaderText(nodes, opts) {
227
231
  id: "verification.subtitle"
228
232
  })
229
233
  };
234
+ case FlowType2.Login: {
235
+ const accountLinkingMessage = (_a = container.messages) == null ? void 0 : _a.find(
236
+ (m) => m.id === 1010016
237
+ );
238
+ if (accountLinkingMessage) {
239
+ return {
240
+ title: intl.formatMessage({
241
+ id: "account-linking.title"
242
+ }),
243
+ description: intl.formatMessage(
244
+ {
245
+ id: "identities.messages.1010016"
246
+ },
247
+ accountLinkingMessage.context
248
+ )
249
+ };
250
+ }
251
+ }
230
252
  }
231
253
  const parts = [];
232
254
  if (nodes.find((node) => node.group === "password")) {
@@ -277,7 +299,7 @@ function useCardHeaderText(nodes, opts) {
277
299
  id: "card.header.parts.identifier-first"
278
300
  },
279
301
  {
280
- identifierLabel: (_a = identifier.meta.label) == null ? void 0 : _a.text
302
+ identifierLabel: (_b = identifier.meta.label) == null ? void 0 : _b.text
281
303
  }
282
304
  )
283
305
  );
@@ -449,10 +471,7 @@ function InnerCardHeader({ title, text }) {
449
471
  }
450
472
  function DefaultCardHeader() {
451
473
  const context = useOryFlow3();
452
- const { title, description } = useCardHeaderText(
453
- context.flow.ui.nodes,
454
- context
455
- );
474
+ const { title, description } = useCardHeaderText(context.flow.ui, context);
456
475
  return /* @__PURE__ */ jsx7(InnerCardHeader, { title, text: description });
457
476
  }
458
477
 
@@ -484,21 +503,281 @@ function cn(...inputs) {
484
503
  }
485
504
 
486
505
  // src/theme/default/components/form/index.tsx
487
- import { useIntl as useIntl3 } from "react-intl";
506
+ import { useIntl as useIntl4 } from "react-intl";
488
507
  import {
489
508
  messageTestId,
509
+ uiTextToFormattedMessage as uiTextToFormattedMessage2,
510
+ useOryFlow as useOryFlow6
511
+ } from "@ory/elements-react";
512
+ import { FlowType as FlowType4 } from "@ory/client-fetch";
513
+
514
+ // src/theme/default/components/form/social.tsx
515
+ import {
490
516
  uiTextToFormattedMessage,
491
517
  useOryFlow as useOryFlow5
492
518
  } from "@ory/elements-react";
493
- import { FlowType as FlowType4 } from "@ory/client-fetch";
519
+
520
+ // src/theme/default/provider-logos/apple.svg
521
+ import * as React4 from "react";
494
522
  import { jsx as jsx10 } from "react/jsx-runtime";
523
+ var SvgApple = (props) => {
524
+ var _a, _b;
525
+ return /* @__PURE__ */ jsx10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx10("path", { fill: "#283544", d: "M27.734 11.55c-.134.078-3.317 1.724-3.317 5.374.15 4.162 4.017 5.621 4.083 5.621-.066.078-.584 1.988-2.116 3.991C25.167 28.261 23.817 30 21.767 30c-1.95 0-2.65-1.15-4.9-1.15-2.416 0-3.1 1.15-4.95 1.15-2.05 0-3.5-1.832-4.782-3.541-1.667-2.236-3.083-5.746-3.133-9.116-.034-1.786.334-3.54 1.266-5.032 1.317-2.081 3.667-3.494 6.233-3.54 1.966-.063 3.716 1.257 4.916 1.257 1.15 0 3.3-1.258 5.733-1.258 1.05.001 3.85.296 5.584 2.78M16.25 8.414c-.35-1.631.616-3.262 1.516-4.302C18.917 2.854 20.734 2 22.3 2c.1 1.63-.534 3.23-1.666 4.395-1.017 1.258-2.767 2.205-4.383 2.019" }) });
526
+ };
527
+ var apple_default = SvgApple;
528
+
529
+ // src/theme/default/provider-logos/auth0.svg
530
+ import * as React5 from "react";
531
+ import { jsx as jsx11 } from "react/jsx-runtime";
532
+ var SvgAuth0 = (props) => {
533
+ var _a, _b;
534
+ return /* @__PURE__ */ jsx11("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx11("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
535
+ };
536
+ var auth0_default = SvgAuth0;
537
+
538
+ // src/theme/default/provider-logos/discord.svg
539
+ import * as React6 from "react";
540
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
541
+ var SvgDiscord = (props) => {
542
+ var _a, _b;
543
+ return /* @__PURE__ */ jsxs8("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
544
+ /* @__PURE__ */ jsx12("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
545
+ /* @__PURE__ */ jsx12("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
546
+ ] });
547
+ };
548
+ var discord_default = SvgDiscord;
549
+
550
+ // src/theme/default/provider-logos/facebook.svg
551
+ import * as React7 from "react";
552
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
553
+ var SvgFacebook = (props) => {
554
+ var _a, _b;
555
+ return /* @__PURE__ */ jsxs9("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
556
+ /* @__PURE__ */ jsxs9("g", { clipPath: "url(#facebook_svg__a)", children: [
557
+ /* @__PURE__ */ jsx13("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
558
+ /* @__PURE__ */ jsx13("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
559
+ ] }),
560
+ /* @__PURE__ */ jsx13("defs", { children: /* @__PURE__ */ jsx13("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx13("rect", { fill: "#fff" }) }) })
561
+ ] });
562
+ };
563
+ var facebook_default = SvgFacebook;
564
+
565
+ // src/theme/default/provider-logos/generic.svg
566
+ import * as React8 from "react";
567
+ import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
568
+ var SvgGeneric = (props) => {
569
+ var _a, _b;
570
+ return /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, className: "generic_svg__icon generic_svg__icon-tabler generic_svg__icon-tabler-brand-oauth", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
571
+ /* @__PURE__ */ jsx14("path", { stroke: "none", d: "M0 0h24v24H0z" }),
572
+ /* @__PURE__ */ jsx14("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
573
+ /* @__PURE__ */ jsx14("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
574
+ ] });
575
+ };
576
+ var generic_default = SvgGeneric;
577
+
578
+ // src/theme/default/provider-logos/github.svg
579
+ import * as React9 from "react";
580
+ import { jsx as jsx15 } from "react/jsx-runtime";
581
+ var SvgGithub = (props) => {
582
+ var _a, _b;
583
+ return /* @__PURE__ */ jsx15("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx15("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
584
+ };
585
+ var github_default = SvgGithub;
586
+
587
+ // src/theme/default/provider-logos/gitlab.svg
588
+ import * as React10 from "react";
589
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
590
+ var SvgGitlab = (props) => {
591
+ var _a, _b;
592
+ return /* @__PURE__ */ jsxs11("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
593
+ /* @__PURE__ */ jsx16("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
594
+ /* @__PURE__ */ jsx16("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
595
+ /* @__PURE__ */ jsx16("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
596
+ /* @__PURE__ */ jsx16("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
597
+ ] });
598
+ };
599
+ var gitlab_default = SvgGitlab;
600
+
601
+ // src/theme/default/provider-logos/google.svg
602
+ import * as React11 from "react";
603
+ import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
604
+ var SvgGoogle = (props) => {
605
+ var _a, _b;
606
+ return /* @__PURE__ */ jsxs12("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
607
+ /* @__PURE__ */ jsx17("path", { fill: "#4285F4", d: "M30.001 16.31c0-1.15-.095-1.99-.301-2.861H16.287v5.195h7.873c-.159 1.291-1.016 3.236-2.92 4.542l-.027.174 4.24 3.22.294.029c2.699-2.443 4.254-6.036 4.254-10.298" }),
608
+ /* @__PURE__ */ jsx17("path", { fill: "#34A853", d: "M16.286 30c3.857 0 7.095-1.244 9.46-3.391l-4.507-3.423c-1.207.825-2.826 1.4-4.953 1.4A8.58 8.58 0 0 1 8.16 18.77l-.167.014-4.41 3.344-.058.157C5.874 26.858 10.7 30 16.286 30" }),
609
+ /* @__PURE__ */ jsx17("path", { fill: "#FBBC05", d: "M8.16 18.769a8.5 8.5 0 0 1-.476-2.77c0-.964.174-1.897.46-2.768l-.008-.185-4.465-3.399-.146.068A13.8 13.8 0 0 0 2.001 16c0 2.256.556 4.387 1.524 6.284z" }),
610
+ /* @__PURE__ */ jsx17("path", { fill: "#EB4335", d: "M16.286 7.413c2.683 0 4.492 1.136 5.524 2.085l4.032-3.858C23.366 3.384 20.143 2 16.286 2 10.7 2 5.874 5.142 3.524 9.715l4.62 3.516c1.158-3.375 4.365-5.818 8.142-5.818" })
611
+ ] });
612
+ };
613
+ var google_default = SvgGoogle;
614
+
615
+ // src/theme/default/provider-logos/linkedin.svg
616
+ import * as React12 from "react";
617
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
618
+ var SvgLinkedin = (props) => {
619
+ var _a, _b;
620
+ return /* @__PURE__ */ jsxs13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
621
+ /* @__PURE__ */ jsx18("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
622
+ /* @__PURE__ */ jsx18("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
623
+ ] });
624
+ };
625
+ var linkedin_default = SvgLinkedin;
626
+
627
+ // src/theme/default/provider-logos/microsoft.svg
628
+ import * as React13 from "react";
629
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
630
+ var SvgMicrosoft = (props) => {
631
+ var _a, _b;
632
+ return /* @__PURE__ */ jsxs14("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
633
+ /* @__PURE__ */ jsx19("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
634
+ /* @__PURE__ */ jsx19("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
635
+ /* @__PURE__ */ jsx19("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
636
+ /* @__PURE__ */ jsx19("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
637
+ ] });
638
+ };
639
+ var microsoft_default = SvgMicrosoft;
640
+
641
+ // src/theme/default/provider-logos/slack.svg
642
+ import * as React14 from "react";
643
+ import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
644
+ var SvgSlack = (props) => {
645
+ var _a, _b;
646
+ return /* @__PURE__ */ jsxs15("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
647
+ /* @__PURE__ */ jsx20("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
648
+ /* @__PURE__ */ jsx20("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
649
+ /* @__PURE__ */ jsx20("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
650
+ /* @__PURE__ */ jsx20("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
651
+ ] });
652
+ };
653
+ var slack_default = SvgSlack;
654
+
655
+ // src/theme/default/provider-logos/spotify.svg
656
+ import * as React15 from "react";
657
+ import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
658
+ var SvgSpotify = (props) => {
659
+ var _a, _b;
660
+ return /* @__PURE__ */ jsxs16("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
661
+ /* @__PURE__ */ jsx21("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
662
+ /* @__PURE__ */ jsx21("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
663
+ ] });
664
+ };
665
+ var spotify_default = SvgSpotify;
666
+
667
+ // src/theme/default/provider-logos/yandex.svg
668
+ import * as React16 from "react";
669
+ import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
670
+ var SvgYandex = (props) => {
671
+ var _a, _b;
672
+ return /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
673
+ /* @__PURE__ */ jsx22("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
674
+ /* @__PURE__ */ jsx22("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
675
+ ] });
676
+ };
677
+ var yandex_default = SvgYandex;
678
+
679
+ // src/theme/default/provider-logos/index.ts
680
+ var logos = {
681
+ apple: apple_default,
682
+ auth0: auth0_default,
683
+ discord: discord_default,
684
+ facebook: facebook_default,
685
+ generic: generic_default,
686
+ github: github_default,
687
+ gitlab: gitlab_default,
688
+ google: google_default,
689
+ linkedin: linkedin_default,
690
+ microsoft: microsoft_default,
691
+ slack: slack_default,
692
+ spotify: spotify_default,
693
+ yandex: yandex_default
694
+ };
695
+ var provider_logos_default = logos;
696
+
697
+ // src/theme/default/components/form/social.tsx
698
+ import { useIntl as useIntl3 } from "react-intl";
699
+ import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
700
+ function extractProvider(context) {
701
+ if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
702
+ return context.provider;
703
+ }
704
+ return void 0;
705
+ }
706
+ function DefaultButtonSocial({
707
+ attributes,
708
+ node,
709
+ onClick,
710
+ showLabel: _showLabel,
711
+ logos: providedLogos
712
+ }) {
713
+ var _a, _b, _c;
714
+ const logos2 = { ...provider_logos_default, ...providedLogos };
715
+ const {
716
+ node_type: _ignoredNodeType,
717
+ type: _ignoredType,
718
+ name: _ignoredName,
719
+ ...props
720
+ } = attributes;
721
+ const {
722
+ flow: { ui }
723
+ } = useOryFlow5();
724
+ const intl = useIntl3();
725
+ const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
726
+ const Logo = logos2[attributes.value];
727
+ const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
728
+ const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
729
+ return /* @__PURE__ */ jsxs18(
730
+ "button",
731
+ {
732
+ className: cn(
733
+ "gap-3 ring-1 ring-forms-border-default bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover transition-colors rounded flex items-center justify-center py-2.5 px-4 md:py-4",
734
+ { "py-2.5": showLabel }
735
+ ),
736
+ value: attributes.value,
737
+ type: "submit",
738
+ name: "provider",
739
+ ...props,
740
+ onClick,
741
+ children: [
742
+ /* @__PURE__ */ jsx23("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx23(
743
+ Logo,
744
+ {
745
+ size: 20
746
+ }
747
+ ) : /* @__PURE__ */ jsx23("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
748
+ showLabel && node.meta.label ? /* @__PURE__ */ jsx23("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: uiTextToFormattedMessage(node.meta.label, intl) }) : null
749
+ ]
750
+ }
751
+ );
752
+ }
753
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ jsx23(DefaultButtonSocial, { ...props, logos: logos2 });
754
+ function DefaultSocialButtonContainer({
755
+ children,
756
+ nodes
757
+ }) {
758
+ return /* @__PURE__ */ jsx23(
759
+ "div",
760
+ {
761
+ className: cn("grid gap-3", {
762
+ // needed because tailwind is not compiling dynamic classes
763
+ "grid-cols-1": nodes.length % 4 <= 2,
764
+ "grid-cols-3": nodes.length % 3 === 0,
765
+ "grid-cols-4": nodes.length > 1 && nodes.length % 4 === 0
766
+ }),
767
+ children
768
+ }
769
+ );
770
+ }
771
+
772
+ // src/theme/default/components/form/index.tsx
773
+ import { jsx as jsx24 } from "react/jsx-runtime";
495
774
  function DefaultFormContainer({
496
775
  children,
497
776
  onSubmit,
498
777
  action,
499
778
  method
500
779
  }) {
501
- return /* @__PURE__ */ jsx10(
780
+ return /* @__PURE__ */ jsx24(
502
781
  "form",
503
782
  {
504
783
  onSubmit,
@@ -511,11 +790,11 @@ function DefaultFormContainer({
511
790
  );
512
791
  }
513
792
  function DefaultMessageContainer({ children }) {
514
- const { flowType } = useOryFlow5();
793
+ const { flowType } = useOryFlow6();
515
794
  if (!children || Array.isArray(children) && children.length === 0) {
516
795
  return null;
517
796
  }
518
- return /* @__PURE__ */ jsx10(
797
+ return /* @__PURE__ */ jsx24(
519
798
  "section",
520
799
  {
521
800
  className: cn(
@@ -526,8 +805,8 @@ function DefaultMessageContainer({ children }) {
526
805
  );
527
806
  }
528
807
  function DefaultMessage({ message }) {
529
- const intl = useIntl3();
530
- return /* @__PURE__ */ jsx10(
808
+ const intl = useIntl4();
809
+ return /* @__PURE__ */ jsx24(
531
810
  "span",
532
811
  {
533
812
  className: cn("text-sm leading-normal", {
@@ -536,47 +815,47 @@ function DefaultMessage({ message }) {
536
815
  "text-forms-fg-success": message.type === "success"
537
816
  }),
538
817
  ...messageTestId(message),
539
- children: uiTextToFormattedMessage(message, intl)
818
+ children: uiTextToFormattedMessage2(message, intl)
540
819
  }
541
820
  );
542
821
  }
543
822
 
544
823
  // src/theme/default/components/card/auth-methods.tsx
545
- import { useIntl as useIntl4 } from "react-intl";
824
+ import { useIntl as useIntl5 } from "react-intl";
546
825
 
547
826
  // src/theme/default/assets/icons/code.svg
548
- import * as React4 from "react";
549
- import { jsx as jsx11 } from "react/jsx-runtime";
827
+ import * as React17 from "react";
828
+ import { jsx as jsx25 } from "react/jsx-runtime";
550
829
  var SvgCode = (props) => {
551
830
  var _a, _b;
552
- return /* @__PURE__ */ jsx11("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx11("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
831
+ return /* @__PURE__ */ jsx25("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 15 13", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx25("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6.333 10.666h-4A1.333 1.333 0 0 1 1 9.333V2.666m0 0a1.333 1.333 0 0 1 1.333-1.333h9.334A1.333 1.333 0 0 1 13 2.666m-12 0 6 4 6-4m0 0v4M12.333 12l1.334-1.334-1.334-1.333m-2 0L9 10.666 10.333 12" }) });
553
832
  };
554
833
  var code_default = SvgCode;
555
834
 
556
835
  // src/theme/default/assets/icons/passkey.svg
557
- import * as React5 from "react";
558
- import { jsx as jsx12 } from "react/jsx-runtime";
836
+ import * as React18 from "react";
837
+ import { jsx as jsx26 } from "react/jsx-runtime";
559
838
  var SvgPasskey = (props) => {
560
839
  var _a, _b;
561
- return /* @__PURE__ */ jsx12("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx12("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
840
+ return /* @__PURE__ */ jsx26("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 13 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx26("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.602 3.667c.603 1 .86 2.171.733 3.333v.667a4 4 0 0 0 .533 2M3.335 6.333a2.667 2.667 0 0 1 5.333 0V7c0 1.442.468 2.846 1.334 4m-4-4.667v1.334A9.33 9.33 0 0 0 7.668 13M3.335 9a12 12 0 0 0 1.2 4m-3.267-1.333A14.7 14.7 0 0 1 .668 7v-.667a5.333 5.333 0 0 1 8-4.633" }) });
562
841
  };
563
842
  var passkey_default = SvgPasskey;
564
843
 
565
844
  // src/theme/default/assets/icons/password.svg
566
- import * as React6 from "react";
567
- import { jsx as jsx13 } from "react/jsx-runtime";
845
+ import * as React19 from "react";
846
+ import { jsx as jsx27 } from "react/jsx-runtime";
568
847
  var SvgPassword = (props) => {
569
848
  var _a, _b;
570
- return /* @__PURE__ */ jsx13("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx13("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
849
+ return /* @__PURE__ */ jsx27("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 4", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx27("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M7 .667v2.667m-1.333-.667 2.666-1.333m-2.666 0 2.666 1.333m-6-2v2.667M1 2.667l2.667-1.333M1 1.334l2.667 1.333m8-2v2.667m-1.334-.667L13 1.334m-2.667 0L13 2.667" }) });
571
850
  };
572
851
  var password_default = SvgPassword;
573
852
 
574
853
  // src/theme/default/assets/icons/webauthn.svg
575
- import * as React7 from "react";
576
- import { jsx as jsx14 } from "react/jsx-runtime";
854
+ import * as React20 from "react";
855
+ import { jsx as jsx28 } from "react/jsx-runtime";
577
856
  var SvgWebauthn = (props) => {
578
857
  var _a, _b;
579
- return /* @__PURE__ */ jsx14("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx14("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
858
+ return /* @__PURE__ */ jsx28("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 14 14", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx28("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5h.007m1.03-3.438 2.401 2.401a1.92 1.92 0 0 1 0 2.713l-1.762 1.762a1.92 1.92 0 0 1-2.713 0l-.2-.2-4.372 4.371a1.33 1.33 0 0 1-.826.386L2.448 13h-.781a.667.667 0 0 1-.662-.589L1 12.333v-.781c0-.313.11-.616.311-.856l.08-.087.276-.276H3V9h1.333V7.667l1.43-1.43-.201-.2a1.92 1.92 0 0 1 0-2.713l1.762-1.762a1.92 1.92 0 0 1 2.713 0" }) });
580
859
  };
581
860
  var webauthn_default = SvgWebauthn;
582
861
 
@@ -586,7 +865,7 @@ function isGroupImmediateSubmit(group) {
586
865
  }
587
866
 
588
867
  // src/theme/default/components/card/auth-methods.tsx
589
- import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
868
+ import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
590
869
  var iconsMap = {
591
870
  code: code_default,
592
871
  passkey: passkey_default,
@@ -597,9 +876,9 @@ function DefaultAuthMethodListItem({
597
876
  onClick,
598
877
  group
599
878
  }) {
600
- const intl = useIntl4();
879
+ const intl = useIntl5();
601
880
  const Icon = iconsMap[group] || null;
602
- return /* @__PURE__ */ jsx15("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ jsxs8(
881
+ return /* @__PURE__ */ jsx29("div", { className: "w-full hover:bg-forms-bg-hover px-2 py-1 rounded", children: /* @__PURE__ */ jsxs19(
603
882
  "button",
604
883
  {
605
884
  className: "flex text-left py-2 gap-3 cursor-pointer",
@@ -609,10 +888,10 @@ function DefaultAuthMethodListItem({
609
888
  "data-testid": "auth-method-list-item",
610
889
  "aria-label": `Authenticate with ${group}`,
611
890
  children: [
612
- /* @__PURE__ */ jsx15("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ jsx15(Icon, { size: 20, className: "text-forms-fg-default" }) }),
613
- /* @__PURE__ */ jsxs8("div", { className: "flex-1 text-sm leading-normal", children: [
614
- /* @__PURE__ */ jsx15("div", { className: "text-forms-fg-default text-sm", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
615
- /* @__PURE__ */ jsx15("div", { className: "text-forms-fg-mute text-sm", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
891
+ /* @__PURE__ */ jsx29("div", { className: "flex-none w-4 h-4 mt-[2px]", children: Icon && /* @__PURE__ */ jsx29(Icon, { size: 20, className: "text-forms-fg-default" }) }),
892
+ /* @__PURE__ */ jsxs19("div", { className: "flex-1 text-sm leading-normal", children: [
893
+ /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-default text-sm", children: intl.formatMessage({ id: `two-step.${group}.title` }) }),
894
+ /* @__PURE__ */ jsx29("div", { className: "text-forms-fg-mute text-sm", children: intl.formatMessage({ id: `two-step.${group}.description` }) })
616
895
  ] })
617
896
  ]
618
897
  }
@@ -622,15 +901,15 @@ function DefaultAuthMethodListItem({
622
901
  // src/theme/default/components/form/button.tsx
623
902
  import { FlowType as FlowType5, getNodeLabel } from "@ory/client-fetch";
624
903
  import {
625
- uiTextToFormattedMessage as uiTextToFormattedMessage2
904
+ uiTextToFormattedMessage as uiTextToFormattedMessage3
626
905
  } from "@ory/elements-react";
627
906
  import { useFormContext as useFormContext2 } from "react-hook-form";
628
- import { useIntl as useIntl5 } from "react-intl";
907
+ import { useIntl as useIntl6 } from "react-intl";
629
908
 
630
909
  // src/theme/default/components/form/spinner.tsx
631
- import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
910
+ import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
632
911
  function Spinner({ className }) {
633
- return /* @__PURE__ */ jsxs9(
912
+ return /* @__PURE__ */ jsxs20(
634
913
  "svg",
635
914
  {
636
915
  "aria-hidden": "true",
@@ -643,7 +922,7 @@ function Spinner({ className }) {
643
922
  fill: "none",
644
923
  xmlns: "http://www.w3.org/2000/svg",
645
924
  children: [
646
- /* @__PURE__ */ jsx16("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx16(
925
+ /* @__PURE__ */ jsx30("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ jsx30(
647
926
  "path",
648
927
  {
649
928
  d: "M23.364 10.6362C22.1053 9.37751 20.5016 8.52034 18.7558 8.17307C17.01 7.82581 15.2004 8.00404 13.5559 8.68523C11.9113 9.36641 10.5057 10.52 9.51678 12C8.52784 13.4801 8 15.2201 8 17.0001C8 18.7802 8.52784 20.5202 9.51678 22.0003C10.5057 23.4803 11.9113 24.6339 13.5559 25.3151C15.2004 25.9962 17.01 26.1745 18.7558 25.8272C20.5016 25.4799 22.1053 24.6228 23.364 23.3641",
@@ -652,7 +931,7 @@ function Spinner({ className }) {
652
931
  strokeLinejoin: "round"
653
932
  }
654
933
  ) }),
655
- /* @__PURE__ */ jsx16("defs", { children: /* @__PURE__ */ jsx16("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx16(
934
+ /* @__PURE__ */ jsx30("defs", { children: /* @__PURE__ */ jsx30("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ jsx30(
656
935
  "rect",
657
936
  {
658
937
  width: "24",
@@ -667,9 +946,9 @@ function Spinner({ className }) {
667
946
  }
668
947
 
669
948
  // src/theme/default/components/form/button.tsx
670
- import { useOryFlow as useOryFlow6 } from "@ory/elements-react";
949
+ import { useOryFlow as useOryFlow7 } from "@ory/elements-react";
671
950
  import { cva } from "class-variance-authority";
672
- import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
951
+ import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
673
952
  var buttonStyles = cva(
674
953
  [
675
954
  "ring-1 relative overflow-hidden ring-inset rounded text-sm leading-none flex gap-3 justify-center",
@@ -722,16 +1001,16 @@ var DefaultButton = ({
722
1001
  // End of skipped attributes
723
1002
  ...rest
724
1003
  } = attributes;
725
- const intl = useIntl5();
1004
+ const intl = useIntl6();
726
1005
  const label = getNodeLabel(node);
727
- const { flowType } = useOryFlow6();
1006
+ const { flowType } = useOryFlow7();
728
1007
  const {
729
1008
  formState: { isSubmitting },
730
1009
  setValue
731
1010
  } = useFormContext2();
732
1011
  const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
733
1012
  const isSmall = flowType === FlowType5.Settings && attributes.name !== "webauthn_register_trigger";
734
- return /* @__PURE__ */ jsxs10(
1013
+ return /* @__PURE__ */ jsxs21(
735
1014
  "button",
736
1015
  {
737
1016
  ...rest,
@@ -754,8 +1033,8 @@ var DefaultButton = ({
754
1033
  disabled: (_a = rest.disabled) != null ? _a : true,
755
1034
  "data-loading": isSubmitting,
756
1035
  children: [
757
- isSubmitting ? /* @__PURE__ */ jsx17(Spinner, {}) : null,
758
- label ? uiTextToFormattedMessage2(label, intl) : ""
1036
+ isSubmitting ? /* @__PURE__ */ jsx31(Spinner, {}) : null,
1037
+ label ? uiTextToFormattedMessage3(label, intl) : ""
759
1038
  ]
760
1039
  }
761
1040
  );
@@ -766,17 +1045,17 @@ DefaultButton.displayName = "DefaultButton";
766
1045
  import { getNodeLabel as getNodeLabel2 } from "@ory/client-fetch";
767
1046
  import {
768
1047
  messageTestId as messageTestId2,
769
- uiTextToFormattedMessage as uiTextToFormattedMessage4
1048
+ uiTextToFormattedMessage as uiTextToFormattedMessage5
770
1049
  } from "@ory/elements-react";
771
1050
  import { useState } from "react";
772
1051
  import { useForm } from "react-hook-form";
773
- import { useIntl as useIntl7 } from "react-intl";
1052
+ import { useIntl as useIntl8 } from "react-intl";
774
1053
 
775
1054
  // src/theme/default/components/ui/checkbox-label.tsx
776
- import { useIntl as useIntl6 } from "react-intl";
1055
+ import { useIntl as useIntl7 } from "react-intl";
777
1056
 
778
1057
  // src/util/i18n/index.ts
779
- var uiTextToFormattedMessage3 = ({ id, context = {}, text }, intl) => {
1058
+ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
780
1059
  const contextInjectedMessage = Object.entries(context).reduce(
781
1060
  (accumulator, [key, value]) => {
782
1061
  if (Array.isArray(value)) {
@@ -824,7 +1103,7 @@ var uiTextToFormattedMessage3 = ({ id, context = {}, text }, intl) => {
824
1103
  };
825
1104
 
826
1105
  // src/theme/default/components/ui/checkbox-label.tsx
827
- import { Fragment as Fragment2, jsx as jsx18 } from "react/jsx-runtime";
1106
+ import { Fragment as Fragment2, jsx as jsx32 } from "react/jsx-runtime";
828
1107
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
829
1108
  function computeLabelElements(labelText) {
830
1109
  const elements = [];
@@ -840,7 +1119,7 @@ function computeLabelElements(labelText) {
840
1119
  elements.push(labelText.slice(lastIndex, matchStart));
841
1120
  }
842
1121
  elements.push(
843
- /* @__PURE__ */ jsx18(
1122
+ /* @__PURE__ */ jsx32(
844
1123
  "a",
845
1124
  {
846
1125
  href: url,
@@ -860,18 +1139,18 @@ function computeLabelElements(labelText) {
860
1139
  return elements;
861
1140
  }
862
1141
  function CheckboxLabel({ label }) {
863
- const intl = useIntl6();
1142
+ const intl = useIntl7();
864
1143
  if (!label) {
865
1144
  return null;
866
1145
  }
867
- const labelText = uiTextToFormattedMessage3(label, intl);
868
- return /* @__PURE__ */ jsx18(Fragment2, { children: computeLabelElements(labelText) });
1146
+ const labelText = uiTextToFormattedMessage4(label, intl);
1147
+ return /* @__PURE__ */ jsx32(Fragment2, { children: computeLabelElements(labelText) });
869
1148
  }
870
1149
 
871
1150
  // src/theme/default/components/form/checkbox.tsx
872
- import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
1151
+ import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
873
1152
  function CheckboxSVG() {
874
- return /* @__PURE__ */ jsxs11(
1153
+ return /* @__PURE__ */ jsxs22(
875
1154
  "svg",
876
1155
  {
877
1156
  className: "absolute w-4 h-4 hidden peer-checked:block",
@@ -881,14 +1160,14 @@ function CheckboxSVG() {
881
1160
  viewBox: "0 0 16 16",
882
1161
  fill: "none",
883
1162
  children: [
884
- /* @__PURE__ */ jsx19(
1163
+ /* @__PURE__ */ jsx33(
885
1164
  "path",
886
1165
  {
887
1166
  d: "M0 4C0 1.79086 1.79086 0 4 0H12C14.2091 0 16 1.79086 16 4V12C16 14.2091 14.2091 16 12 16H4C1.79086 16 0 14.2091 0 12V4Z",
888
1167
  fill: "#0F172A"
889
1168
  }
890
1169
  ),
891
- /* @__PURE__ */ jsx19(
1170
+ /* @__PURE__ */ jsx33(
892
1171
  "path",
893
1172
  {
894
1173
  fillRule: "evenodd",
@@ -915,11 +1194,11 @@ var DefaultCheckbox = ({
915
1194
  // End of skipped attributes
916
1195
  ...attributes
917
1196
  } = initialAttributes;
918
- const intl = useIntl7();
1197
+ const intl = useIntl8();
919
1198
  const label = getNodeLabel2(node);
920
1199
  const [checked, setChecked] = useState(Boolean(value));
921
1200
  const { register } = useForm();
922
- return /* @__PURE__ */ jsxs11(
1201
+ return /* @__PURE__ */ jsxs22(
923
1202
  "div",
924
1203
  {
925
1204
  className: "flex antialiased gap-3 self-stretch item-start",
@@ -927,8 +1206,8 @@ var DefaultCheckbox = ({
927
1206
  setChecked(!checked);
928
1207
  },
929
1208
  children: [
930
- /* @__PURE__ */ jsxs11("div", { className: "flex h-5 items-center", children: [
931
- /* @__PURE__ */ jsx19(
1209
+ /* @__PURE__ */ jsxs22("div", { className: "flex h-5 items-center", children: [
1210
+ /* @__PURE__ */ jsx33(
932
1211
  "input",
933
1212
  {
934
1213
  ...attributes,
@@ -943,16 +1222,16 @@ var DefaultCheckbox = ({
943
1222
  ...register(name, { value })
944
1223
  }
945
1224
  ),
946
- /* @__PURE__ */ jsx19(CheckboxSVG, {})
1225
+ /* @__PURE__ */ jsx33(CheckboxSVG, {})
947
1226
  ] }),
948
- /* @__PURE__ */ jsxs11("div", { className: "text-sm items-center", children: [
949
- /* @__PURE__ */ jsx19("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ jsx19(CheckboxLabel, { label }) }),
950
- node.messages.map((message) => /* @__PURE__ */ jsx19(
1227
+ /* @__PURE__ */ jsxs22("div", { className: "text-sm items-center", children: [
1228
+ /* @__PURE__ */ jsx33("label", { className: "text-sm font-normal leading-normal text-forms-fg-default", children: /* @__PURE__ */ jsx33(CheckboxLabel, { label }) }),
1229
+ node.messages.map((message) => /* @__PURE__ */ jsx33(
951
1230
  "span",
952
1231
  {
953
1232
  className: "text-sm text-red-900 mt-1",
954
1233
  ...messageTestId2(message),
955
- children: uiTextToFormattedMessage4(message, intl)
1234
+ children: uiTextToFormattedMessage5(message, intl)
956
1235
  },
957
1236
  message.id
958
1237
  ))
@@ -963,32 +1242,32 @@ var DefaultCheckbox = ({
963
1242
  };
964
1243
 
965
1244
  // src/theme/default/components/form/group-container.tsx
966
- import { jsx as jsx20 } from "react/jsx-runtime";
1245
+ import { jsx as jsx34 } from "react/jsx-runtime";
967
1246
  function DefaultGroupContainer({ children }) {
968
- return /* @__PURE__ */ jsx20("div", { className: "grid grid-cols-1 gap-6", children });
1247
+ return /* @__PURE__ */ jsx34("div", { className: "grid grid-cols-1 gap-6", children });
969
1248
  }
970
1249
 
971
1250
  // src/theme/default/components/form/horizontal-divider.tsx
972
- import { jsx as jsx21 } from "react/jsx-runtime";
1251
+ import { jsx as jsx35 } from "react/jsx-runtime";
973
1252
  function DefaultHorizontalDivider() {
974
- return /* @__PURE__ */ jsx21("hr", { className: "border-dialog-border-default" });
1253
+ return /* @__PURE__ */ jsx35("hr", { className: "border-dialog-border-default" });
975
1254
  }
976
1255
 
977
1256
  // src/theme/default/components/form/image.tsx
978
- import { jsx as jsx22 } from "react/jsx-runtime";
1257
+ import { jsx as jsx36 } from "react/jsx-runtime";
979
1258
  function DefaultImage({ attributes }) {
980
- return /* @__PURE__ */ jsx22("figure", { children: /* @__PURE__ */ jsx22("img", { ...attributes }) });
1259
+ return /* @__PURE__ */ jsx36("figure", { children: /* @__PURE__ */ jsx36("img", { ...attributes }) });
981
1260
  }
982
1261
 
983
1262
  // src/theme/default/components/form/input.tsx
984
1263
  import { FlowType as FlowType6, getNodeLabel as getNodeLabel3 } from "@ory/client-fetch";
985
1264
  import {
986
- uiTextToFormattedMessage as uiTextToFormattedMessage5,
987
- useOryFlow as useOryFlow7
1265
+ uiTextToFormattedMessage as uiTextToFormattedMessage6,
1266
+ useOryFlow as useOryFlow8
988
1267
  } from "@ory/elements-react";
989
1268
  import { useFormContext as useFormContext3 } from "react-hook-form";
990
- import { useIntl as useIntl8 } from "react-intl";
991
- import { jsx as jsx23 } from "react/jsx-runtime";
1269
+ import { useIntl as useIntl9 } from "react-intl";
1270
+ import { jsx as jsx37 } from "react/jsx-runtime";
992
1271
  var DefaultInput = ({
993
1272
  node,
994
1273
  attributes,
@@ -1004,18 +1283,18 @@ var DefaultInput = ({
1004
1283
  node_type: _,
1005
1284
  ...rest
1006
1285
  } = attributes;
1007
- const intl = useIntl8();
1008
- const { flowType } = useOryFlow7();
1286
+ const intl = useIntl9();
1287
+ const { flowType } = useOryFlow8();
1009
1288
  const formattedLabel = label ? intl.formatMessage(
1010
1289
  {
1011
1290
  id: "input.placeholder",
1012
1291
  defaultMessage: "Enter your {placeholder}"
1013
1292
  },
1014
1293
  {
1015
- placeholder: uiTextToFormattedMessage5(label, intl)
1294
+ placeholder: uiTextToFormattedMessage6(label, intl)
1016
1295
  }
1017
1296
  ) : "";
1018
- return /* @__PURE__ */ jsx23(
1297
+ return /* @__PURE__ */ jsx37(
1019
1298
  "input",
1020
1299
  {
1021
1300
  ...rest,
@@ -1035,16 +1314,20 @@ var DefaultInput = ({
1035
1314
  };
1036
1315
 
1037
1316
  // src/theme/default/components/form/label.tsx
1038
- import { FlowType as FlowType7, getNodeLabel as getNodeLabel4 } from "@ory/client-fetch";
1317
+ import {
1318
+ FlowType as FlowType7,
1319
+ getNodeLabel as getNodeLabel4,
1320
+ instanceOfUiText
1321
+ } from "@ory/client-fetch";
1039
1322
  import {
1040
1323
  messageTestId as messageTestId3,
1041
- uiTextToFormattedMessage as uiTextToFormattedMessage6,
1324
+ uiTextToFormattedMessage as uiTextToFormattedMessage7,
1042
1325
  useComponents as useComponents2,
1043
- useOryFlow as useOryFlow8
1326
+ useOryFlow as useOryFlow9
1044
1327
  } from "@ory/elements-react";
1045
1328
  import { useFormContext as useFormContext4 } from "react-hook-form";
1046
- import { useIntl as useIntl9 } from "react-intl";
1047
- import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
1329
+ import { useIntl as useIntl10 } from "react-intl";
1330
+ import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
1048
1331
  function findResendNode(nodes) {
1049
1332
  return nodes.find(
1050
1333
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -1056,11 +1339,11 @@ function DefaultLabel({
1056
1339
  attributes,
1057
1340
  ...rest
1058
1341
  }) {
1059
- const intl = useIntl9();
1342
+ const intl = useIntl10();
1060
1343
  const label = getNodeLabel4(node);
1061
1344
  const { Message } = useComponents2();
1062
- const { config, flowType, flow } = useOryFlow8();
1063
- const { setValue } = useFormContext4();
1345
+ const { config, flowType, flow } = useOryFlow9();
1346
+ const { setValue, formState } = useFormContext4();
1064
1347
  const isPassword = attributes.type === "password";
1065
1348
  const resendNode = findResendNode(flow.ui.nodes);
1066
1349
  const handleResend = () => {
@@ -1068,20 +1351,21 @@ function DefaultLabel({
1068
1351
  setValue(resendNode.attributes.name, resendNode.attributes.value);
1069
1352
  }
1070
1353
  };
1071
- return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col antialiased gap-1", children: [
1072
- label && /* @__PURE__ */ jsxs12("span", { className: "inline-flex justify-between", children: [
1073
- /* @__PURE__ */ jsx24(
1354
+ const fieldError = formState.errors[attributes.name];
1355
+ return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col antialiased gap-1", children: [
1356
+ label && /* @__PURE__ */ jsxs23("span", { className: "inline-flex justify-between", children: [
1357
+ /* @__PURE__ */ jsx38(
1074
1358
  "label",
1075
1359
  {
1076
1360
  ...messageTestId3(label),
1077
1361
  className: "text-sm font-medium leading-normal",
1078
1362
  htmlFor: attributes.name,
1079
1363
  ...rest,
1080
- children: uiTextToFormattedMessage6(label, intl)
1364
+ children: uiTextToFormattedMessage7(label, intl)
1081
1365
  }
1082
1366
  ),
1083
1367
  isPassword && config.project.recovery_enabled && flowType === FlowType7.Login && // TODO: make it possible to override with a custom component
1084
- /* @__PURE__ */ jsx24(
1368
+ /* @__PURE__ */ jsx38(
1085
1369
  "a",
1086
1370
  {
1087
1371
  href: config.project.recovery_ui_url,
@@ -1092,7 +1376,7 @@ function DefaultLabel({
1092
1376
  })
1093
1377
  }
1094
1378
  ),
1095
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx24(
1379
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ jsx38(
1096
1380
  "button",
1097
1381
  {
1098
1382
  type: "submit",
@@ -1105,31 +1389,32 @@ function DefaultLabel({
1105
1389
  )
1106
1390
  ] }),
1107
1391
  children,
1108
- node.messages.map((message) => /* @__PURE__ */ jsx24(Message.Content, { message }, message.id))
1392
+ node.messages.map((message) => /* @__PURE__ */ jsx38(Message.Content, { message }, message.id)),
1393
+ fieldError && instanceOfUiText(fieldError) && /* @__PURE__ */ jsx38(Message.Content, { message: fieldError })
1109
1394
  ] });
1110
1395
  }
1111
1396
 
1112
1397
  // src/theme/default/components/form/link-button.tsx
1113
1398
  import { getNodeLabel as getNodeLabel5 } from "@ory/client-fetch";
1114
1399
  import {
1115
- uiTextToFormattedMessage as uiTextToFormattedMessage7
1400
+ uiTextToFormattedMessage as uiTextToFormattedMessage8
1116
1401
  } from "@ory/elements-react";
1117
1402
  import { forwardRef } from "react";
1118
- import { useIntl as useIntl10 } from "react-intl";
1119
- import { jsx as jsx25 } from "react/jsx-runtime";
1403
+ import { useIntl as useIntl11 } from "react-intl";
1404
+ import { jsx as jsx39 } from "react/jsx-runtime";
1120
1405
  var DefaultLinkButton = forwardRef(({ attributes, node }, ref) => {
1121
- const intl = useIntl10();
1406
+ const intl = useIntl11();
1122
1407
  const label = getNodeLabel5(node);
1123
- return /* @__PURE__ */ jsx25(
1408
+ return /* @__PURE__ */ jsx39(
1124
1409
  "a",
1125
1410
  {
1126
1411
  ...attributes,
1127
1412
  ref,
1128
- title: label ? uiTextToFormattedMessage7(label, intl) : "",
1413
+ title: label ? uiTextToFormattedMessage8(label, intl) : "",
1129
1414
  className: cn(
1130
1415
  "antialiased rounded cursor-pointer text-center border border-transparent gap-3 leading-none bg-button-primary-bg-default hover:bg-button-primary-bg-hover transition-colors text-button-primary-fg-default hover:text-button-primary-fg-hover px-4 py-4.5 text-sm font-medium"
1131
1416
  ),
1132
- children: label ? uiTextToFormattedMessage7(label, intl) : ""
1417
+ children: label ? uiTextToFormattedMessage8(label, intl) : ""
1133
1418
  }
1134
1419
  );
1135
1420
  });
@@ -1140,9 +1425,9 @@ import { useFormContext as useFormContext5 } from "react-hook-form";
1140
1425
 
1141
1426
  // src/theme/default/components/form/shadcn/otp-input.tsx
1142
1427
  import { OTPInput, OTPInputContext } from "input-otp";
1143
- import * as React8 from "react";
1144
- import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
1145
- var InputOTP = React8.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx26(
1428
+ import * as React21 from "react";
1429
+ import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
1430
+ var InputOTP = React21.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx40(
1146
1431
  OTPInput,
1147
1432
  {
1148
1433
  ref,
@@ -1155,12 +1440,12 @@ var InputOTP = React8.forwardRef(({ className, containerClassName, ...props }, r
1155
1440
  }
1156
1441
  ));
1157
1442
  InputOTP.displayName = "InputOTP";
1158
- var InputOTPGroup = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx26("div", { ref, className: cn("flex items-center", className), ...props }));
1443
+ var InputOTPGroup = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40("div", { ref, className: cn("flex items-center", className), ...props }));
1159
1444
  InputOTPGroup.displayName = "InputOTPGroup";
1160
- var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1161
- const inputOTPContext = React8.useContext(OTPInputContext);
1445
+ var InputOTPSlot = React21.forwardRef(({ index, className, ...props }, ref) => {
1446
+ const inputOTPContext = React21.useContext(OTPInputContext);
1162
1447
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1163
- return /* @__PURE__ */ jsxs13(
1448
+ return /* @__PURE__ */ jsxs24(
1164
1449
  "div",
1165
1450
  {
1166
1451
  ref,
@@ -1172,7 +1457,7 @@ var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1172
1457
  ...props,
1173
1458
  children: [
1174
1459
  char,
1175
- hasFakeCaret && /* @__PURE__ */ jsx26("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx26("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1460
+ hasFakeCaret && /* @__PURE__ */ jsx40("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx40("div", { className: "h-4 w-px animate-caret-blink bg-branding-bg-default duration-750" }) })
1176
1461
  ]
1177
1462
  }
1178
1463
  );
@@ -1180,7 +1465,7 @@ var InputOTPSlot = React8.forwardRef(({ index, className, ...props }, ref) => {
1180
1465
  InputOTPSlot.displayName = "InputOTPSlot";
1181
1466
 
1182
1467
  // src/theme/default/components/form/pin-code-input.tsx
1183
- import { jsx as jsx27 } from "react/jsx-runtime";
1468
+ import { jsx as jsx41 } from "react/jsx-runtime";
1184
1469
  var DefaultPinCodeInput = ({ attributes }) => {
1185
1470
  const { setValue, watch } = useFormContext5();
1186
1471
  const { maxlength, name } = attributes;
@@ -1189,14 +1474,14 @@ var DefaultPinCodeInput = ({ attributes }) => {
1189
1474
  setValue(name, v);
1190
1475
  };
1191
1476
  const value = watch(name);
1192
- return /* @__PURE__ */ jsx27(
1477
+ return /* @__PURE__ */ jsx41(
1193
1478
  InputOTP,
1194
1479
  {
1195
1480
  maxLength: maxlength != null ? maxlength : 6,
1196
1481
  onChange: handleInputChange,
1197
1482
  name,
1198
1483
  value,
1199
- children: /* @__PURE__ */ jsx27(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx27(
1484
+ children: /* @__PURE__ */ jsx41(InputOTPGroup, { className: "w-full space-x-2 justify-between", children: [...Array(elements)].map((_, index) => /* @__PURE__ */ jsx41(
1200
1485
  InputOTPSlot,
1201
1486
  {
1202
1487
  index,
@@ -1209,294 +1494,35 @@ var DefaultPinCodeInput = ({ attributes }) => {
1209
1494
  };
1210
1495
 
1211
1496
  // src/theme/default/components/form/section.tsx
1212
- import { jsx as jsx28, jsxs as jsxs14 } from "react/jsx-runtime";
1497
+ import { jsx as jsx42, jsxs as jsxs25 } from "react/jsx-runtime";
1213
1498
  var DefaultFormSection = ({ children }) => {
1214
- return /* @__PURE__ */ jsx28("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1499
+ return /* @__PURE__ */ jsx42("div", { className: "flex flex-col w-80 md:w-[712px] lg:w-[802px] xl:w-[896px]", children });
1215
1500
  };
1216
1501
  var DefaultFormSectionContent = ({
1217
1502
  title,
1218
1503
  description,
1219
1504
  children
1220
1505
  }) => {
1221
- return /* @__PURE__ */ jsxs14("div", { className: "border rounded-t-xl border-b-0 border-dialog-border-default bg-forms-bg-default px-6 py-8 flex flex-col gap-8", children: [
1222
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
1223
- /* @__PURE__ */ jsx28("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1224
- /* @__PURE__ */ jsx28("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1506
+ return /* @__PURE__ */ jsxs25("div", { className: "border rounded-t-xl border-b-0 border-dialog-border-default bg-forms-bg-default px-6 py-8 flex flex-col gap-8", children: [
1507
+ /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-2", children: [
1508
+ /* @__PURE__ */ jsx42("h3", { className: "font-medium text-dialog-fg-default", children: title }),
1509
+ /* @__PURE__ */ jsx42("span", { className: "text-sm text-dialog-fg-subtle", children: description })
1225
1510
  ] }),
1226
1511
  children
1227
1512
  ] });
1228
1513
  };
1229
1514
  var DefaultFormSectionFooter = ({ children }) => {
1230
- return /* @__PURE__ */ jsx28("div", { className: "rounded-b-xl gap-2 flex justify-end px-6 py-4 bg-dialog-bg-subtle border border-dialog-border-default text-sm text-dialog-fg-mute items-center [&>span]:mr-auto min-h-[72px]", children });
1231
- };
1232
-
1233
- // src/theme/default/components/form/social.tsx
1234
- import {
1235
- uiTextToFormattedMessage as uiTextToFormattedMessage8,
1236
- useOryFlow as useOryFlow9
1237
- } from "@ory/elements-react";
1238
-
1239
- // src/theme/default/provider-logos/apple.svg
1240
- import * as React9 from "react";
1241
- import { jsx as jsx29, jsxs as jsxs15 } from "react/jsx-runtime";
1242
- var SvgApple = (props) => {
1243
- var _a, _b;
1244
- return /* @__PURE__ */ jsxs15("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1245
- /* @__PURE__ */ jsx29("path", { fill: "#283544", d: "M30 16c0 7.728-6.265 14-14 14S2 23.728 2 16C2 8.265 8.265 2 16 2s14 6.265 14 14" }),
1246
- /* @__PURE__ */ jsx29("path", { fill: "#fff", d: "M22.562 12.457c-.076.045-1.895.986-1.895 3.07.086 2.38 2.295 3.213 2.333 3.213-.038.045-.334 1.136-1.21 2.28-.694.986-1.466 1.98-2.637 1.98-1.114 0-1.514-.657-2.8-.657-1.381 0-1.772.657-2.829.657-1.171 0-2-1.047-2.733-2.023-.952-1.278-1.761-3.284-1.79-5.21-.02-1.02.19-2.023.724-2.875.752-1.19 2.095-1.997 3.561-2.023 1.124-.036 2.124.719 2.81.719.657 0 1.885-.72 3.275-.72.6.001 2.2.17 3.191 1.59m-6.561-1.792c-.2-.932.352-1.864.866-2.458.657-.72 1.695-1.207 2.59-1.207a3.33 3.33 0 0 1-.952 2.511c-.58.72-1.58 1.26-2.504 1.154" })
1247
- ] });
1248
- };
1249
- var apple_default = SvgApple;
1250
-
1251
- // src/theme/default/provider-logos/auth0.svg
1252
- import * as React10 from "react";
1253
- import { jsx as jsx30 } from "react/jsx-runtime";
1254
- var SvgAuth0 = (props) => {
1255
- var _a, _b;
1256
- return /* @__PURE__ */ jsx30("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx30("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
1257
- };
1258
- var auth0_default = SvgAuth0;
1259
-
1260
- // src/theme/default/provider-logos/discord.svg
1261
- import * as React11 from "react";
1262
- import { jsx as jsx31, jsxs as jsxs16 } from "react/jsx-runtime";
1263
- var SvgDiscord = (props) => {
1264
- var _a, _b;
1265
- return /* @__PURE__ */ jsxs16("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1266
- /* @__PURE__ */ jsx31("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
1267
- /* @__PURE__ */ jsx31("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
1268
- ] });
1269
- };
1270
- var discord_default = SvgDiscord;
1271
-
1272
- // src/theme/default/provider-logos/facebook.svg
1273
- import * as React12 from "react";
1274
- import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
1275
- var SvgFacebook = (props) => {
1276
- var _a, _b;
1277
- return /* @__PURE__ */ jsxs17("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1278
- /* @__PURE__ */ jsxs17("g", { clipPath: "url(#facebook_svg__a)", children: [
1279
- /* @__PURE__ */ jsx32("path", { fill: "#1877F2", d: "M24 12c0-6.627-5.373-12-12-12C5.372 0 0 5.374 0 12c0 5.99 4.388 10.954 10.125 11.854V15.47H7.078V12h3.047V9.357c0-3.008 1.791-4.669 4.532-4.669 1.313 0 2.686.234 2.686.234v2.953H15.83c-1.49 0-1.955.925-1.955 1.874V12h3.328l-.532 3.469h-2.796v8.385c5.736-.9 10.124-5.864 10.124-11.854" }),
1280
- /* @__PURE__ */ jsx32("path", { fill: "#fff", d: "M16.67 15.469 17.204 12h-3.328V9.75c0-.95.465-1.875 1.955-1.875h1.513V4.922s-1.373-.234-2.686-.234c-2.74 0-4.532 1.661-4.532 4.669V12H7.078v3.469h3.047v8.385a12.1 12.1 0 0 0 3.75 0V15.47z" })
1281
- ] }),
1282
- /* @__PURE__ */ jsx32("defs", { children: /* @__PURE__ */ jsx32("clipPath", { id: "facebook_svg__a", children: /* @__PURE__ */ jsx32("rect", { fill: "#fff" }) }) })
1283
- ] });
1284
- };
1285
- var facebook_default = SvgFacebook;
1286
-
1287
- // src/theme/default/provider-logos/generic.svg
1288
- import * as React13 from "react";
1289
- import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
1290
- var SvgGeneric = (props) => {
1291
- var _a, _b;
1292
- return /* @__PURE__ */ jsxs18("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, className: "generic_svg__icon generic_svg__icon-tabler generic_svg__icon-tabler-brand-oauth", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1293
- /* @__PURE__ */ jsx33("path", { stroke: "none", d: "M0 0h24v24H0z" }),
1294
- /* @__PURE__ */ jsx33("path", { d: "M2 12a10 10 0 1 0 20 0 10 10 0 1 0-20 0" }),
1295
- /* @__PURE__ */ jsx33("path", { d: "M12.556 6c.65 0 1.235.373 1.508.947l2.839 7.848a1.646 1.646 0 0 1-1.01 2.108 1.673 1.673 0 0 1-2.068-.851L13.365 15h-2.73l-.398.905A1.67 1.67 0 0 1 8.26 16.95l-.153-.047a1.647 1.647 0 0 1-1.056-1.956l2.824-7.852a1.66 1.66 0 0 1 1.409-1.087z" })
1296
- ] });
1297
- };
1298
- var generic_default = SvgGeneric;
1299
-
1300
- // src/theme/default/provider-logos/github.svg
1301
- import * as React14 from "react";
1302
- import { jsx as jsx34 } from "react/jsx-runtime";
1303
- var SvgGithub = (props) => {
1304
- var _a, _b;
1305
- return /* @__PURE__ */ jsx34("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsx34("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
1306
- };
1307
- var github_default = SvgGithub;
1308
-
1309
- // src/theme/default/provider-logos/gitlab.svg
1310
- import * as React15 from "react";
1311
- import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
1312
- var SvgGitlab = (props) => {
1313
- var _a, _b;
1314
- return /* @__PURE__ */ jsxs19("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1315
- /* @__PURE__ */ jsx35("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
1316
- /* @__PURE__ */ jsx35("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
1317
- /* @__PURE__ */ jsx35("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
1318
- /* @__PURE__ */ jsx35("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
1319
- ] });
1320
- };
1321
- var gitlab_default = SvgGitlab;
1322
-
1323
- // src/theme/default/provider-logos/google.svg
1324
- import * as React16 from "react";
1325
- import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
1326
- var SvgGoogle = (props) => {
1327
- var _a, _b;
1328
- return /* @__PURE__ */ jsxs20("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1329
- /* @__PURE__ */ jsx36("path", { fill: "#4285F4", d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82" }),
1330
- /* @__PURE__ */ jsx36("path", { fill: "#34A853", d: "M12.255 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96h-3.98v3.09C3.515 21.3 7.565 24 12.255 24" }),
1331
- /* @__PURE__ */ jsx36("path", { fill: "#FBBC05", d: "M5.525 14.29c-.25-.72-.38-1.49-.38-2.29s.14-1.57.38-2.29V6.62h-3.98a11.86 11.86 0 0 0 0 10.76z" }),
1332
- /* @__PURE__ */ jsx36("path", { fill: "#EA4335", d: "M12.255 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C18.205 1.19 15.495 0 12.255 0c-4.69 0-8.74 2.7-10.71 6.62l3.98 3.09c.95-2.85 3.6-4.96 6.73-4.96" })
1333
- ] });
1334
- };
1335
- var google_default = SvgGoogle;
1336
-
1337
- // src/theme/default/provider-logos/linkedin.svg
1338
- import * as React17 from "react";
1339
- import { jsx as jsx37, jsxs as jsxs21 } from "react/jsx-runtime";
1340
- var SvgLinkedin = (props) => {
1341
- var _a, _b;
1342
- return /* @__PURE__ */ jsxs21("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1343
- /* @__PURE__ */ jsx37("rect", { x: 2, y: 2, fill: "#1275B1", rx: 14 }),
1344
- /* @__PURE__ */ jsx37("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
1345
- ] });
1515
+ return /* @__PURE__ */ jsx42("div", { className: "rounded-b-xl gap-2 flex justify-end px-6 py-4 bg-dialog-bg-subtle border border-dialog-border-default text-sm text-dialog-fg-mute items-center [&>span]:mr-auto min-h-[72px]", children });
1346
1516
  };
1347
- var linkedin_default = SvgLinkedin;
1348
-
1349
- // src/theme/default/provider-logos/microsoft.svg
1350
- import * as React18 from "react";
1351
- import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
1352
- var SvgMicrosoft = (props) => {
1353
- var _a, _b;
1354
- return /* @__PURE__ */ jsxs22("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1355
- /* @__PURE__ */ jsx38("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
1356
- /* @__PURE__ */ jsx38("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
1357
- /* @__PURE__ */ jsx38("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
1358
- /* @__PURE__ */ jsx38("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
1359
- ] });
1360
- };
1361
- var microsoft_default = SvgMicrosoft;
1362
-
1363
- // src/theme/default/provider-logos/slack.svg
1364
- import * as React19 from "react";
1365
- import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
1366
- var SvgSlack = (props) => {
1367
- var _a, _b;
1368
- return /* @__PURE__ */ jsxs23("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1369
- /* @__PURE__ */ jsx39("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
1370
- /* @__PURE__ */ jsx39("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
1371
- /* @__PURE__ */ jsx39("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
1372
- /* @__PURE__ */ jsx39("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
1373
- ] });
1374
- };
1375
- var slack_default = SvgSlack;
1376
-
1377
- // src/theme/default/provider-logos/spotify.svg
1378
- import * as React20 from "react";
1379
- import { jsx as jsx40, jsxs as jsxs24 } from "react/jsx-runtime";
1380
- var SvgSpotify = (props) => {
1381
- var _a, _b;
1382
- return /* @__PURE__ */ jsxs24("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1383
- /* @__PURE__ */ jsx40("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
1384
- /* @__PURE__ */ jsx40("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
1385
- ] });
1386
- };
1387
- var spotify_default = SvgSpotify;
1388
-
1389
- // src/theme/default/provider-logos/yandex.svg
1390
- import * as React21 from "react";
1391
- import { jsx as jsx41, jsxs as jsxs25 } from "react/jsx-runtime";
1392
- var SvgYandex = (props) => {
1393
- var _a, _b;
1394
- return /* @__PURE__ */ jsxs25("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
1395
- /* @__PURE__ */ jsx41("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
1396
- /* @__PURE__ */ jsx41("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
1397
- ] });
1398
- };
1399
- var yandex_default = SvgYandex;
1400
-
1401
- // src/theme/default/provider-logos/index.ts
1402
- var logos = {
1403
- apple: apple_default,
1404
- auth0: auth0_default,
1405
- discord: discord_default,
1406
- facebook: facebook_default,
1407
- generic: generic_default,
1408
- github: github_default,
1409
- gitlab: gitlab_default,
1410
- google: google_default,
1411
- linkedin: linkedin_default,
1412
- microsoft: microsoft_default,
1413
- slack: slack_default,
1414
- spotify: spotify_default,
1415
- yandex: yandex_default
1416
- };
1417
- var provider_logos_default = logos;
1418
-
1419
- // src/theme/default/components/form/social.tsx
1420
- import { useIntl as useIntl11 } from "react-intl";
1421
- import { jsx as jsx42, jsxs as jsxs26 } from "react/jsx-runtime";
1422
- function extractProvider(context) {
1423
- if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
1424
- return context.provider;
1425
- }
1426
- return void 0;
1427
- }
1428
- function DefaultButtonSocial({
1429
- attributes,
1430
- node,
1431
- onClick,
1432
- showLabel: _showLabel
1433
- }) {
1434
- var _a, _b, _c;
1435
- const {
1436
- node_type: _ignoredNodeType,
1437
- type: _ignoredType,
1438
- name: _ignoredName,
1439
- ...props
1440
- } = attributes;
1441
- const {
1442
- flow: { ui }
1443
- } = useOryFlow9();
1444
- const intl = useIntl11();
1445
- const oidcNodeCount = (_a = ui.nodes.filter((node2) => node2.group === "oidc").length) != null ? _a : 0;
1446
- const Logo = provider_logos_default[attributes.value];
1447
- const showLabel = _showLabel != null ? _showLabel : oidcNodeCount % 3 !== 0 && oidcNodeCount % 4 !== 0;
1448
- const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
1449
- return /* @__PURE__ */ jsxs26(
1450
- "button",
1451
- {
1452
- className: cn(
1453
- "gap-3 ring-1 ring-forms-border-default bg-button-secondary-bg-default hover:bg-button-secondary-bg-hover transition-colors rounded flex items-center justify-center py-2.5 px-4 md:py-4",
1454
- { "py-2.5": showLabel }
1455
- ),
1456
- value: attributes.value,
1457
- type: "submit",
1458
- name: "provider",
1459
- ...props,
1460
- onClick,
1461
- children: [
1462
- /* @__PURE__ */ jsx42("span", { className: "w-5 h-5", children: Logo ? /* @__PURE__ */ jsx42(
1463
- Logo,
1464
- {
1465
- size: 20,
1466
- className: "object-fill w-full h-full"
1467
- }
1468
- ) : /* @__PURE__ */ jsx42("span", { className: "rounded-full aspect-square border flex items-center justify-center text-xs", children: provider.slice(0, 2) }) }),
1469
- showLabel && node.meta.label ? /* @__PURE__ */ jsx42("span", { className: "text-sm text-left leading-none font-medium text-forms-fg-default flex-grow", children: uiTextToFormattedMessage8(node.meta.label, intl) }) : null
1470
- ]
1471
- }
1472
- );
1473
- }
1474
- function DefaultSocialButtonContainer({
1475
- children,
1476
- nodes
1477
- }) {
1478
- return /* @__PURE__ */ jsx42(
1479
- "div",
1480
- {
1481
- className: cn("grid gap-3", {
1482
- // needed because tailwind is not compiling dynamic classes
1483
- "grid-cols-1": nodes.length % 4 <= 2,
1484
- "grid-cols-3": nodes.length % 3 === 0,
1485
- "grid-cols-4": nodes.length > 1 && nodes.length % 4 === 0
1486
- }),
1487
- children
1488
- }
1489
- );
1490
- }
1491
1517
 
1492
1518
  // src/theme/default/components/form/text.tsx
1493
1519
  import { uiTextToFormattedMessage as uiTextToFormattedMessage9 } from "@ory/elements-react";
1494
1520
  import { useIntl as useIntl12 } from "react-intl";
1495
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs27 } from "react/jsx-runtime";
1521
+ import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs26 } from "react/jsx-runtime";
1496
1522
  function DefaultText({ node, attributes }) {
1497
1523
  var _a;
1498
1524
  const intl = useIntl12();
1499
- return /* @__PURE__ */ jsxs27(Fragment3, { children: [
1525
+ return /* @__PURE__ */ jsxs26(Fragment3, { children: [
1500
1526
  /* @__PURE__ */ jsx43("p", { "data-testid": `node/text/${attributes.id}/label`, children: node.meta.label ? uiTextToFormattedMessage9(node.meta.label, intl) : "" }),
1501
1527
  (_a = attributes.text.context.secrets) == null ? void 0 : _a.map((text, index) => /* @__PURE__ */ jsx43("pre", { "data-testid": `node/text/lookup_secret_codes/text`, children: /* @__PURE__ */ jsx43("code", { children: text ? uiTextToFormattedMessage9(text, intl) : "" }) }, index))
1502
1528
  ] });
@@ -1538,10 +1564,10 @@ var logout_default = SvgLogout;
1538
1564
 
1539
1565
  // src/theme/default/assets/icons/settings.svg
1540
1566
  import * as React23 from "react";
1541
- import { jsx as jsx45, jsxs as jsxs28 } from "react/jsx-runtime";
1567
+ import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
1542
1568
  var SvgSettings = (props) => {
1543
1569
  var _a, _b;
1544
- return /* @__PURE__ */ jsx45("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs28("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1570
+ return /* @__PURE__ */ jsx45("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ jsxs27("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1545
1571
  /* @__PURE__ */ jsx45("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1546
1572
  /* @__PURE__ */ jsx45("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1547
1573
  ] }) });
@@ -1674,7 +1700,7 @@ var UserAvatar = forwardRef4(
1674
1700
  UserAvatar.displayName = "UserAvatar";
1675
1701
 
1676
1702
  // src/theme/default/components/ui/user-menu.tsx
1677
- import { jsx as jsx49, jsxs as jsxs29 } from "react/jsx-runtime";
1703
+ import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
1678
1704
  var UserMenu = ({ session }) => {
1679
1705
  const { config } = useOryFlow10();
1680
1706
  const initials = getUserInitials(session);
@@ -1686,21 +1712,21 @@ var UserMenu = ({ session }) => {
1686
1712
  useEffect(() => {
1687
1713
  void fetchLogoutFlow();
1688
1714
  }, [fetchLogoutFlow]);
1689
- return /* @__PURE__ */ jsxs29(DropdownMenu, { children: [
1715
+ return /* @__PURE__ */ jsxs28(DropdownMenu, { children: [
1690
1716
  /* @__PURE__ */ jsx49(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx49(UserAvatar, { initials }) }),
1691
- /* @__PURE__ */ jsxs29(DropdownMenuContent, { children: [
1692
- /* @__PURE__ */ jsxs29(DropdownMenuLabel2, { className: "px-5 py-4.5 flex gap-3", children: [
1717
+ /* @__PURE__ */ jsxs28(DropdownMenuContent, { children: [
1718
+ /* @__PURE__ */ jsxs28(DropdownMenuLabel2, { className: "px-5 py-4.5 flex gap-3", children: [
1693
1719
  /* @__PURE__ */ jsx49(UserAvatar, { disabled: true, initials }),
1694
- /* @__PURE__ */ jsxs29("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1720
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col text-sm leading-tight justify-center", children: [
1695
1721
  /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-default", children: initials.primary }),
1696
1722
  initials.secondary && /* @__PURE__ */ jsx49("div", { className: "text-dialog-fg-mute", children: initials.secondary })
1697
1723
  ] })
1698
1724
  ] }),
1699
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs29("a", { href: "/settings", children: [
1725
+ /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ jsxs28("a", { href: "/settings", children: [
1700
1726
  /* @__PURE__ */ jsx49(settings_default, { size: 16 }),
1701
1727
  " User settings"
1702
1728
  ] }) }),
1703
- /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs29("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1729
+ /* @__PURE__ */ jsx49(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ jsxs28("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
1704
1730
  /* @__PURE__ */ jsx49(logout_default, { size: 16 }),
1705
1731
  " Logout"
1706
1732
  ] }) })
@@ -1710,11 +1736,11 @@ var UserMenu = ({ session }) => {
1710
1736
 
1711
1737
  // src/theme/default/components/generic/page-header.tsx
1712
1738
  import { useSession } from "@ory/elements-react/client";
1713
- import { jsx as jsx50, jsxs as jsxs30 } from "react/jsx-runtime";
1739
+ import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
1714
1740
  var DefaultPageHeader = (_props) => {
1715
1741
  const { Card } = useComponents3();
1716
1742
  const { session } = useSession();
1717
- return /* @__PURE__ */ jsx50("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs30("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1743
+ return /* @__PURE__ */ jsx50("div", { className: "flex max-w-[896px] flex-col w-full gap-3 mt-16", children: /* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ jsxs29("div", { className: "flex gap-2 max-h-10 justify-between flex-1", children: [
1718
1744
  /* @__PURE__ */ jsx50("div", { className: "h-10 flex-1 relative", children: /* @__PURE__ */ jsx50(Card.Logo, {}) }),
1719
1745
  /* @__PURE__ */ jsx50(UserMenu, { session })
1720
1746
  ] }) }) });
@@ -1731,7 +1757,7 @@ var trash_default = SvgTrash;
1731
1757
 
1732
1758
  // src/theme/default/components/settings/settings-oidc.tsx
1733
1759
  import { useFormContext as useFormContext6 } from "react-hook-form";
1734
- import { jsx as jsx52, jsxs as jsxs31 } from "react/jsx-runtime";
1760
+ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
1735
1761
  function DefaultSettingsOidc({
1736
1762
  linkButtons,
1737
1763
  unlinkButtons
@@ -1739,7 +1765,7 @@ function DefaultSettingsOidc({
1739
1765
  const hasLinkButtons = linkButtons.length > 0;
1740
1766
  const hasUnlinkButtons = unlinkButtons.length > 0;
1741
1767
  const { setValue } = useFormContext6();
1742
- return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1768
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col gap-8", children: [
1743
1769
  hasLinkButtons && /* @__PURE__ */ jsx52("div", { className: "flex gap-3 items-start [&>button]:w-[79px]", children: linkButtons.map((button) => {
1744
1770
  const attrs = button.attributes;
1745
1771
  return /* @__PURE__ */ jsx52(
@@ -1762,8 +1788,8 @@ function DefaultSettingsOidc({
1762
1788
  const attrs = button.attributes;
1763
1789
  const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
1764
1790
  const Logo = attrs.value in provider_logos_default ? provider_logos_default[attrs.value] : provider_logos_default.generic;
1765
- return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between", children: [
1766
- /* @__PURE__ */ jsxs31("div", { className: "flex gap-6 items-center", children: [
1791
+ return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between", children: [
1792
+ /* @__PURE__ */ jsxs30("div", { className: "flex gap-6 items-center", children: [
1767
1793
  /* @__PURE__ */ jsx52(Logo, { size: 32 }),
1768
1794
  /* @__PURE__ */ jsx52("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: provider })
1769
1795
  ] }),
@@ -1785,13 +1811,13 @@ function DefaultSettingsOidc({
1785
1811
  }
1786
1812
 
1787
1813
  // src/theme/default/components/settings/settings-passkey.tsx
1788
- import { jsx as jsx53, jsxs as jsxs32 } from "react/jsx-runtime";
1814
+ import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
1789
1815
  function DefaultSettingsPasskey({
1790
1816
  triggerButton,
1791
1817
  removeButtons
1792
1818
  }) {
1793
1819
  const hasRemoveButtons = removeButtons.length > 0;
1794
- return /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
1820
+ return /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1795
1821
  /* @__PURE__ */ jsx53("div", { className: "flex gap-3 items-end max-w-[60%]", children: triggerButton ? /* @__PURE__ */ jsx53(
1796
1822
  DefaultButton,
1797
1823
  {
@@ -1800,7 +1826,7 @@ function DefaultSettingsPasskey({
1800
1826
  onClick: triggerButton.onClick
1801
1827
  }
1802
1828
  ) : null }),
1803
- hasRemoveButtons ? /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-8", children: [
1829
+ hasRemoveButtons ? /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-8", children: [
1804
1830
  /* @__PURE__ */ jsx53(DefaultHorizontalDivider, {}),
1805
1831
  /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
1806
1832
  var _a, _b;
@@ -1808,13 +1834,13 @@ function DefaultSettingsPasskey({
1808
1834
  const addedAt = "added_at" in context ? context.added_at : null;
1809
1835
  const diaplyName = "display_name" in context ? context.display_name : null;
1810
1836
  const keyId = "value" in node.attributes ? node.attributes.value : null;
1811
- return /* @__PURE__ */ jsxs32(
1837
+ return /* @__PURE__ */ jsxs31(
1812
1838
  "div",
1813
1839
  {
1814
1840
  className: "flex justify-between gap-6",
1815
1841
  children: [
1816
1842
  /* @__PURE__ */ jsx53(passkey_default, { size: 32, className: "text-dialog-fg-default" }),
1817
- /* @__PURE__ */ jsxs32("div", { className: "flex-1 flex-col", children: [
1843
+ /* @__PURE__ */ jsxs31("div", { className: "flex-1 flex-col", children: [
1818
1844
  /* @__PURE__ */ jsx53("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
1819
1845
  /* @__PURE__ */ jsx53("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
1820
1846
  ] }),
@@ -1848,10 +1874,10 @@ var download_default = SvgDownload;
1848
1874
 
1849
1875
  // src/theme/default/assets/icons/eye.svg
1850
1876
  import * as React27 from "react";
1851
- import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
1877
+ import { jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
1852
1878
  var SvgEye = (props) => {
1853
1879
  var _a, _b;
1854
- return /* @__PURE__ */ jsx55("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs33("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1880
+ return /* @__PURE__ */ jsx55("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ jsxs32("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1855
1881
  /* @__PURE__ */ jsx55("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1856
1882
  /* @__PURE__ */ jsx55("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1857
1883
  ] }) });
@@ -1868,7 +1894,7 @@ var SvgRefresh = (props) => {
1868
1894
  var refresh_default = SvgRefresh;
1869
1895
 
1870
1896
  // src/theme/default/components/settings/settings-recovery-codes.tsx
1871
- import { jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
1897
+ import { jsx as jsx57, jsxs as jsxs33 } from "react/jsx-runtime";
1872
1898
  function DefaultSettingsRecoveryCodes({
1873
1899
  codes,
1874
1900
  regnerateButton,
@@ -1885,9 +1911,9 @@ function DefaultSettingsRecoveryCodes({
1885
1911
  element.click();
1886
1912
  };
1887
1913
  const hasCodes = codes.length >= 1;
1888
- return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-8", children: [
1914
+ return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-8", children: [
1889
1915
  /* @__PURE__ */ jsx57(DefaultHorizontalDivider, {}),
1890
- /* @__PURE__ */ jsxs34("div", { className: "flex justify-end gap-4", children: [
1916
+ /* @__PURE__ */ jsxs33("div", { className: "flex justify-end gap-4", children: [
1891
1917
  regnerateButton && /* @__PURE__ */ jsx57(
1892
1918
  "button",
1893
1919
  {
@@ -1939,7 +1965,7 @@ var SvgQrcode = (props) => {
1939
1965
  var qrcode_default = SvgQrcode;
1940
1966
 
1941
1967
  // src/theme/default/components/settings/settings-top.tsx
1942
- import { jsx as jsx59, jsxs as jsxs35 } from "react/jsx-runtime";
1968
+ import { jsx as jsx59, jsxs as jsxs34 } from "react/jsx-runtime";
1943
1969
  function DefaultSettingsTotp(props) {
1944
1970
  var _a;
1945
1971
  if ("totpUnlink" in props && props.totpUnlink) {
@@ -1950,9 +1976,9 @@ function DefaultSettingsTotp(props) {
1950
1976
  node_type: _ignoredNodeType,
1951
1977
  ...buttonAttrs
1952
1978
  } = (_a = props.totpUnlink) == null ? void 0 : _a.attributes;
1953
- return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1979
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1954
1980
  /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
1955
- /* @__PURE__ */ jsxs35("div", { className: "flex gap-6 items-center col-span-full", children: [
1981
+ /* @__PURE__ */ jsxs34("div", { className: "flex gap-6 items-center col-span-full", children: [
1956
1982
  /* @__PURE__ */ jsx59("div", { className: "size-8 aspect-square ", children: /* @__PURE__ */ jsx59(qrcode_default, { size: 32 }) }),
1957
1983
  /* @__PURE__ */ jsx59("div", { className: "flex flex-col mr-auto", children: /* @__PURE__ */ jsx59("p", { className: "text-dialog-fg-subtle text-sm font-medium", children: "Authenticator app" }) }),
1958
1984
  /* @__PURE__ */ jsx59(
@@ -1973,7 +1999,7 @@ function DefaultSettingsTotp(props) {
1973
1999
  ] });
1974
2000
  }
1975
2001
  if ("totpSecret" in props) {
1976
- return /* @__PURE__ */ jsxs35("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
2002
+ return /* @__PURE__ */ jsxs34("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8", children: [
1977
2003
  /* @__PURE__ */ jsx59("div", { className: "col-span-full", children: /* @__PURE__ */ jsx59(DefaultHorizontalDivider, {}) }),
1978
2004
  /* @__PURE__ */ jsx59("div", { className: "bg-dialog-bg-subtle p-8 rounded-xl flex justify-center", children: /* @__PURE__ */ jsx59("div", { className: "h-44 aspect-square bg-[white] rounded", children: /* @__PURE__ */ jsx59("div", { className: "mix-blend-multiply -m-3 antialiased", children: /* @__PURE__ */ jsx59(
1979
2005
  DefaultImage,
@@ -1984,7 +2010,7 @@ function DefaultSettingsTotp(props) {
1984
2010
  }
1985
2011
  }
1986
2012
  ) }) }) }),
1987
- /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-6", children: [
2013
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-6", children: [
1988
2014
  /* @__PURE__ */ jsx59(
1989
2015
  DefaultLabel,
1990
2016
  {
@@ -2034,15 +2060,15 @@ var SvgKey = (props) => {
2034
2060
  var key_default = SvgKey;
2035
2061
 
2036
2062
  // src/theme/default/components/settings/settings-webauthn.tsx
2037
- import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
2063
+ import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
2038
2064
  function DefaultSettingsWebauthn({
2039
2065
  nameInput,
2040
2066
  triggerButton,
2041
2067
  removeButtons
2042
2068
  }) {
2043
2069
  const hasRemoveButtons = removeButtons.length > 0;
2044
- return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2045
- /* @__PURE__ */ jsxs36("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
2070
+ return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2071
+ /* @__PURE__ */ jsxs35("div", { className: "flex gap-3 items-end max-w-[60%]", children: [
2046
2072
  /* @__PURE__ */ jsx61("div", { className: "flex-1", children: /* @__PURE__ */ jsx61(
2047
2073
  DefaultLabel,
2048
2074
  {
@@ -2066,7 +2092,7 @@ function DefaultSettingsWebauthn({
2066
2092
  }
2067
2093
  ) : null
2068
2094
  ] }),
2069
- hasRemoveButtons ? /* @__PURE__ */ jsxs36("div", { className: "flex flex-col gap-8", children: [
2095
+ hasRemoveButtons ? /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-8", children: [
2070
2096
  /* @__PURE__ */ jsx61(DefaultHorizontalDivider, {}),
2071
2097
  /* @__PURE__ */ jsx61("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2072
2098
  var _a, _b;
@@ -2074,13 +2100,13 @@ function DefaultSettingsWebauthn({
2074
2100
  const addedAt = "added_at" in context ? context.added_at : null;
2075
2101
  const diaplyName = "display_name" in context ? context.display_name : null;
2076
2102
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2077
- return /* @__PURE__ */ jsxs36(
2103
+ return /* @__PURE__ */ jsxs35(
2078
2104
  "div",
2079
2105
  {
2080
2106
  className: "flex justify-between gap-6",
2081
2107
  children: [
2082
2108
  /* @__PURE__ */ jsx61(key_default, { size: 32, className: "text-dialog-fg-default" }),
2083
- /* @__PURE__ */ jsxs36("div", { className: "flex-1 flex-col", children: [
2109
+ /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex-col", children: [
2084
2110
  /* @__PURE__ */ jsx61("p", { className: "text-sm font-medium text-dialog-fg-subtle", children: diaplyName }),
2085
2111
  /* @__PURE__ */ jsx61("span", { className: "text-sm text-dialog-fg-mute", children: keyId })
2086
2112
  ] }),
@@ -2244,7 +2270,7 @@ import {
2244
2270
  OryProvider as OryProvider4,
2245
2271
  OrySettingsCard
2246
2272
  } from "@ory/elements-react";
2247
- import { Fragment as Fragment4, jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
2273
+ import { Fragment as Fragment4, jsx as jsx66, jsxs as jsxs36 } from "react/jsx-runtime";
2248
2274
  function Settings({
2249
2275
  flow,
2250
2276
  config,
@@ -2259,7 +2285,7 @@ function Settings({
2259
2285
  flow,
2260
2286
  flowType: FlowType11.Settings,
2261
2287
  components,
2262
- children: children != null ? children : /* @__PURE__ */ jsxs37(Fragment4, { children: [
2288
+ children: children != null ? children : /* @__PURE__ */ jsxs36(Fragment4, { children: [
2263
2289
  /* @__PURE__ */ jsx66(HeadlessPageHeader, {}),
2264
2290
  /* @__PURE__ */ jsx66(OrySettingsCard, {})
2265
2291
  ] })
@@ -2293,6 +2319,7 @@ function Verification({
2293
2319
  );
2294
2320
  }
2295
2321
  export {
2322
+ DefaultButtonSocial,
2296
2323
  DefaultCard,
2297
2324
  DefaultCardContent,
2298
2325
  DefaultCardFooter,