@ory/elements-react 1.2.0-rc.0 → 1.2.0-rc.1

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.
@@ -91,12 +91,12 @@ function DefaultCardContent({ children }) {
91
91
  }
92
92
 
93
93
  // src/theme/default/components/card/footer.tsx
94
- var import_client_fetch29 = require("@ory/client-fetch");
94
+ var import_client_fetch31 = require("@ory/client-fetch");
95
95
  var import_elements_react3 = require("@ory/elements-react");
96
- var import_react_intl10 = require("react-intl");
96
+ var import_react_intl11 = require("react-intl");
97
97
 
98
98
  // src/components/card/two-step/state-select-method.tsx
99
- var import_client_fetch28 = require("@ory/client-fetch");
99
+ var import_client_fetch30 = require("@ory/client-fetch");
100
100
 
101
101
  // src/context/component.tsx
102
102
  var import_client_fetch = require("@ory/client-fetch");
@@ -108,6 +108,13 @@ var ComponentContext = (0, import_react.createContext)({
108
108
  nodeSorter: () => 0,
109
109
  groupSorter: () => 0
110
110
  });
111
+ function useComponents() {
112
+ const ctx = (0, import_react.useContext)(ComponentContext);
113
+ if (!ctx) {
114
+ throw new Error("useComponents must be used within a ComponentProvider");
115
+ }
116
+ return ctx.components;
117
+ }
111
118
  var defaultGroupOrder = [
112
119
  import_client_fetch.UiNodeGroupEnum.Default,
113
120
  import_client_fetch.UiNodeGroupEnum.Profile,
@@ -139,6 +146,33 @@ function isGroupImmediateSubmit(group) {
139
146
  var import_client_fetch2 = require("@ory/client-fetch");
140
147
  var import_client_fetch3 = require("@ory/client-fetch");
141
148
  var import_react2 = require("react");
149
+ function triggerToWindowCall(trigger) {
150
+ if (!trigger) {
151
+ return;
152
+ }
153
+ const fn = triggerToFunction(trigger);
154
+ if (fn) {
155
+ fn();
156
+ return;
157
+ }
158
+ let i = 0;
159
+ const ms = 100;
160
+ const interval = setInterval(() => {
161
+ i++;
162
+ if (i > 100) {
163
+ clearInterval(interval);
164
+ throw new Error(
165
+ "Unable to load Ory's WebAuthn script. Is it being blocked or otherwise failing to load? If you are running an old version of Ory Elements, please upgrade. For more information, please check your browser's developer console."
166
+ );
167
+ }
168
+ const fn2 = triggerToFunction(trigger);
169
+ if (fn2) {
170
+ clearInterval(interval);
171
+ return fn2();
172
+ }
173
+ }, ms);
174
+ return;
175
+ }
142
176
  function triggerToFunction(trigger) {
143
177
  if (typeof window === "undefined") {
144
178
  console.debug(
@@ -269,8 +303,8 @@ var OryConfigurationContext = (0, import_react5.createContext)({
269
303
  });
270
304
 
271
305
  // src/context/intl-context.tsx
272
- var import_react8 = require("react");
273
- var import_react_intl8 = require("react-intl");
306
+ var import_react12 = require("react");
307
+ var import_react_intl9 = require("react-intl");
274
308
 
275
309
  // src/components/form/form.tsx
276
310
  var import_client_fetch16 = require("@ory/client-fetch");
@@ -312,8 +346,7 @@ var import_jsx_runtime7 = require("react/jsx-runtime");
312
346
  var import_jsx_runtime8 = require("react/jsx-runtime");
313
347
 
314
348
  // src/components/form/social.tsx
315
- var import_client_fetch19 = require("@ory/client-fetch");
316
- var import_react_hook_form4 = require("react-hook-form");
349
+ var import_client_fetch23 = require("@ory/client-fetch");
317
350
 
318
351
  // src/components/form/form-provider.tsx
319
352
  var import_client_fetch18 = require("@ory/client-fetch");
@@ -325,67 +358,190 @@ var import_client_fetch17 = require("@ory/client-fetch");
325
358
  // src/components/form/form-provider.tsx
326
359
  var import_jsx_runtime9 = require("react/jsx-runtime");
327
360
 
328
- // src/components/form/social.tsx
329
- var import_jsx_runtime10 = require("react/jsx-runtime");
361
+ // src/components/form/nodes/node.tsx
362
+ var import_client_fetch22 = require("@ory/client-fetch");
330
363
 
331
- // src/components/form/settings-section.tsx
332
- var import_react_hook_form5 = require("react-hook-form");
333
- var import_jsx_runtime11 = require("react/jsx-runtime");
364
+ // src/util/utilFixSDKTypesHelper.ts
365
+ function isUiNodeInput(node) {
366
+ return node.type === "input";
367
+ }
368
+ function isUiNodeImage(node) {
369
+ return node.type === "img";
370
+ }
371
+ function isUiNodeAnchor(node) {
372
+ return node.type === "a";
373
+ }
374
+ function isUiNodeText(node) {
375
+ return node.type === "text";
376
+ }
377
+ function isUiNodeScript(node) {
378
+ return node.type === "script";
379
+ }
334
380
 
335
- // src/components/generic/divider.tsx
336
- var import_client_fetch20 = require("@ory/client-fetch");
337
- var import_jsx_runtime12 = require("react/jsx-runtime");
381
+ // src/components/form/nodes/input.tsx
382
+ var import_client_fetch21 = require("@ory/client-fetch");
383
+ var import_react9 = require("react");
384
+ var import_react_hook_form10 = require("react-hook-form");
338
385
 
339
- // src/components/generic/page-header.tsx
340
- var import_jsx_runtime13 = require("react/jsx-runtime");
386
+ // src/components/form/nodes/renderer/consent-checkbox-renderer.tsx
387
+ var import_react6 = require("react");
388
+ var import_react_hook_form4 = require("react-hook-form");
389
+ var import_jsx_runtime10 = require("react/jsx-runtime");
390
+ function ConsentCheckboxRenderer({ node }) {
391
+ const attributes = node.attributes;
392
+ const { Node: Node5 } = useComponents();
393
+ const { setValue, watch, formState } = (0, import_react_hook_form4.useFormContext)();
394
+ const scopes = watch("grant_scope");
395
+ const checked = (0, import_react6.useMemo)(() => {
396
+ if (Array.isArray(scopes)) {
397
+ return scopes.includes(attributes.value);
398
+ }
399
+ return false;
400
+ }, [scopes, attributes.value]);
401
+ const handleScopeChange = (checked2) => {
402
+ const scopes2 = watch("grant_scope");
403
+ if (Array.isArray(scopes2)) {
404
+ if (checked2) {
405
+ setValue(
406
+ "grant_scope",
407
+ Array.from(/* @__PURE__ */ new Set([...scopes2, attributes.value]))
408
+ );
409
+ } else {
410
+ setValue(
411
+ "grant_scope",
412
+ scopes2.filter((scope) => scope !== attributes.value)
413
+ );
414
+ }
415
+ }
416
+ };
417
+ const inputProps = {
418
+ value: attributes.value,
419
+ checked: checked === true,
420
+ disabled: attributes.disabled || !formState.isReady,
421
+ name: attributes.name
422
+ };
423
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
424
+ Node5.ConsentScopeCheckbox,
425
+ {
426
+ attributes,
427
+ node,
428
+ inputProps,
429
+ onCheckedChange: handleScopeChange
430
+ }
431
+ );
432
+ }
341
433
 
342
- // src/components/settings/settings-card.tsx
343
- var import_client_fetch23 = require("@ory/client-fetch");
344
- var import_react7 = require("react");
345
- var import_react_intl7 = require("react-intl");
346
- var import_sonner2 = require("sonner");
434
+ // src/components/form/nodes/node-button.tsx
435
+ var import_client_fetch20 = require("@ory/client-fetch");
347
436
 
348
- // src/util/showToast.tsx
349
- var import_sonner = require("sonner");
350
- var import_jsx_runtime14 = require("react/jsx-runtime");
437
+ // src/components/form/nodes/renderer/button-renderer.tsx
438
+ var import_react7 = require("react");
439
+ var import_react_hook_form5 = require("react-hook-form");
440
+ var import_usehooks_ts = require("usehooks-ts");
441
+ var import_jsx_runtime11 = require("react/jsx-runtime");
442
+ function ButtonRenderer({ node }) {
443
+ const { Node: Node5 } = useComponents();
444
+ const { formState, setValue } = (0, import_react_hook_form5.useFormContext)();
445
+ const [clicked, setClicked] = (0, import_usehooks_ts.useDebounceValue)(false, 100);
446
+ const handleClick = (0, import_react7.useCallback)(() => {
447
+ setValue(node.attributes.name, node.attributes.value);
448
+ setClicked(true);
449
+ if (node.attributes.onclickTrigger) {
450
+ triggerToWindowCall(node.attributes.onclickTrigger);
451
+ }
452
+ }, [node.attributes, setValue, setClicked]);
453
+ const buttonProps = {
454
+ type: node.attributes.type === "submit" ? "submit" : "button",
455
+ name: node.attributes.name,
456
+ value: node.attributes.value,
457
+ onClick: handleClick,
458
+ disabled: node.attributes.disabled || !formState.isReady || formState.isSubmitting
459
+ };
460
+ (0, import_react7.useEffect)(() => {
461
+ if (!formState.isSubmitting) {
462
+ setClicked(false);
463
+ }
464
+ }, [formState.isSubmitting, setClicked]);
465
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
466
+ Node5.Button,
467
+ {
468
+ attributes: node.attributes,
469
+ node,
470
+ buttonProps,
471
+ isSubmitting: clicked
472
+ }
473
+ );
474
+ }
351
475
 
352
- // src/components/form/nodes/input.tsx
353
- var import_client_fetch21 = require("@ory/client-fetch");
354
- var import_react6 = require("react");
476
+ // src/components/form/nodes/renderer/checkbox-renderer.tsx
355
477
  var import_react_hook_form6 = require("react-hook-form");
356
- var import_jsx_runtime15 = require("react/jsx-runtime");
478
+ var import_jsx_runtime12 = require("react/jsx-runtime");
479
+ function CheckboxRenderer({ node }) {
480
+ const attributes = node.attributes;
481
+ const { Node: Node5 } = useComponents();
482
+ const controller = (0, import_react_hook_form6.useController)({
483
+ name: attributes.name,
484
+ defaultValue: attributes.value,
485
+ disabled: attributes.disabled
486
+ });
487
+ const inputProps = {
488
+ ...controller.field,
489
+ type: "checkbox",
490
+ value: controller.field.value === true ? "true" : "false",
491
+ checked: controller.field.value === true,
492
+ disabled: attributes.disabled || !controller.formState.isReady
493
+ };
494
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
495
+ Node5.Label,
496
+ {
497
+ attributes: { ...attributes, label: void 0 },
498
+ node: { ...node, meta: { ...node.meta, label: void 0 } },
499
+ fieldError: controller.fieldState.error,
500
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
501
+ Node5.Checkbox,
502
+ {
503
+ attributes,
504
+ node,
505
+ inputProps,
506
+ onClick: () => {
507
+ }
508
+ }
509
+ )
510
+ }
511
+ );
512
+ }
357
513
 
358
- // src/components/form/nodes/node.tsx
359
- var import_client_fetch22 = require("@ory/client-fetch");
360
- var import_jsx_runtime16 = require("react/jsx-runtime");
514
+ // src/components/form/nodes/renderer/image-renderer.tsx
515
+ var import_jsx_runtime13 = require("react/jsx-runtime");
516
+ function ImageRenderer({ node }) {
517
+ const { Node: Node5 } = useComponents();
518
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Node5.Image, { node, attributes: node.attributes });
519
+ }
361
520
 
362
- // src/components/settings/oidc-settings.tsx
521
+ // src/components/form/nodes/renderer/input-renderer.tsx
522
+ var import_client_fetch19 = require("@ory/client-fetch");
363
523
  var import_react_intl2 = require("react-intl");
364
- var import_react_hook_form7 = require("react-hook-form");
365
- var import_jsx_runtime17 = require("react/jsx-runtime");
366
-
367
- // src/components/settings/passkey-settings.tsx
368
524
  var import_react_hook_form8 = require("react-hook-form");
369
- var import_react_intl3 = require("react-intl");
370
- var import_jsx_runtime18 = require("react/jsx-runtime");
371
-
372
- // src/components/settings/recovery-codes-settings.tsx
373
- var import_react_intl4 = require("react-intl");
374
- var import_react_hook_form9 = require("react-hook-form");
375
- var import_jsx_runtime19 = require("react/jsx-runtime");
376
-
377
- // src/components/settings/totp-settings.tsx
378
- var import_react_hook_form10 = require("react-hook-form");
379
- var import_react_intl5 = require("react-intl");
380
- var import_jsx_runtime20 = require("react/jsx-runtime");
381
-
382
- // src/components/settings/webauthn-settings.tsx
383
- var import_react_hook_form11 = require("react-hook-form");
384
- var import_react_intl6 = require("react-intl");
385
- var import_jsx_runtime21 = require("react/jsx-runtime");
386
525
 
387
- // src/components/settings/settings-card.tsx
388
- var import_jsx_runtime22 = require("react/jsx-runtime");
526
+ // src/util/nodes.ts
527
+ function findScreenSelectionButton(nodes) {
528
+ return nodes.find(
529
+ (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
530
+ );
531
+ }
532
+ function isDynamicText(text) {
533
+ return text.id === 1070002 && !!text.context && "name" in text.context && typeof text.context["name"] === "string";
534
+ }
535
+ function resolveLabel(text, intl) {
536
+ if (isDynamicText(text)) {
537
+ const field = text.context.name;
538
+ return intl.formatMessage({
539
+ id: `forms.label.${field}`,
540
+ defaultMessage: text.text
541
+ });
542
+ }
543
+ return uiTextToFormattedMessage(text, intl);
544
+ }
389
545
 
390
546
  // src/util/i18n/index.ts
391
547
  var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
@@ -442,6 +598,338 @@ var uiTextToFormattedMessage = ({ id, context = {}, text }, intl) => {
442
598
  contextInjectedMessage
443
599
  );
444
600
  };
601
+ function resolvePlaceholder(text, intl) {
602
+ const fallback = intl.formatMessage(
603
+ {
604
+ id: "input.placeholder",
605
+ defaultMessage: "Enter your {placeholder}"
606
+ },
607
+ {
608
+ placeholder: uiTextToFormattedMessage(text, intl)
609
+ }
610
+ );
611
+ if (isDynamicText(text)) {
612
+ const field = text.context.name;
613
+ return intl.formatMessage({
614
+ id: `forms.input.placeholder.${field}`,
615
+ defaultMessage: fallback
616
+ });
617
+ }
618
+ return fallback;
619
+ }
620
+
621
+ // src/components/form/nodes/hooks/useInputProps.tsx
622
+ var import_react_hook_form7 = require("react-hook-form");
623
+ function useInputProps(attributes, placeholder) {
624
+ const controller = (0, import_react_hook_form7.useController)({
625
+ name: attributes.name,
626
+ control: void 0,
627
+ disabled: attributes.disabled,
628
+ shouldUnregister: true
629
+ // TODO: consider adding rules based on attributes.required, attributes.pattern, etc.
630
+ });
631
+ const handleClick = () => {
632
+ if (attributes.onclickTrigger) {
633
+ triggerToWindowCall(attributes.onclickTrigger);
634
+ }
635
+ };
636
+ return {
637
+ ...controller.field,
638
+ type: attributes.type,
639
+ onClick: handleClick,
640
+ maxLength: attributes.maxlength,
641
+ autoComplete: attributes.autocomplete,
642
+ placeholder: placeholder || "",
643
+ disabled: attributes.disabled || !controller.formState.isReady
644
+ };
645
+ }
646
+
647
+ // src/components/form/nodes/renderer/input-renderer.tsx
648
+ var import_jsx_runtime14 = require("react/jsx-runtime");
649
+ function InputRenderer({ node }) {
650
+ const { Node: Node5 } = useComponents();
651
+ const label = (0, import_client_fetch19.getNodeLabel)(node);
652
+ const intl = (0, import_react_intl2.useIntl)();
653
+ const formState = (0, import_react_hook_form8.useFormState)();
654
+ const attributes = node.attributes;
655
+ const placeholder = label ? resolvePlaceholder(label, intl) : "";
656
+ const inputProps = useInputProps(attributes, placeholder);
657
+ const isPinCodeInput = attributes.name === "code" && node.group === "code" || attributes.name === "totp_code" && node.group === "totp";
658
+ const InputComponent = isPinCodeInput ? Node5.CodeInput : Node5.Input;
659
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
660
+ Node5.Label,
661
+ {
662
+ attributes,
663
+ node,
664
+ fieldError: formState.errors[attributes.name],
665
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
666
+ InputComponent,
667
+ {
668
+ attributes,
669
+ node,
670
+ onClick: inputProps.onClick,
671
+ inputProps
672
+ }
673
+ )
674
+ }
675
+ );
676
+ }
677
+
678
+ // src/components/form/nodes/renderer/sso-button-renderer.tsx
679
+ var import_react8 = require("react");
680
+ var import_react_hook_form9 = require("react-hook-form");
681
+ var import_usehooks_ts2 = require("usehooks-ts");
682
+ var import_jsx_runtime15 = require("react/jsx-runtime");
683
+ function extractProvider(context) {
684
+ if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
685
+ return context.provider;
686
+ }
687
+ return void 0;
688
+ }
689
+ function SSOButtonRenderer({ node }) {
690
+ var _a, _b;
691
+ const { Node: Node5 } = useComponents();
692
+ const attributes = node.attributes;
693
+ const {
694
+ setValue,
695
+ formState: { isSubmitting, isReady }
696
+ } = (0, import_react_hook_form9.useFormContext)();
697
+ const [clicked, setClicked] = (0, import_usehooks_ts2.useDebounceValue)(false, 100);
698
+ (0, import_react8.useEffect)(() => {
699
+ if (!isSubmitting) {
700
+ setClicked(false);
701
+ }
702
+ }, [isSubmitting, setClicked]);
703
+ const clickHandler = (0, import_react8.useCallback)(() => {
704
+ setValue("provider", attributes.value);
705
+ setValue("method", node.group);
706
+ setClicked(true);
707
+ }, [setValue, attributes.value, node.group, setClicked]);
708
+ const buttonProps = {
709
+ type: "submit",
710
+ name: attributes.name,
711
+ value: attributes.value,
712
+ onClick: clickHandler,
713
+ disabled: attributes.disabled || !isReady || isSubmitting
714
+ };
715
+ const provider = (_b = extractProvider((_a = node.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
716
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
717
+ Node5.SsoButton,
718
+ {
719
+ node,
720
+ attributes,
721
+ buttonProps,
722
+ provider,
723
+ isSubmitting: clicked
724
+ }
725
+ );
726
+ }
727
+
728
+ // src/components/form/nodes/renderer/text-renderer.tsx
729
+ var import_jsx_runtime16 = require("react/jsx-runtime");
730
+ function TextRenderer({ node }) {
731
+ const { Node: Node5 } = useComponents();
732
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Node5.Text, { node, attributes: node.attributes });
733
+ }
734
+
735
+ // src/components/form/nodes/renderer/index.ts
736
+ var NodeRenderer = {
737
+ Button: ButtonRenderer,
738
+ SsoButton: SSOButtonRenderer,
739
+ ConsentCheckbox: ConsentCheckboxRenderer,
740
+ Input: InputRenderer,
741
+ Checkbox: CheckboxRenderer,
742
+ Image: ImageRenderer,
743
+ Text: TextRenderer
744
+ };
745
+
746
+ // src/components/form/nodes/node-button.tsx
747
+ var import_jsx_runtime17 = require("react/jsx-runtime");
748
+ function NodeButton({ node }) {
749
+ var _a;
750
+ const isResendNode = ((_a = node.meta.label) == null ? void 0 : _a.id) === 1070008;
751
+ const isScreenSelectionNode = "name" in node.attributes && node.attributes.name === "screen";
752
+ if (isResendNode || isScreenSelectionNode) {
753
+ return null;
754
+ }
755
+ if (node.group === "oauth2_consent") {
756
+ return null;
757
+ }
758
+ const isSocial = (node.attributes.name === "provider" || node.attributes.name === "link") && (node.group === import_client_fetch20.UiNodeGroupEnum.Oidc || node.group === import_client_fetch20.UiNodeGroupEnum.Saml);
759
+ if (isSocial) {
760
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(NodeRenderer.SsoButton, { node });
761
+ }
762
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(NodeRenderer.Button, { node });
763
+ }
764
+
765
+ // src/components/form/nodes/renderer/hidden-input-renderer.tsx
766
+ var import_jsx_runtime18 = require("react/jsx-runtime");
767
+ function HiddenInputRenderer({ node }) {
768
+ const { Node: Node5 } = useComponents();
769
+ const attributes = node.attributes;
770
+ const inputProps = useInputProps(attributes);
771
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
772
+ Node5.Input,
773
+ {
774
+ inputProps,
775
+ attributes,
776
+ node,
777
+ onClick: () => {
778
+ }
779
+ }
780
+ );
781
+ }
782
+
783
+ // src/components/form/nodes/input.tsx
784
+ var import_jsx_runtime19 = require("react/jsx-runtime");
785
+ var NodeInput = ({
786
+ node,
787
+ attributes
788
+ }) => {
789
+ var _a;
790
+ const { setValue } = (0, import_react_hook_form10.useFormContext)();
791
+ const {
792
+ onloadTrigger,
793
+ // These properties do not exist on input fields so we remove them (as we already have handled them).
794
+ onclick: _ignoredOnclick,
795
+ onload: _ignoredOnload,
796
+ //
797
+ ...attrs
798
+ } = attributes;
799
+ const isResendNode = ((_a = node.meta.label) == null ? void 0 : _a.id) === 1070008;
800
+ const isScreenSelectionNode = "name" in node.attributes && node.attributes.name === "screen";
801
+ const setFormValue = () => {
802
+ if (attrs.value && !(isResendNode || isScreenSelectionNode || node.group === import_client_fetch21.UiNodeGroupEnum.Oauth2Consent)) {
803
+ setValue(attrs.name, attrs.value);
804
+ }
805
+ };
806
+ const hasRun = (0, import_react9.useRef)(false);
807
+ (0, import_react9.useEffect)(
808
+ () => {
809
+ setFormValue();
810
+ if (!hasRun.current && onloadTrigger) {
811
+ hasRun.current = true;
812
+ triggerToWindowCall(onloadTrigger);
813
+ }
814
+ },
815
+ // TODO(jonas): make sure onloadTrigger is stable
816
+ // eslint-disable-next-line react-hooks/exhaustive-deps -- ignore onloadTrigger for now, until we make sure this is stable
817
+ []
818
+ );
819
+ switch (attributes.type) {
820
+ case import_client_fetch21.UiNodeInputAttributesTypeEnum.Submit:
821
+ case import_client_fetch21.UiNodeInputAttributesTypeEnum.Button: {
822
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(NodeButton, { node });
823
+ }
824
+ case import_client_fetch21.UiNodeInputAttributesTypeEnum.DatetimeLocal:
825
+ throw new Error("Not implemented");
826
+ case import_client_fetch21.UiNodeInputAttributesTypeEnum.Checkbox:
827
+ if (node.group === "oauth2_consent" && node.attributes.node_type === "input") {
828
+ switch (node.attributes.name) {
829
+ case "grant_scope":
830
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ConsentCheckboxRenderer, { node });
831
+ default:
832
+ return null;
833
+ }
834
+ }
835
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CheckboxRenderer, { node });
836
+ case import_client_fetch21.UiNodeInputAttributesTypeEnum.Hidden:
837
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(HiddenInputRenderer, { node });
838
+ default:
839
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(InputRenderer, { node });
840
+ }
841
+ };
842
+
843
+ // src/components/form/nodes/node.tsx
844
+ var import_jsx_runtime20 = require("react/jsx-runtime");
845
+ var ignoredScriptGroups = ["captcha"];
846
+ var NodeBase = ({ node }) => {
847
+ const { Node: Node5 } = useComponents();
848
+ if (node.group === import_client_fetch22.UiNodeGroupEnum.Captcha) {
849
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Node5.Captcha, { node });
850
+ }
851
+ if (isUiNodeImage(node)) {
852
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NodeRenderer.Image, { node });
853
+ } else if (isUiNodeText(node)) {
854
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NodeRenderer.Text, { node });
855
+ } else if (isUiNodeInput(node)) {
856
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(NodeInput, { node, attributes: node.attributes });
857
+ } else if (isUiNodeAnchor(node)) {
858
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Node5.Anchor, { attributes: node.attributes, node });
859
+ } else if (isUiNodeScript(node) && !ignoredScriptGroups.includes(node.group)) {
860
+ const {
861
+ crossorigin,
862
+ referrerpolicy,
863
+ node_type: _nodeType,
864
+ ...attributes
865
+ } = node.attributes;
866
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
867
+ "script",
868
+ {
869
+ crossOrigin: crossorigin,
870
+ referrerPolicy: referrerpolicy,
871
+ ...attributes
872
+ }
873
+ );
874
+ }
875
+ return null;
876
+ };
877
+ var Node = Object.assign(NodeBase, NodeRenderer);
878
+
879
+ // src/components/form/social.tsx
880
+ var import_jsx_runtime21 = require("react/jsx-runtime");
881
+
882
+ // src/components/form/settings-section.tsx
883
+ var import_react_hook_form11 = require("react-hook-form");
884
+ var import_jsx_runtime22 = require("react/jsx-runtime");
885
+
886
+ // src/components/form/useResendCode.ts
887
+ var import_react10 = require("react");
888
+
889
+ // src/components/generic/divider.tsx
890
+ var import_client_fetch24 = require("@ory/client-fetch");
891
+ var import_jsx_runtime23 = require("react/jsx-runtime");
892
+
893
+ // src/components/generic/page-header.tsx
894
+ var import_jsx_runtime24 = require("react/jsx-runtime");
895
+
896
+ // src/components/settings/settings-card.tsx
897
+ var import_client_fetch25 = require("@ory/client-fetch");
898
+ var import_react11 = require("react");
899
+ var import_react_intl8 = require("react-intl");
900
+ var import_sonner2 = require("sonner");
901
+
902
+ // src/util/showToast.tsx
903
+ var import_sonner = require("sonner");
904
+ var import_jsx_runtime25 = require("react/jsx-runtime");
905
+
906
+ // src/components/settings/oidc-settings.tsx
907
+ var import_react_hook_form12 = require("react-hook-form");
908
+ var import_react_intl3 = require("react-intl");
909
+ var import_jsx_runtime26 = require("react/jsx-runtime");
910
+
911
+ // src/components/settings/passkey-settings.tsx
912
+ var import_react_hook_form13 = require("react-hook-form");
913
+ var import_react_intl4 = require("react-intl");
914
+ var import_jsx_runtime27 = require("react/jsx-runtime");
915
+
916
+ // src/components/settings/recovery-codes-settings.tsx
917
+ var import_react_hook_form14 = require("react-hook-form");
918
+ var import_react_intl5 = require("react-intl");
919
+ var import_jsx_runtime28 = require("react/jsx-runtime");
920
+
921
+ // src/components/settings/totp-settings.tsx
922
+ var import_react_hook_form15 = require("react-hook-form");
923
+ var import_react_intl6 = require("react-intl");
924
+ var import_jsx_runtime29 = require("react/jsx-runtime");
925
+
926
+ // src/components/settings/webauthn-settings.tsx
927
+ var import_react_hook_form16 = require("react-hook-form");
928
+ var import_react_intl7 = require("react-intl");
929
+ var import_jsx_runtime30 = require("react/jsx-runtime");
930
+
931
+ // src/components/settings/settings-card.tsx
932
+ var import_jsx_runtime31 = require("react/jsx-runtime");
445
933
 
446
934
  // src/locales/af.json
447
935
  var af_default = {
@@ -25265,7 +25753,7 @@ var OryLocales = Object.freeze({
25265
25753
  });
25266
25754
 
25267
25755
  // src/context/intl-context.tsx
25268
- var import_jsx_runtime23 = require("react/jsx-runtime");
25756
+ var import_jsx_runtime32 = require("react/jsx-runtime");
25269
25757
  function mergeTranslations(locale, customTranslations) {
25270
25758
  return Object.keys(customTranslations).reduce((acc, key) => {
25271
25759
  var _a;
@@ -25281,104 +25769,84 @@ var IntlProvider = ({
25281
25769
  customTranslations
25282
25770
  }) => {
25283
25771
  var _a;
25284
- const existingIntlContext = (0, import_react8.useContext)(import_react_intl8.IntlContext);
25772
+ const existingIntlContext = (0, import_react12.useContext)(import_react_intl9.IntlContext);
25285
25773
  const messages = mergeTranslations(locale, (_a = customTranslations == null ? void 0 : customTranslations[locale]) != null ? _a : {});
25286
25774
  if (existingIntlContext) {
25287
25775
  return children;
25288
25776
  }
25289
- const cache = (0, import_react_intl8.createIntlCache)();
25290
- const intl = (0, import_react_intl8.createIntl)({ locale, messages }, cache);
25291
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_intl8.RawIntlProvider, { value: intl, children });
25777
+ const cache = (0, import_react_intl9.createIntlCache)();
25778
+ const intl = (0, import_react_intl9.createIntl)({ locale, messages }, cache);
25779
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_intl9.RawIntlProvider, { value: intl, children });
25292
25780
  };
25293
25781
 
25294
25782
  // src/context/provider.tsx
25295
- var import_jsx_runtime24 = require("react/jsx-runtime");
25783
+ var import_jsx_runtime33 = require("react/jsx-runtime");
25296
25784
 
25297
25785
  // src/components/card/header.tsx
25298
- var import_jsx_runtime25 = require("react/jsx-runtime");
25786
+ var import_jsx_runtime34 = require("react/jsx-runtime");
25299
25787
 
25300
25788
  // src/components/card/card.tsx
25301
- var import_jsx_runtime26 = require("react/jsx-runtime");
25789
+ var import_jsx_runtime35 = require("react/jsx-runtime");
25302
25790
 
25303
25791
  // src/components/card/footer.tsx
25304
- var import_jsx_runtime27 = require("react/jsx-runtime");
25792
+ var import_jsx_runtime36 = require("react/jsx-runtime");
25305
25793
 
25306
25794
  // src/components/card/content.tsx
25307
- var import_jsx_runtime28 = require("react/jsx-runtime");
25795
+ var import_jsx_runtime37 = require("react/jsx-runtime");
25308
25796
 
25309
25797
  // src/components/card/card-two-step.tsx
25310
- var import_client_fetch26 = require("@ory/client-fetch");
25798
+ var import_client_fetch28 = require("@ory/client-fetch");
25311
25799
 
25312
25800
  // src/components/card/two-step/state-method-active.tsx
25313
- var import_client_fetch24 = require("@ory/client-fetch");
25314
- var import_jsx_runtime29 = require("react/jsx-runtime");
25801
+ var import_client_fetch26 = require("@ory/client-fetch");
25802
+ var import_jsx_runtime38 = require("react/jsx-runtime");
25315
25803
 
25316
25804
  // src/components/card/two-step/state-provide-identifier.tsx
25317
- var import_client_fetch25 = require("@ory/client-fetch");
25318
- var import_jsx_runtime30 = require("react/jsx-runtime");
25805
+ var import_client_fetch27 = require("@ory/client-fetch");
25806
+ var import_jsx_runtime39 = require("react/jsx-runtime");
25319
25807
 
25320
25808
  // src/components/card/card-two-step.tsx
25321
25809
  var import_elements_react = require("@ory/elements-react");
25322
- var import_jsx_runtime31 = require("react/jsx-runtime");
25810
+ var import_jsx_runtime40 = require("react/jsx-runtime");
25323
25811
 
25324
25812
  // src/components/card/card-consent.tsx
25325
- var import_client_fetch27 = require("@ory/client-fetch");
25326
- var import_jsx_runtime32 = require("react/jsx-runtime");
25813
+ var import_client_fetch29 = require("@ory/client-fetch");
25814
+ var import_jsx_runtime41 = require("react/jsx-runtime");
25327
25815
 
25328
25816
  // src/components/card/two-step/state-select-method.tsx
25329
- var import_react_intl9 = require("react-intl");
25817
+ var import_react_intl10 = require("react-intl");
25330
25818
 
25331
25819
  // src/components/card/two-step/list-methods.tsx
25332
25820
  var import_elements_react2 = require("@ory/elements-react");
25333
- var import_react_hook_form12 = require("react-hook-form");
25334
- var import_jsx_runtime33 = require("react/jsx-runtime");
25821
+ var import_react_hook_form17 = require("react-hook-form");
25822
+ var import_jsx_runtime42 = require("react/jsx-runtime");
25335
25823
 
25336
25824
  // src/components/card/two-step/state-select-method.tsx
25337
- var import_jsx_runtime34 = require("react/jsx-runtime");
25825
+ var import_jsx_runtime43 = require("react/jsx-runtime");
25338
25826
  function toAuthMethodPickerOptions(visibleGroups) {
25339
25827
  return Object.fromEntries(
25340
- Object.values(import_client_fetch28.UiNodeGroupEnum).filter((group) => {
25828
+ Object.values(import_client_fetch30.UiNodeGroupEnum).filter((group) => {
25341
25829
  var _a;
25342
25830
  return (_a = visibleGroups[group]) == null ? void 0 : _a.length;
25343
25831
  }).filter(
25344
25832
  (group) => ![
25345
- import_client_fetch28.UiNodeGroupEnum.Oidc,
25346
- import_client_fetch28.UiNodeGroupEnum.Saml,
25347
- import_client_fetch28.UiNodeGroupEnum.Default,
25348
- import_client_fetch28.UiNodeGroupEnum.IdentifierFirst,
25349
- import_client_fetch28.UiNodeGroupEnum.Profile,
25350
- import_client_fetch28.UiNodeGroupEnum.Captcha
25833
+ import_client_fetch30.UiNodeGroupEnum.Oidc,
25834
+ import_client_fetch30.UiNodeGroupEnum.Saml,
25835
+ import_client_fetch30.UiNodeGroupEnum.Default,
25836
+ import_client_fetch30.UiNodeGroupEnum.IdentifierFirst,
25837
+ import_client_fetch30.UiNodeGroupEnum.Profile,
25838
+ import_client_fetch30.UiNodeGroupEnum.Captcha
25351
25839
  ].includes(group)
25352
25840
  ).map((g) => [g, {}])
25353
25841
  );
25354
25842
  }
25355
25843
 
25356
- // src/util/nodes.ts
25357
- function findScreenSelectionButton(nodes) {
25358
- return nodes.find(
25359
- (node) => node.attributes.node_type === "input" && node.attributes.type === "submit" && node.attributes.name === "screen"
25360
- );
25361
- }
25362
- function isDynamicText(text) {
25363
- return text.id === 1070002 && !!text.context && "name" in text.context && typeof text.context["name"] === "string";
25364
- }
25365
- function resolveLabel(text, intl) {
25366
- if (isDynamicText(text)) {
25367
- const field = text.context.name;
25368
- return intl.formatMessage({
25369
- id: `forms.label.${field}`,
25370
- defaultMessage: text.text
25371
- });
25372
- }
25373
- return uiTextToFormattedMessage(text, intl);
25374
- }
25375
-
25376
25844
  // src/theme/default/utils/logout.ts
25377
- var import_react9 = require("react");
25845
+ var import_react13 = require("react");
25378
25846
  function useClientLogout(config) {
25379
- const [logoutFlow, setLogoutFlow] = (0, import_react9.useState)();
25380
- const [isLoading, setIsLoading] = (0, import_react9.useState)(true);
25381
- const fetchLogoutFlow = (0, import_react9.useCallback)(async () => {
25847
+ const [logoutFlow, setLogoutFlow] = (0, import_react13.useState)();
25848
+ const [isLoading, setIsLoading] = (0, import_react13.useState)(true);
25849
+ const fetchLogoutFlow = (0, import_react13.useCallback)(async () => {
25382
25850
  try {
25383
25851
  const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow().catch((err) => {
25384
25852
  var _a;
@@ -25392,7 +25860,7 @@ function useClientLogout(config) {
25392
25860
  setIsLoading(false);
25393
25861
  }
25394
25862
  }, [config.sdk.url]);
25395
- (0, import_react9.useEffect)(() => {
25863
+ (0, import_react13.useEffect)(() => {
25396
25864
  void fetchLogoutFlow();
25397
25865
  }, [fetchLogoutFlow]);
25398
25866
  return { logoutFlow, didLoad: !isLoading };
@@ -25440,20 +25908,20 @@ function appendReturnToAndIdentitySchema(url, returnTo, identitySchema) {
25440
25908
  }
25441
25909
 
25442
25910
  // src/theme/default/components/card/footer.tsx
25443
- var import_jsx_runtime35 = require("react/jsx-runtime");
25911
+ var import_jsx_runtime44 = require("react/jsx-runtime");
25444
25912
  function DefaultCardFooter() {
25445
25913
  const oryFlow = (0, import_elements_react3.useOryFlow)();
25446
25914
  switch (oryFlow.flowType) {
25447
- case import_client_fetch29.FlowType.Login:
25448
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, { flow: oryFlow.flow });
25449
- case import_client_fetch29.FlowType.Registration:
25450
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RegistrationCardFooter, {});
25451
- case import_client_fetch29.FlowType.Recovery:
25452
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RecoveryCardFooter, {});
25453
- case import_client_fetch29.FlowType.Verification:
25454
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(VerificationCardFooter, {});
25455
- case import_client_fetch29.FlowType.OAuth2Consent:
25456
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
25915
+ case import_client_fetch31.FlowType.Login:
25916
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LoginCardFooter, { flow: oryFlow.flow });
25917
+ case import_client_fetch31.FlowType.Registration:
25918
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RegistrationCardFooter, {});
25919
+ case import_client_fetch31.FlowType.Recovery:
25920
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RecoveryCardFooter, {});
25921
+ case import_client_fetch31.FlowType.Verification:
25922
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(VerificationCardFooter, {});
25923
+ case import_client_fetch31.FlowType.OAuth2Consent:
25924
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
25457
25925
  default:
25458
25926
  return null;
25459
25927
  }
@@ -25478,7 +25946,7 @@ function shouldShowLogoutButton(flow, formState, authMethods) {
25478
25946
  function LoginCardFooter({ flow }) {
25479
25947
  const { dispatchFormState, formState } = (0, import_elements_react3.useOryFlow)();
25480
25948
  const config = (0, import_elements_react3.useOryConfiguration)();
25481
- const intl = (0, import_react_intl10.useIntl)();
25949
+ const intl = (0, import_react_intl11.useIntl)();
25482
25950
  const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
25483
25951
  let returnTo = config.project.default_redirect_url;
25484
25952
  if (flow.return_to) {
@@ -25487,20 +25955,20 @@ function LoginCardFooter({ flow }) {
25487
25955
  if (!returnTo) {
25488
25956
  returnTo = restartFlowUrl(
25489
25957
  flow,
25490
- `${config.sdk.url}/self-service/${import_client_fetch29.FlowType.Login}/browser`
25958
+ `${config.sdk.url}/self-service/${import_client_fetch31.FlowType.Login}/browser`
25491
25959
  );
25492
25960
  }
25493
25961
  if (shouldShowLogoutButton(flow, formState, authMethods)) {
25494
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LogoutButton, { returnTo });
25962
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(LogoutButton, { returnTo });
25495
25963
  }
25496
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
25497
- formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
25964
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
25965
+ formState.current === "provide_identifier" && config.project.registration_enabled && /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
25498
25966
  intl.formatMessage({
25499
25967
  id: "login.registration-label",
25500
25968
  defaultMessage: "No account?"
25501
25969
  }),
25502
25970
  " ",
25503
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25971
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25504
25972
  "a",
25505
25973
  {
25506
25974
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25513,7 +25981,7 @@ function LoginCardFooter({ flow }) {
25513
25981
  }
25514
25982
  )
25515
25983
  ] }),
25516
- authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25984
+ authMethods.length > 1 && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25517
25985
  "button",
25518
25986
  {
25519
25987
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25528,7 +25996,7 @@ function LoginCardFooter({ flow }) {
25528
25996
  })
25529
25997
  }
25530
25998
  ) }),
25531
- authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25999
+ authMethods.length === 1 && authMethods[0] === "code" && formState.current === "method_active" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25532
26000
  "a",
25533
26001
  {
25534
26002
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25543,14 +26011,14 @@ function LoginCardFooter({ flow }) {
25543
26011
  }
25544
26012
  function LogoutButton({ returnTo }) {
25545
26013
  const config = (0, import_elements_react3.useOryConfiguration)();
25546
- const intl = (0, import_react_intl10.useIntl)();
26014
+ const intl = (0, import_react_intl11.useIntl)();
25547
26015
  const { logoutFlow: logout, didLoad: didLoadLogout } = useClientLogout(config);
25548
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
26016
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
25549
26017
  intl.formatMessage({
25550
26018
  id: "login.2fa.go-back"
25551
26019
  }),
25552
26020
  " ",
25553
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
26021
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25554
26022
  "a",
25555
26023
  {
25556
26024
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25567,7 +26035,7 @@ function LogoutButton({ returnTo }) {
25567
26035
  ] });
25568
26036
  }
25569
26037
  function RegistrationCardFooter() {
25570
- const intl = (0, import_react_intl10.useIntl)();
26038
+ const intl = (0, import_react_intl11.useIntl)();
25571
26039
  const { flow, formState, dispatchFormState } = (0, import_elements_react3.useOryFlow)();
25572
26040
  const config = (0, import_elements_react3.useOryConfiguration)();
25573
26041
  const visibleGroups = useNodeGroupsWithVisibleNodes(flow.ui.nodes);
@@ -25578,7 +26046,7 @@ function RegistrationCardFooter() {
25578
26046
  if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
25579
26047
  return null;
25580
26048
  }
25581
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
26049
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25582
26050
  "button",
25583
26051
  {
25584
26052
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25597,13 +26065,13 @@ function RegistrationCardFooter() {
25597
26065
  ) });
25598
26066
  case "select_method":
25599
26067
  default:
25600
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
26068
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "leading-normal font-normal text-interface-foreground-default-primary antialiased", children: [
25601
26069
  intl.formatMessage({
25602
26070
  id: "registration.login-label",
25603
26071
  defaultMessage: "Already have an account?"
25604
26072
  }),
25605
26073
  " ",
25606
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
26074
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
25607
26075
  "a",
25608
26076
  {
25609
26077
  className: "text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
@@ -25626,41 +26094,26 @@ function VerificationCardFooter() {
25626
26094
  }
25627
26095
  function ConsentCardFooter({ flow }) {
25628
26096
  var _a, _b;
25629
- const { Node: Node2 } = (0, import_elements_react3.useComponents)();
25630
26097
  const rememberNode = findNode(flow.ui.nodes, {
25631
26098
  group: "oauth2_consent",
25632
26099
  node_type: "input",
25633
26100
  name: "remember"
25634
26101
  });
25635
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col gap-8", children: [
25636
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
25637
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { className: "leading-normal font-medium text-interface-foreground-default-secondary", children: [
26102
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col gap-8", children: [
26103
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
26104
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("p", { className: "leading-normal font-medium text-interface-foreground-default-secondary", children: [
25638
26105
  "Make sure you trust ",
25639
26106
  (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
25640
26107
  ] }),
25641
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: "You may be sharing sensitive information with this site or application." })
26108
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: "You may be sharing sensitive information with this site or application." })
25642
26109
  ] }),
25643
- rememberNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25644
- Node2.Checkbox,
25645
- {
25646
- attributes: rememberNode.attributes,
25647
- node: rememberNode
25648
- }
25649
- ),
25650
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: flow.ui.nodes.filter(
25651
- (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
26110
+ rememberNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_elements_react3.Node.Checkbox, { node: rememberNode }),
26111
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: flow.ui.nodes.filter(
26112
+ (n) => n.attributes.node_type === "input" && n.attributes.type === "submit" && isUiNodeInput(n)
25652
26113
  ).map((n) => {
25653
- const attributes = n.attributes;
25654
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
25655
- Node2.Button,
25656
- {
25657
- node: n,
25658
- attributes
25659
- },
25660
- attributes.value
25661
- );
26114
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_elements_react3.Node.Button, { node: n }, n.attributes.value);
25662
26115
  }) }),
25663
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
26116
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
25664
26117
  "Authorizing will redirect to",
25665
26118
  " ",
25666
26119
  (_b = flow.consent_request.client) == null ? void 0 : _b.client_name
@@ -25672,8 +26125,8 @@ function ConsentCardFooter({ flow }) {
25672
26125
  var import_elements_react5 = require("@ory/elements-react");
25673
26126
 
25674
26127
  // src/theme/default/utils/constructCardHeader.ts
25675
- var import_client_fetch30 = require("@ory/client-fetch");
25676
- var import_react_intl11 = require("react-intl");
26128
+ var import_client_fetch32 = require("@ory/client-fetch");
26129
+ var import_react_intl12 = require("react-intl");
25677
26130
  function joinWithCommaOr(list, orText = "or") {
25678
26131
  if (list.length === 0) {
25679
26132
  return ".";
@@ -25687,9 +26140,9 @@ function joinWithCommaOr(list, orText = "or") {
25687
26140
  function useCardHeaderText(container, opts) {
25688
26141
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
25689
26142
  const nodes = container.nodes;
25690
- const intl = (0, import_react_intl11.useIntl)();
26143
+ const intl = (0, import_react_intl12.useIntl)();
25691
26144
  switch (opts.flowType) {
25692
- case import_client_fetch30.FlowType.Recovery: {
26145
+ case import_client_fetch32.FlowType.Recovery: {
25693
26146
  const recoveryV2Message = (_a = container.messages) == null ? void 0 : _a.find(
25694
26147
  (m) => [1060006, 1060005, 1060004].includes(m.id)
25695
26148
  );
@@ -25723,7 +26176,7 @@ function useCardHeaderText(container, opts) {
25723
26176
  })
25724
26177
  };
25725
26178
  }
25726
- case import_client_fetch30.FlowType.Settings:
26179
+ case import_client_fetch32.FlowType.Settings:
25727
26180
  return {
25728
26181
  title: intl.formatMessage({
25729
26182
  id: "settings.title"
@@ -25732,7 +26185,7 @@ function useCardHeaderText(container, opts) {
25732
26185
  id: "settings.subtitle"
25733
26186
  })
25734
26187
  };
25735
- case import_client_fetch30.FlowType.Verification:
26188
+ case import_client_fetch32.FlowType.Verification:
25736
26189
  if (nodes.find(
25737
26190
  (node) => "name" in node.attributes && node.attributes.name === "code"
25738
26191
  )) {
@@ -25754,7 +26207,7 @@ function useCardHeaderText(container, opts) {
25754
26207
  id: "verification.subtitle"
25755
26208
  })
25756
26209
  };
25757
- case import_client_fetch30.FlowType.Login: {
26210
+ case import_client_fetch32.FlowType.Login: {
25758
26211
  const accountLinkingMessage = (_b = container.messages) == null ? void 0 : _b.find(
25759
26212
  (m) => m.id === 1010016
25760
26213
  );
@@ -25777,7 +26230,7 @@ function useCardHeaderText(container, opts) {
25777
26230
  const parts = [];
25778
26231
  if (nodes.find((node) => node.group === "password")) {
25779
26232
  switch (opts.flowType) {
25780
- case import_client_fetch30.FlowType.Registration:
26233
+ case import_client_fetch32.FlowType.Registration:
25781
26234
  parts.push(
25782
26235
  intl.formatMessage(
25783
26236
  { id: "card.header.parts.password.registration" },
@@ -25820,7 +26273,7 @@ function useCardHeaderText(container, opts) {
25820
26273
  }
25821
26274
  if (nodes.find((node) => node.group === "identifier_first")) {
25822
26275
  const identifier = nodes.find(
25823
- (node) => (0, import_client_fetch30.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
26276
+ (node) => (0, import_client_fetch32.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("identifier") && node.attributes.type !== "hidden"
25824
26277
  );
25825
26278
  if (identifier) {
25826
26279
  parts.push(
@@ -25837,7 +26290,7 @@ function useCardHeaderText(container, opts) {
25837
26290
  }
25838
26291
  if (nodes.some((node) => node.group === "profile")) {
25839
26292
  const identifier = nodes.find(
25840
- (node) => (0, import_client_fetch30.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("traits.") && node.attributes.type !== "hidden"
26293
+ (node) => (0, import_client_fetch32.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("traits.") && node.attributes.type !== "hidden"
25841
26294
  );
25842
26295
  if (identifier) {
25843
26296
  parts.push(
@@ -25853,7 +26306,7 @@ function useCardHeaderText(container, opts) {
25853
26306
  }
25854
26307
  }
25855
26308
  switch (opts.flowType) {
25856
- case import_client_fetch30.FlowType.Login: {
26309
+ case import_client_fetch32.FlowType.Login: {
25857
26310
  const codeMethodNode = findNode(container.nodes, {
25858
26311
  node_type: "input",
25859
26312
  group: "code",
@@ -25902,7 +26355,7 @@ function useCardHeaderText(container, opts) {
25902
26355
  ) : ""
25903
26356
  };
25904
26357
  }
25905
- case import_client_fetch30.FlowType.Registration: {
26358
+ case import_client_fetch32.FlowType.Registration: {
25906
26359
  const codeMethodNode = findNode(container.nodes, {
25907
26360
  node_type: "input",
25908
26361
  group: "code",
@@ -25927,7 +26380,7 @@ function useCardHeaderText(container, opts) {
25927
26380
  ) : ""
25928
26381
  };
25929
26382
  }
25930
- case import_client_fetch30.FlowType.OAuth2Consent:
26383
+ case import_client_fetch32.FlowType.OAuth2Consent:
25931
26384
  return {
25932
26385
  title: intl.formatMessage(
25933
26386
  {
@@ -25954,10 +26407,10 @@ function useCardHeaderText(container, opts) {
25954
26407
  }
25955
26408
 
25956
26409
  // src/theme/default/components/card/current-identifier-button.tsx
25957
- var import_client_fetch31 = require("@ory/client-fetch");
26410
+ var import_client_fetch33 = require("@ory/client-fetch");
25958
26411
  var import_elements_react4 = require("@ory/elements-react");
25959
- var import_react10 = require("react");
25960
- var import_react_hook_form13 = require("react-hook-form");
26412
+ var import_react14 = require("react");
26413
+ var import_react_hook_form18 = require("react-hook-form");
25961
26414
 
25962
26415
  // src/theme/default/utils/attributes.ts
25963
26416
  function omit(obj, keys) {
@@ -25986,24 +26439,24 @@ function omitInputAttributes({
25986
26439
 
25987
26440
  // src/theme/default/assets/icons/arrow-left.svg
25988
26441
  var React3 = __toESM(require("react"));
25989
- var import_jsx_runtime36 = require("react/jsx-runtime");
26442
+ var import_jsx_runtime45 = require("react/jsx-runtime");
25990
26443
  var SvgArrowLeft = (props) => {
25991
26444
  var _a, _b;
25992
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
26445
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12.325h14m-14 0 6 6m-6-6 6-6" }) });
25993
26446
  };
25994
26447
  var arrow_left_default = SvgArrowLeft;
25995
26448
 
25996
26449
  // src/theme/default/components/card/current-identifier-button.tsx
25997
- var import_jsx_runtime37 = require("react/jsx-runtime");
26450
+ var import_jsx_runtime46 = require("react/jsx-runtime");
25998
26451
  function DefaultCurrentIdentifierButton() {
25999
26452
  var _a;
26000
26453
  const { flow, flowType, formState } = (0, import_elements_react4.useOryFlow)();
26001
- const { setValue, getValues, watch } = (0, import_react_hook_form13.useFormContext)();
26002
- const [turnstileResponse, setTurnstileResponse] = (0, import_react10.useState)();
26454
+ const { setValue, getValues, watch } = (0, import_react_hook_form18.useFormContext)();
26455
+ const [turnstileResponse, setTurnstileResponse] = (0, import_react14.useState)();
26003
26456
  const config = (0, import_elements_react4.useOryConfiguration)();
26004
26457
  const ui = flow.ui;
26005
26458
  const captchaVerificationValue = (_a = watch("transient_payload")) == null ? void 0 : _a.captcha_turnstile_response;
26006
- (0, import_react10.useEffect)(() => {
26459
+ (0, import_react14.useEffect)(() => {
26007
26460
  if (captchaVerificationValue) {
26008
26461
  setTurnstileResponse(captchaVerificationValue);
26009
26462
  }
@@ -26011,7 +26464,7 @@ function DefaultCurrentIdentifierButton() {
26011
26464
  if (formState.current === "provide_identifier") {
26012
26465
  return null;
26013
26466
  }
26014
- if (flowType === import_client_fetch31.FlowType.Login && (flow.requested_aal === "aal2" || flow.refresh)) {
26467
+ if (flowType === import_client_fetch33.FlowType.Login && (flow.requested_aal === "aal2" || flow.refresh)) {
26015
26468
  return null;
26016
26469
  }
26017
26470
  const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
@@ -26024,9 +26477,9 @@ function DefaultCurrentIdentifierButton() {
26024
26477
  );
26025
26478
  const screenSelectionNode = findScreenSelectionButton(flow.ui.nodes);
26026
26479
  if (screenSelectionNode) {
26027
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
26480
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
26028
26481
  flow.ui.nodes.filter((n) => {
26029
- if ((0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes)) {
26482
+ if ((0, import_client_fetch33.isUiNodeInputAttributes)(n.attributes)) {
26030
26483
  return n.attributes.type === "hidden" && ["default", "captcha"].includes(n.group);
26031
26484
  }
26032
26485
  return false;
@@ -26036,7 +26489,7 @@ function DefaultCurrentIdentifierButton() {
26036
26489
  if (attrs.name === "transient_payload.captcha_turnstile_response" && turnstileResponse) {
26037
26490
  value = turnstileResponse;
26038
26491
  }
26039
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
26492
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26040
26493
  "input",
26041
26494
  {
26042
26495
  type: "hidden",
@@ -26046,7 +26499,7 @@ function DefaultCurrentIdentifierButton() {
26046
26499
  attrs.name
26047
26500
  );
26048
26501
  }),
26049
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
26502
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26050
26503
  "button",
26051
26504
  {
26052
26505
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border border-button-identifier-border-border-default bg-button-identifier-background-default px-[11px] py-[5px] transition-colors hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
@@ -26063,8 +26516,8 @@ function DefaultCurrentIdentifierButton() {
26063
26516
  value: screenSelectionNode.attributes.value,
26064
26517
  title: nodeBackButton.value ? `Adjust ${nodeBackButton.value}` : `Back`,
26065
26518
  "data-testid": `ory/screen/${flowType}/action/restart`,
26066
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
26067
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
26519
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
26520
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26068
26521
  arrow_left_default,
26069
26522
  {
26070
26523
  size: 16,
@@ -26072,13 +26525,13 @@ function DefaultCurrentIdentifierButton() {
26072
26525
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
26073
26526
  }
26074
26527
  ),
26075
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton.value ? nodeBackButton.value : "Back" })
26528
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton.value ? nodeBackButton.value : "Back" })
26076
26529
  ] })
26077
26530
  }
26078
26531
  )
26079
26532
  ] });
26080
26533
  }
26081
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
26534
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26082
26535
  "a",
26083
26536
  {
26084
26537
  className: "group inline-flex max-w-full cursor-pointer items-center gap-1 self-start rounded-identifier border border-button-identifier-border-border-default bg-button-identifier-background-default px-[11px] py-[5px] transition-colors hover:border-button-identifier-border-border-hover hover:bg-button-identifier-background-hover",
@@ -26086,8 +26539,8 @@ function DefaultCurrentIdentifierButton() {
26086
26539
  href: initFlowUrl2,
26087
26540
  title: `Adjust ${nodeBackButton == null ? void 0 : nodeBackButton.value}`,
26088
26541
  "data-testid": `ory/screen/${flowType}/action/restart`,
26089
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
26090
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
26542
+ children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "inline-flex min-h-5 items-center gap-2 overflow-hidden text-ellipsis", children: [
26543
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
26091
26544
  arrow_left_default,
26092
26545
  {
26093
26546
  size: 16,
@@ -26095,7 +26548,7 @@ function DefaultCurrentIdentifierButton() {
26095
26548
  className: "shrink-0 text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover"
26096
26549
  }
26097
26550
  ),
26098
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
26551
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "overflow-hidden text-sm font-medium text-nowrap text-ellipsis text-button-identifier-foreground-default group-hover:text-button-identifier-foreground-hover", children: nodeBackButton == null ? void 0 : nodeBackButton.value })
26099
26552
  ] })
26100
26553
  }
26101
26554
  );
@@ -26104,24 +26557,24 @@ function getBackButtonNodeAttributes(flowType, nodes) {
26104
26557
  var _a, _b, _c;
26105
26558
  let nodeBackButtonAttributes;
26106
26559
  switch (flowType) {
26107
- case import_client_fetch31.FlowType.Login:
26560
+ case import_client_fetch33.FlowType.Login:
26108
26561
  nodeBackButtonAttributes = (_a = nodes.find(
26109
- (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
26562
+ (node) => (0, import_client_fetch33.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "identifier" && ["default", "identifier_first"].includes(node.group)
26110
26563
  )) == null ? void 0 : _a.attributes;
26111
26564
  break;
26112
- case import_client_fetch31.FlowType.Registration:
26565
+ case import_client_fetch33.FlowType.Registration:
26113
26566
  nodeBackButtonAttributes = guessRegistrationBackButton(nodes);
26114
26567
  break;
26115
- case import_client_fetch31.FlowType.Recovery:
26568
+ case import_client_fetch33.FlowType.Recovery:
26116
26569
  nodeBackButtonAttributes = (_b = nodes.find(
26117
- (n) => (0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes) && !!n.attributes.value && ["email", "recovery_confirm_address", "recovery_address"].includes(
26570
+ (n) => (0, import_client_fetch33.isUiNodeInputAttributes)(n.attributes) && !!n.attributes.value && ["email", "recovery_confirm_address", "recovery_address"].includes(
26118
26571
  n.attributes.name
26119
26572
  )
26120
26573
  )) == null ? void 0 : _b.attributes;
26121
26574
  break;
26122
- case import_client_fetch31.FlowType.Verification:
26575
+ case import_client_fetch33.FlowType.Verification:
26123
26576
  nodeBackButtonAttributes = (_c = nodes.find(
26124
- (n) => (0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
26577
+ (n) => (0, import_client_fetch33.isUiNodeInputAttributes)(n.attributes) && n.attributes.name === "email"
26125
26578
  )) == null ? void 0 : _c.attributes;
26126
26579
  break;
26127
26580
  }
@@ -26138,23 +26591,23 @@ var backButtonCandiates = [
26138
26591
  function guessRegistrationBackButton(uiNodes) {
26139
26592
  var _a;
26140
26593
  return (_a = uiNodes.find(
26141
- (node) => (0, import_client_fetch31.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
26594
+ (node) => (0, import_client_fetch33.isUiNodeInputAttributes)(node.attributes) && backButtonCandiates.includes(node.attributes.name) && node.group === "default"
26142
26595
  )) == null ? void 0 : _a.attributes;
26143
26596
  }
26144
26597
 
26145
26598
  // src/theme/default/components/card/header.tsx
26146
- var import_jsx_runtime38 = require("react/jsx-runtime");
26599
+ var import_jsx_runtime47 = require("react/jsx-runtime");
26147
26600
  function InnerCardHeader({
26148
26601
  title,
26149
26602
  text,
26150
26603
  messageId
26151
26604
  }) {
26152
26605
  const { Card } = (0, import_elements_react5.useComponents)();
26153
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
26154
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Card.Logo, {}),
26155
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-2", children: [
26156
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: title }),
26157
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
26606
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
26607
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Card.Logo, {}),
26608
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-col gap-2", children: [
26609
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: title }),
26610
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
26158
26611
  "p",
26159
26612
  {
26160
26613
  className: "leading-normal text-interface-foreground-default-secondary",
@@ -26162,7 +26615,7 @@ function InnerCardHeader({
26162
26615
  children: text
26163
26616
  }
26164
26617
  ),
26165
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DefaultCurrentIdentifierButton, {})
26618
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DefaultCurrentIdentifierButton, {})
26166
26619
  ] })
26167
26620
  ] });
26168
26621
  }
@@ -26172,16 +26625,16 @@ function DefaultCardHeader() {
26172
26625
  context.flow.ui,
26173
26626
  context
26174
26627
  );
26175
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(InnerCardHeader, { title, text: description, messageId });
26628
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(InnerCardHeader, { title, text: description, messageId });
26176
26629
  }
26177
26630
 
26178
26631
  // src/theme/default/components/card/logo.tsx
26179
26632
  var import_elements_react6 = require("@ory/elements-react");
26180
- var import_jsx_runtime39 = require("react/jsx-runtime");
26633
+ var import_jsx_runtime48 = require("react/jsx-runtime");
26181
26634
  function DefaultCardLogo() {
26182
26635
  const config = (0, import_elements_react6.useOryConfiguration)();
26183
26636
  if (config.project.logo_light_url) {
26184
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
26637
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
26185
26638
  "img",
26186
26639
  {
26187
26640
  src: config.project.logo_light_url,
@@ -26190,7 +26643,7 @@ function DefaultCardLogo() {
26190
26643
  }
26191
26644
  );
26192
26645
  }
26193
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: config.project.name });
26646
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: config.project.name });
26194
26647
  }
26195
26648
 
26196
26649
  // src/theme/default/utils/cn.ts
@@ -26201,78 +26654,76 @@ function cn(...inputs) {
26201
26654
  }
26202
26655
 
26203
26656
  // src/theme/default/components/card/index.tsx
26204
- var import_jsx_runtime40 = require("react/jsx-runtime");
26657
+ var import_jsx_runtime49 = require("react/jsx-runtime");
26205
26658
  function DefaultCard({
26206
26659
  children,
26207
26660
  className,
26208
26661
  ...rest
26209
26662
  }) {
26210
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex w-full flex-1 items-start justify-center font-sans-default sm:w-[480px] sm:max-w-[480px] sm:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
26663
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex w-full flex-1 items-start justify-center font-sans-default sm:w-[480px] sm:max-w-[480px] sm:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
26211
26664
  "div",
26212
26665
  {
26213
26666
  className: "relative grid w-full grid-cols-1 gap-8 border-b border-form-border-default bg-form-background-default px-8 py-12 sm:rounded-cards sm:border sm:px-12 sm:py-14",
26214
26667
  "data-testid": "ory/card",
26215
26668
  children: [
26216
26669
  children,
26217
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
26670
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Badge, {})
26218
26671
  ]
26219
26672
  }
26220
26673
  ) }) });
26221
26674
  }
26222
26675
 
26223
26676
  // src/theme/default/components/form/index.tsx
26224
- var import_react_intl13 = require("react-intl");
26677
+ var import_react_intl14 = require("react-intl");
26225
26678
  var import_elements_react8 = require("@ory/elements-react");
26226
- var import_client_fetch33 = require("@ory/client-fetch");
26679
+ var import_client_fetch35 = require("@ory/client-fetch");
26227
26680
 
26228
26681
  // src/theme/default/components/form/sso.tsx
26682
+ var import_client_fetch34 = require("@ory/client-fetch");
26229
26683
  var import_elements_react7 = require("@ory/elements-react");
26230
- var import_react11 = require("react");
26231
- var import_react_hook_form14 = require("react-hook-form");
26232
- var import_react_intl12 = require("react-intl");
26233
- var import_usehooks_ts = require("usehooks-ts");
26684
+ var import_react_intl13 = require("react-intl");
26234
26685
 
26235
26686
  // src/theme/default/provider-logos/apple.svg
26236
26687
  var React4 = __toESM(require("react"));
26237
- var import_jsx_runtime41 = require("react/jsx-runtime");
26688
+ var import_jsx_runtime50 = require("react/jsx-runtime");
26238
26689
  var SvgApple = (props) => {
26239
26690
  var _a, _b;
26240
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("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" }) });
26691
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("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" }) });
26241
26692
  };
26242
26693
  var apple_default = SvgApple;
26243
26694
 
26244
26695
  // src/theme/default/provider-logos/auth0.svg
26245
26696
  var React5 = __toESM(require("react"));
26246
- var import_jsx_runtime42 = require("react/jsx-runtime");
26697
+ var import_jsx_runtime51 = require("react/jsx-runtime");
26247
26698
  var SvgAuth0 = (props) => {
26248
26699
  var _a, _b;
26249
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
26700
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { fill: "#eb5424", d: "M49.012 51.774 42.514 32l17.008-12.22h-21.02L32.005 0h21.032l6.506 19.78c3.767 11.468-.118 24.52-10.53 31.993zm-34.023 0L31.998 64l17.015-12.226-17.008-12.22zm-10.516-32c-3.976 12.1.64 24.917 10.5 32.007v-.007L21.482 32 4.474 19.774l21.025.007L31.998 0H10.972z" }) });
26250
26701
  };
26251
26702
  var auth0_default = SvgAuth0;
26252
26703
 
26253
26704
  // src/theme/default/provider-logos/discord.svg
26254
26705
  var React6 = __toESM(require("react"));
26255
- var import_jsx_runtime43 = require("react/jsx-runtime");
26706
+ var import_jsx_runtime52 = require("react/jsx-runtime");
26256
26707
  var SvgDiscord = (props) => {
26257
26708
  var _a, _b;
26258
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26259
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
26260
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
26709
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26710
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { d: "M2 11.6c0-3.36 0-5.04.654-6.324a6 6 0 0 1 2.622-2.622C6.56 2 8.24 2 11.6 2h8.8c3.36 0 5.04 0 6.324.654a6 6 0 0 1 2.622 2.622C30 6.56 30 8.24 30 11.6v8.8c0 3.36 0 5.04-.654 6.324a6 6 0 0 1-2.622 2.622C25.44 30 23.76 30 20.4 30h-8.8c-3.36 0-5.04 0-6.324-.654a6 6 0 0 1-2.622-2.622C2 25.44 2 23.76 2 20.4z" }),
26711
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#5865F2", d: "M23.636 9.34A18.8 18.8 0 0 0 19.097 8c-.195.332-.424.779-.581 1.134a17.7 17.7 0 0 0-5.03 0A12 12 0 0 0 12.897 8a18.7 18.7 0 0 0-4.542 1.343c-2.872 4.078-3.65 8.055-3.262 11.975a18.6 18.6 0 0 0 5.567 2.68c.448-.58.848-1.195 1.192-1.844a12 12 0 0 1-1.877-.859 9 9 0 0 0 .46-.342c3.62 1.59 7.553 1.59 11.13 0q.225.178.46.342c-.595.337-1.225.626-1.88.86q.516.974 1.191 1.845a18.6 18.6 0 0 0 5.57-2.682c.457-4.544-.78-8.484-3.27-11.978m-11.29 9.567c-1.087 0-1.978-.953-1.978-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116.002 1.16-.872 2.113-1.978 2.113m7.308 0c-1.086 0-1.977-.953-1.977-2.113s.872-2.116 1.977-2.116c1.106 0 1.997.953 1.978 2.116 0 1.16-.872 2.113-1.978 2.113" })
26261
26712
  ] });
26262
26713
  };
26263
26714
  var discord_default = SvgDiscord;
26264
26715
 
26265
26716
  // src/theme/default/provider-logos/facebook.svg
26266
26717
  var React7 = __toESM(require("react"));
26267
- var import_jsx_runtime44 = require("react/jsx-runtime");
26718
+ var import_jsx_runtime53 = require("react/jsx-runtime");
26268
26719
  var SvgFacebook = (props) => {
26269
26720
  var _a, _b;
26270
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26271
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
26272
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { fill: "#fff", d: "m21.214 20.282.622-3.952h-3.89v-2.563c0-1.081.542-2.136 2.284-2.136H22V8.267S20.395 8 18.86 8c-3.205 0-5.298 1.893-5.298 5.318v3.012H10v3.952h3.562v9.552q1.073.165 2.191.166 1.12 0 2.192-.166v-9.552z" }),
26273
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
26274
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { stopColor: "#18ACFE" }),
26275
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
26721
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26722
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
26723
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { fill: "#fff", d: "m21.214 20.282.622-3.952h-3.89v-2.563c0-1.081.542-2.136 2.284-2.136H22V8.267S20.395 8 18.86 8c-3.205 0-5.298 1.893-5.298 5.318v3.012H10v3.952h3.562v9.552q1.073.165 2.191.166 1.12 0 2.192-.166v-9.552z" }),
26724
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("linearGradient", { id: "facebook_svg__a", x1: 16, x2: 16, y1: 2, y2: 29.917, gradientUnits: "userSpaceOnUse", children: [
26725
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("stop", { stopColor: "#18ACFE" }),
26726
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
26276
26727
  ] }) })
26277
26728
  ] });
26278
26729
  };
@@ -26280,111 +26731,111 @@ var facebook_default = SvgFacebook;
26280
26731
 
26281
26732
  // src/theme/default/provider-logos/github.svg
26282
26733
  var React8 = __toESM(require("react"));
26283
- var import_jsx_runtime45 = require("react/jsx-runtime");
26734
+ var import_jsx_runtime54 = require("react/jsx-runtime");
26284
26735
  var SvgGithub = (props) => {
26285
26736
  var _a, _b;
26286
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
26737
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.5 11.5 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12" }) });
26287
26738
  };
26288
26739
  var github_default = SvgGithub;
26289
26740
 
26290
26741
  // src/theme/default/provider-logos/gitlab.svg
26291
26742
  var React9 = __toESM(require("react"));
26292
- var import_jsx_runtime46 = require("react/jsx-runtime");
26743
+ var import_jsx_runtime55 = require("react/jsx-runtime");
26293
26744
  var SvgGitlab = (props) => {
26294
26745
  var _a, _b;
26295
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26296
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
26297
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
26298
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
26299
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
26746
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26747
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#E24329", d: "m22.708 10.691-.031-.072-3.015-7.167a.74.74 0 0 0-.31-.34.87.87 0 0 0-.923.045.73.73 0 0 0-.268.37L16.125 9.2H7.881L5.845 3.527a.72.72 0 0 0-.268-.371.87.87 0 0 0-.923-.045.74.74 0 0 0-.31.34l-3.021 7.164-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132 2.272 1.567 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.567 4.62-3.151.012-.009c.968-.666 1.671-1.6 2.006-2.661a4.67 4.67 0 0 0-.15-3.226" }),
26748
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#FC6D26", d: "m22.708 10.691-.031-.072a10.7 10.7 0 0 0-4.055 1.66L12 16.839l4.218 2.904 4.621-3.152.012-.008c.969-.666 1.674-1.601 2.008-2.664a4.67 4.67 0 0 0-.15-3.228" }),
26749
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#FCA326", d: "m7.781 19.743 2.273 1.566 1.384.952c.162.112.36.172.563.172s.401-.06.563-.172l1.384-.952 2.273-1.566S14.255 18.389 12 16.839c-2.255 1.55-4.219 2.904-4.219 2.904" }),
26750
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { fill: "#FC6D26", d: "M5.376 12.279a10.7 10.7 0 0 0-4.053-1.664l-.03.072a4.67 4.67 0 0 0-.153 3.23c.335 1.063 1.04 1.998 2.01 2.664l.01.007.028.018 4.594 3.132L12 16.836z" })
26300
26751
  ] });
26301
26752
  };
26302
26753
  var gitlab_default = SvgGitlab;
26303
26754
 
26304
26755
  // src/theme/default/provider-logos/google.svg
26305
26756
  var React10 = __toESM(require("react"));
26306
- var import_jsx_runtime47 = require("react/jsx-runtime");
26757
+ var import_jsx_runtime56 = require("react/jsx-runtime");
26307
26758
  var SvgGoogle = (props) => {
26308
26759
  var _a, _b;
26309
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26310
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
26311
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
26312
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" }),
26313
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("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" })
26760
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26761
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
26762
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
26763
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
26764
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" })
26314
26765
  ] });
26315
26766
  };
26316
26767
  var google_default = SvgGoogle;
26317
26768
 
26318
26769
  // src/theme/default/provider-logos/linkedin.svg
26319
26770
  var React11 = __toESM(require("react"));
26320
- var import_jsx_runtime48 = require("react/jsx-runtime");
26771
+ var import_jsx_runtime57 = require("react/jsx-runtime");
26321
26772
  var SvgLinkedin = (props) => {
26322
26773
  var _a, _b;
26323
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26324
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
26325
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
26774
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26775
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
26776
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { fill: "#fff", d: "M12.619 9.692c0 .935-.81 1.692-1.81 1.692C9.81 11.384 9 10.627 9 9.692S9.81 8 10.81 8c.999 0 1.809.758 1.809 1.692M9.247 12.628h3.093V22H9.247zM17.32 12.628h-3.093V22h3.093v-4.795c0-1.107.378-2.22 1.886-2.22 1.705 0 1.695 1.45 1.687 2.572-.01 1.467.014 2.965.014 4.443H24v-4.946c-.026-3.159-.85-4.614-3.557-4.614-1.608 0-2.604.73-3.123 1.39z" })
26326
26777
  ] });
26327
26778
  };
26328
26779
  var linkedin_default = SvgLinkedin;
26329
26780
 
26330
26781
  // src/theme/default/provider-logos/microsoft.svg
26331
26782
  var React12 = __toESM(require("react"));
26332
- var import_jsx_runtime49 = require("react/jsx-runtime");
26783
+ var import_jsx_runtime58 = require("react/jsx-runtime");
26333
26784
  var SvgMicrosoft = (props) => {
26334
26785
  var _a, _b;
26335
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26336
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
26337
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
26338
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
26339
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
26786
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 23 23", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26787
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
26788
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
26789
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
26790
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
26340
26791
  ] });
26341
26792
  };
26342
26793
  var microsoft_default = SvgMicrosoft;
26343
26794
 
26344
26795
  // src/theme/default/provider-logos/slack.svg
26345
26796
  var React13 = __toESM(require("react"));
26346
- var import_jsx_runtime50 = require("react/jsx-runtime");
26797
+ var import_jsx_runtime59 = require("react/jsx-runtime");
26347
26798
  var SvgSlack = (props) => {
26348
26799
  var _a, _b;
26349
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26350
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
26351
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
26352
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
26353
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
26800
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26801
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#2EB67D", d: "M26.5 15a2.5 2.5 0 1 0-2.5-2.5V15zm-7 0a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-5 0v7a2.5 2.5 0 0 0 2.5 2.5" }),
26802
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#E01E5A", d: "M5.5 17A2.5 2.5 0 1 0 8 19.5V17zm7 0a2.5 2.5 0 0 0-2.5 2.5v7a2.5 2.5 0 0 0 5 0v-7a2.5 2.5 0 0 0-2.5-2.5" }),
26803
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#ECB22E", d: "M17 26.5a2.5 2.5 0 1 0 2.5-2.5H17zm0-7a2.5 2.5 0 0 0 2.5 2.5h7a2.5 2.5 0 0 0 0-5h-7a2.5 2.5 0 0 0-2.5 2.5" }),
26804
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#36C5F0", d: "M15 5.5A2.5 2.5 0 1 0 12.5 8H15zm0 7a2.5 2.5 0 0 0-2.5-2.5h-7a2.5 2.5 0 0 0 0 5h7a2.5 2.5 0 0 0 2.5-2.5" })
26354
26805
  ] });
26355
26806
  };
26356
26807
  var slack_default = SvgSlack;
26357
26808
 
26358
26809
  // src/theme/default/provider-logos/spotify.svg
26359
26810
  var React14 = __toESM(require("react"));
26360
- var import_jsx_runtime51 = require("react/jsx-runtime");
26811
+ var import_jsx_runtime60 = require("react/jsx-runtime");
26361
26812
  var SvgSpotify = (props) => {
26362
26813
  var _a, _b;
26363
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26364
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
26365
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
26814
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26815
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
26816
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { fill: "#fff", d: "M22.364 21.623c-.239.38-.75.486-1.148.258-3.141-1.822-7.08-2.232-11.736-1.23-.446.091-.893-.167-.988-.592a.786.786 0 0 1 .621-.94c5.087-1.11 9.456-.639 12.964 1.41a.77.77 0 0 1 .287 1.094m1.627-3.461c-.303.47-.941.607-1.435.334-3.588-2.11-9.058-2.718-13.299-1.488-.558.152-1.132-.137-1.292-.653-.16-.531.144-1.078.702-1.23 4.848-1.396 10.875-.728 15.005 1.686.462.273.622.88.319 1.35m.143-3.613c-4.305-2.43-11.4-2.657-15.515-1.473-.654.197-1.355-.152-1.563-.79-.207-.622.176-1.29.83-1.487 4.72-1.366 12.565-1.093 17.508 1.7.59.334.781 1.063.43 1.625-.334.576-1.1.774-1.69.425" })
26366
26817
  ] });
26367
26818
  };
26368
26819
  var spotify_default = SvgSpotify;
26369
26820
 
26370
26821
  // src/theme/default/provider-logos/yandex.svg
26371
26822
  var React15 = __toESM(require("react"));
26372
- var import_jsx_runtime52 = require("react/jsx-runtime");
26823
+ var import_jsx_runtime61 = require("react/jsx-runtime");
26373
26824
  var SvgYandex = (props) => {
26374
26825
  var _a, _b;
26375
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26376
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
26377
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
26826
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: [
26827
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
26828
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("path", { fill: "#FC3F1D", d: "M21 25h-3.143V9.435h-1.402c-2.572 0-3.922 1.294-3.922 3.211 0 2.175.935 3.185 2.857 4.48l1.584 1.063L12.403 25H9l4.104-6.086c-2.363-1.684-3.688-3.316-3.688-6.087C9.416 9.357 11.83 7 16.429 7H21z" })
26378
26829
  ] });
26379
26830
  };
26380
26831
  var yandex_default = SvgYandex;
26381
26832
 
26382
26833
  // src/theme/default/provider-logos/x.svg
26383
26834
  var React16 = __toESM(require("react"));
26384
- var import_jsx_runtime53 = require("react/jsx-runtime");
26835
+ var import_jsx_runtime62 = require("react/jsx-runtime");
26385
26836
  var SvgX = (props) => {
26386
26837
  var _a, _b;
26387
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { fill: "#0F172A", d: "M24.122 3h4.292L18.99 13.73 30 28.285h-8.64l-6.764-8.845-7.744 8.845H2.56l9.983-11.476L2 3h8.854l6.112 8.08zM22.62 25.766h2.379L9.604 5.426H7.048z" }) });
26838
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { fill: "#0F172A", d: "M24.122 3h4.292L18.99 13.73 30 28.285h-8.64l-6.764-8.845-7.744 8.845H2.56l9.983-11.476L2 3h8.854l6.112 8.08zM22.62 25.766h2.379L9.604 5.426H7.048z" }) });
26388
26839
  };
26389
26840
  var x_default = SvgX;
26390
26841
 
@@ -26407,9 +26858,9 @@ var logos = {
26407
26858
  var provider_logos_default = logos;
26408
26859
 
26409
26860
  // src/theme/default/components/form/spinner.tsx
26410
- var import_jsx_runtime54 = require("react/jsx-runtime");
26861
+ var import_jsx_runtime63 = require("react/jsx-runtime");
26411
26862
  function Spinner({ className }) {
26412
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
26863
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
26413
26864
  "svg",
26414
26865
  {
26415
26866
  "aria-hidden": "true",
@@ -26422,7 +26873,7 @@ function Spinner({ className }) {
26422
26873
  fill: "none",
26423
26874
  xmlns: "http://www.w3.org/2000/svg",
26424
26875
  children: [
26425
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
26876
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26426
26877
  "path",
26427
26878
  {
26428
26879
  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",
@@ -26431,7 +26882,7 @@ function Spinner({ className }) {
26431
26882
  strokeLinejoin: "round"
26432
26883
  }
26433
26884
  ) }),
26434
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
26885
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("clipPath", { id: "clip0_2572_1748", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
26435
26886
  "rect",
26436
26887
  {
26437
26888
  width: "24",
@@ -26446,77 +26897,53 @@ function Spinner({ className }) {
26446
26897
  }
26447
26898
 
26448
26899
  // src/theme/default/components/form/sso.tsx
26449
- var import_client_fetch32 = require("@ory/client-fetch");
26450
- var import_jsx_runtime55 = require("react/jsx-runtime");
26451
- function extractProvider(context) {
26452
- if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
26453
- return context.provider;
26454
- }
26455
- return void 0;
26456
- }
26900
+ var import_jsx_runtime64 = require("react/jsx-runtime");
26457
26901
  function DefaultButtonSocial({
26458
- attributes,
26459
26902
  node,
26460
- onClick,
26461
- showLabel: _showLabel,
26462
- logos: providedLogos
26903
+ logos: providedLogos,
26904
+ isSubmitting,
26905
+ buttonProps,
26906
+ provider,
26907
+ attributes
26463
26908
  }) {
26464
- var _a, _b, _c;
26909
+ var _a;
26465
26910
  const logos2 = { ...provider_logos_default, ...providedLogos };
26466
- const { type: _ignoredType, name: _ignoredName, ...rest } = attributes;
26911
+ const intl = (0, import_react_intl13.useIntl)();
26467
26912
  const {
26468
- flow: { ui }
26913
+ flow: { ui },
26914
+ flowType
26469
26915
  } = (0, import_elements_react7.useOryFlow)();
26470
- const [clicked, setClicked] = (0, import_usehooks_ts.useDebounceValue)(false, 100);
26471
- const intl = (0, import_react_intl12.useIntl)();
26472
- const {
26473
- formState: { isSubmitting }
26474
- } = (0, import_react_hook_form14.useFormContext)();
26475
- const ssoNodeCount = (_a = ui.nodes.filter(
26476
- (node2) => node2.group === import_client_fetch32.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch32.UiNodeGroupEnum.Saml
26477
- ).length) != null ? _a : 0;
26916
+ const ssoNodes = ui.nodes.filter(
26917
+ (node2) => node2.group === import_client_fetch34.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch34.UiNodeGroupEnum.Saml
26918
+ );
26919
+ const ssoNodeCount = (_a = ssoNodes.length) != null ? _a : 0;
26478
26920
  const Logo = logos2[attributes.value.split("-")[0]];
26479
- const showLabel = _showLabel != null ? _showLabel : ssoNodeCount % 3 !== 0 && ssoNodeCount % 4 !== 0;
26480
- const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
26481
- const localOnClick = () => {
26482
- onClick == null ? void 0 : onClick();
26483
- setClicked(true);
26484
- };
26485
- (0, import_react11.useEffect)(() => {
26486
- if (!isSubmitting) {
26487
- setClicked(false);
26488
- }
26489
- }, [isSubmitting, setClicked]);
26921
+ const showLabel = flowType === import_client_fetch34.FlowType.Settings || ssoNodeCount % 3 !== 0 && ssoNodeCount % 4 !== 0;
26490
26922
  const label = node.meta.label ? (0, import_elements_react7.uiTextToFormattedMessage)(node.meta.label, intl) : "";
26491
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
26923
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
26492
26924
  "button",
26493
26925
  {
26494
- className: "flex items-center justify-center gap-3 rounded-buttons border border-button-social-border-default bg-button-social-background-default px-4 py-[13px] transition-colors hover:border-button-social-border-hover hover:bg-button-social-background-hover hover:text-button-social-foreground-hover loading:border-button-social-border-disabled loading:bg-button-social-background-disabled loading:text-button-social-foreground-disabled",
26495
- value: attributes.value,
26496
- type: "submit",
26497
- name: "provider",
26926
+ className: "flex cursor-pointer items-center justify-center gap-3 rounded-buttons border border-button-social-border-default bg-button-social-background-default px-4 py-[13px] transition-colors hover:border-button-social-border-hover hover:bg-button-social-background-hover hover:text-button-social-foreground-hover loading:border-button-social-border-disabled loading:bg-button-social-background-disabled loading:text-button-social-foreground-disabled",
26498
26927
  "data-testid": `ory/form/node/input/${attributes.name}`,
26499
- onClick: localOnClick,
26500
- "data-loading": clicked,
26501
- disabled: isSubmitting,
26928
+ "data-loading": isSubmitting,
26502
26929
  "aria-label": label,
26503
- ...omitInputAttributes(rest),
26930
+ ...buttonProps,
26504
26931
  children: [
26505
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "relative size-5", children: !clicked ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Spinner, { className: "size-5" }) }),
26506
- showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
26507
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center leading-none font-medium text-button-social-foreground-default", children: label }),
26508
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "block size-5" })
26932
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "relative size-5", children: !isSubmitting ? Logo ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Logo, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(GenericLogo, { label: provider.slice(0, 1) }) : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Spinner, { className: "size-5" }) }),
26933
+ showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
26934
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "grow text-center leading-none font-medium text-button-social-foreground-default", children: label }),
26935
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "block size-5" })
26509
26936
  ] }) : null
26510
26937
  ]
26511
26938
  }
26512
26939
  );
26513
26940
  }
26514
- DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
26941
+ DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
26515
26942
  function DefaultSocialButtonContainer({
26516
26943
  children,
26517
26944
  nodes
26518
26945
  }) {
26519
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
26946
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
26520
26947
  "div",
26521
26948
  {
26522
26949
  className: cn("grid gap-3", {
@@ -26530,18 +26957,18 @@ function DefaultSocialButtonContainer({
26530
26957
  );
26531
26958
  }
26532
26959
  function GenericLogo({ label }) {
26533
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "flex size-full items-center justify-center rounded-buttons border-button-social-border-generic-provider bg-button-social-background-generic-provider text-xs text-button-social-foreground-generic-provider", children: label });
26960
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "flex size-full items-center justify-center rounded-buttons border-button-social-border-generic-provider bg-button-social-background-generic-provider text-xs text-button-social-foreground-generic-provider", children: label });
26534
26961
  }
26535
26962
 
26536
26963
  // src/theme/default/components/form/index.tsx
26537
- var import_jsx_runtime56 = require("react/jsx-runtime");
26964
+ var import_jsx_runtime65 = require("react/jsx-runtime");
26538
26965
  function DefaultFormContainer({
26539
26966
  children,
26540
26967
  onSubmit,
26541
26968
  action,
26542
26969
  method
26543
26970
  }) {
26544
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
26971
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
26545
26972
  "form",
26546
26973
  {
26547
26974
  onSubmit,
@@ -26558,19 +26985,19 @@ function DefaultMessageContainer({ children }) {
26558
26985
  if (!children || Array.isArray(children) && children.length === 0) {
26559
26986
  return null;
26560
26987
  }
26561
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
26988
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
26562
26989
  "section",
26563
26990
  {
26564
26991
  className: cn(
26565
- flowType === import_client_fetch33.FlowType.Settings ? "text-center" : "text-left"
26992
+ flowType === import_client_fetch35.FlowType.Settings ? "text-center" : "text-left"
26566
26993
  ),
26567
26994
  children
26568
26995
  }
26569
26996
  );
26570
26997
  }
26571
26998
  function DefaultMessage({ message }) {
26572
- const intl = (0, import_react_intl13.useIntl)();
26573
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
26999
+ const intl = (0, import_react_intl14.useIntl)();
27000
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
26574
27001
  "span",
26575
27002
  {
26576
27003
  className: cn(
@@ -26587,77 +27014,77 @@ function DefaultMessage({ message }) {
26587
27014
 
26588
27015
  // src/theme/default/components/card/auth-method-list-item.tsx
26589
27016
  var import_elements_react9 = require("@ory/elements-react");
26590
- var import_react12 = require("react");
26591
- var import_react_intl14 = require("react-intl");
26592
- var import_usehooks_ts2 = require("usehooks-ts");
27017
+ var import_react15 = require("react");
27018
+ var import_react_intl15 = require("react-intl");
27019
+ var import_usehooks_ts3 = require("usehooks-ts");
26593
27020
 
26594
27021
  // src/theme/default/assets/icons/alert-triangle.svg
26595
27022
  var React17 = __toESM(require("react"));
26596
- var import_jsx_runtime57 = require("react/jsx-runtime");
27023
+ var import_jsx_runtime66 = require("react/jsx-runtime");
26597
27024
  var SvgAlertTriangle = (props) => {
26598
27025
  var _a, _b;
26599
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M12 9v4m0 4h.01M10.24 3.957l-8.422 14.06A1.99 1.99 0 0 0 3.518 21h16.845a1.99 1.99 0 0 0 1.7-2.983L13.64 3.957a1.988 1.988 0 0 0-3.4 0" }) });
27026
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M12 9v4m0 4h.01M10.24 3.957l-8.422 14.06A1.99 1.99 0 0 0 3.518 21h16.845a1.99 1.99 0 0 0 1.7-2.983L13.64 3.957a1.988 1.988 0 0 0-3.4 0" }) });
26600
27027
  };
26601
27028
  var alert_triangle_default = SvgAlertTriangle;
26602
27029
 
26603
27030
  // src/theme/default/assets/icons/code-asterix.svg
26604
27031
  var React18 = __toESM(require("react"));
26605
- var import_jsx_runtime58 = require("react/jsx-runtime");
27032
+ var import_jsx_runtime67 = require("react/jsx-runtime");
26606
27033
  var SvgCodeAsterix = (props) => {
26607
27034
  var _a, _b;
26608
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
27035
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 19.325a2 2 0 0 1-2-2v-4l-1-1 1-1v-4a2 2 0 0 1 2-2m6 6.875 3-1.687M12 12.2v3.375m0-3.375-3-1.687m3 1.687 3 1.688M12 12.2V8.825m0 3.375-3 1.688m9 5.437a2 2 0 0 0 2-2v-4l1-1-1-1v-4a2 2 0 0 0-2-2" }) });
26609
27036
  };
26610
27037
  var code_asterix_default = SvgCodeAsterix;
26611
27038
 
26612
27039
  // src/theme/default/assets/icons/code.svg
26613
27040
  var React19 = __toESM(require("react"));
26614
- var import_jsx_runtime59 = require("react/jsx-runtime");
27041
+ var import_jsx_runtime68 = require("react/jsx-runtime");
26615
27042
  var SvgCode = (props) => {
26616
27043
  var _a, _b;
26617
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("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__ */ (0, import_jsx_runtime59.jsx)("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" }) });
27044
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("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__ */ (0, import_jsx_runtime68.jsx)("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" }) });
26618
27045
  };
26619
27046
  var code_default = SvgCode;
26620
27047
 
26621
27048
  // src/theme/default/assets/icons/passkey.svg
26622
27049
  var React20 = __toESM(require("react"));
26623
- var import_jsx_runtime60 = require("react/jsx-runtime");
27050
+ var import_jsx_runtime69 = require("react/jsx-runtime");
26624
27051
  var SvgPasskey = (props) => {
26625
27052
  var _a, _b;
26626
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("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__ */ (0, import_jsx_runtime60.jsx)("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" }) });
27053
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("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__ */ (0, import_jsx_runtime69.jsx)("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" }) });
26627
27054
  };
26628
27055
  var passkey_default = SvgPasskey;
26629
27056
 
26630
27057
  // src/theme/default/assets/icons/password.svg
26631
27058
  var React21 = __toESM(require("react"));
26632
- var import_jsx_runtime61 = require("react/jsx-runtime");
27059
+ var import_jsx_runtime70 = require("react/jsx-runtime");
26633
27060
  var SvgPassword = (props) => {
26634
27061
  var _a, _b;
26635
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("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__ */ (0, import_jsx_runtime61.jsx)("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" }) });
27062
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("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__ */ (0, import_jsx_runtime70.jsx)("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" }) });
26636
27063
  };
26637
27064
  var password_default = SvgPassword;
26638
27065
 
26639
27066
  // src/theme/default/assets/icons/totp.svg
26640
27067
  var React22 = __toESM(require("react"));
26641
- var import_jsx_runtime62 = require("react/jsx-runtime");
27068
+ var import_jsx_runtime71 = require("react/jsx-runtime");
26642
27069
  var SvgTotp = (props) => {
26643
27070
  var _a, _b;
26644
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
27071
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
26645
27072
  };
26646
27073
  var totp_default = SvgTotp;
26647
27074
 
26648
27075
  // src/theme/default/assets/icons/webauthn.svg
26649
27076
  var React23 = __toESM(require("react"));
26650
- var import_jsx_runtime63 = require("react/jsx-runtime");
27077
+ var import_jsx_runtime72 = require("react/jsx-runtime");
26651
27078
  var SvgWebauthn = (props) => {
26652
27079
  var _a, _b;
26653
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("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__ */ (0, import_jsx_runtime63.jsx)("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" }) });
27080
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("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__ */ (0, import_jsx_runtime72.jsx)("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" }) });
26654
27081
  };
26655
27082
  var webauthn_default = SvgWebauthn;
26656
27083
 
26657
27084
  // src/theme/default/components/card/list-item.tsx
26658
- var import_jsx_runtime64 = require("react/jsx-runtime");
27085
+ var import_jsx_runtime73 = require("react/jsx-runtime");
26659
27086
  function ListItem({
26660
- icon: Icon,
27087
+ icon: Icon2,
26661
27088
  as,
26662
27089
  title,
26663
27090
  description,
@@ -26666,7 +27093,7 @@ function ListItem({
26666
27093
  ...props
26667
27094
  }) {
26668
27095
  const Comp = as || "div";
26669
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
27096
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
26670
27097
  Comp,
26671
27098
  {
26672
27099
  ...props,
@@ -26676,10 +27103,10 @@ function ListItem({
26676
27103
  className
26677
27104
  ),
26678
27105
  children: [
26679
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
26680
- /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("span", { className: "inline-flex max-w-full min-w-1 flex-1 flex-col leading-normal", children: [
26681
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "break-words text-interface-foreground-default-primary", children: title }),
26682
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
27106
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "mt-1", children: Icon2 && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon2, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
27107
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "inline-flex max-w-full min-w-1 flex-1 flex-col leading-normal", children: [
27108
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "break-words text-interface-foreground-default-primary", children: title }),
27109
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
26683
27110
  ] }),
26684
27111
  children
26685
27112
  ]
@@ -26688,8 +27115,7 @@ function ListItem({
26688
27115
  }
26689
27116
 
26690
27117
  // src/theme/default/components/card/auth-method-list-item.tsx
26691
- var import_react_hook_form15 = require("react-hook-form");
26692
- var import_jsx_runtime65 = require("react/jsx-runtime");
27118
+ var import_jsx_runtime74 = require("react/jsx-runtime");
26693
27119
  var iconsMap = {
26694
27120
  code: code_default,
26695
27121
  passkey: passkey_default,
@@ -26703,26 +27129,34 @@ var iconsMap = {
26703
27129
  function DefaultAuthMethodListItem({
26704
27130
  onClick,
26705
27131
  group,
26706
- title
27132
+ title,
27133
+ disabled
26707
27134
  }) {
26708
27135
  var _a;
26709
- const intl = (0, import_react_intl14.useIntl)();
26710
- const Icon = iconsMap[group] || null;
27136
+ const intl = (0, import_react_intl15.useIntl)();
27137
+ const Icon2 = iconsMap[group] || null;
26711
27138
  const { flow } = (0, import_elements_react9.useOryFlow)();
26712
- const { formState } = (0, import_react_hook_form15.useFormContext)();
26713
27139
  if (group === "passkey") {
26714
27140
  const passkeyNode = findPasskeyNode(flow);
26715
27141
  if (!passkeyNode) {
26716
27142
  console.error("Passkey node not found");
26717
27143
  return null;
26718
27144
  }
26719
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(PasskeyListItem, { passkeyNode, group, title });
27145
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
27146
+ PasskeyListItem,
27147
+ {
27148
+ passkeyNode,
27149
+ group,
27150
+ title,
27151
+ disabled
27152
+ }
27153
+ );
26720
27154
  }
26721
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27155
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
26722
27156
  ListItem,
26723
27157
  {
26724
27158
  as: "button",
26725
- icon: Icon,
27159
+ icon: Icon2,
26726
27160
  title: intl.formatMessage(
26727
27161
  { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
26728
27162
  title == null ? void 0 : title.values
@@ -26733,7 +27167,7 @@ function DefaultAuthMethodListItem({
26733
27167
  onClick,
26734
27168
  type: isGroupImmediateSubmit(group) ? "submit" : "button",
26735
27169
  "data-testid": `ory/form/auth-picker/${group}`,
26736
- disabled: !formState.isReady
27170
+ disabled
26737
27171
  }
26738
27172
  );
26739
27173
  }
@@ -26748,13 +27182,17 @@ function findPasskeyNode(flow) {
26748
27182
  }
26749
27183
  return passkeyTriggerNode;
26750
27184
  }
26751
- function PasskeyListItem({ group, title, passkeyNode }) {
27185
+ function PasskeyListItem({
27186
+ group,
27187
+ title,
27188
+ passkeyNode,
27189
+ disabled
27190
+ }) {
26752
27191
  var _a, _b;
26753
- const intl = (0, import_react_intl14.useIntl)();
26754
- const Icon = iconsMap[group] || null;
26755
- const { formState } = (0, import_react_hook_form15.useFormContext)();
26756
- const [isPasskeyScriptInitalized, setPasskeyScriptInitalized] = (0, import_react12.useState)(false);
26757
- const [failedToLoad, setFailedToLoad] = (0, import_react12.useState)(false);
27192
+ const intl = (0, import_react_intl15.useIntl)();
27193
+ const Icon2 = iconsMap[group] || null;
27194
+ const [isPasskeyScriptInitalized, setPasskeyScriptInitalized] = (0, import_react15.useState)(false);
27195
+ const [failedToLoad, setFailedToLoad] = (0, import_react15.useState)(false);
26758
27196
  const clickHandler = () => {
26759
27197
  if (!passkeyNode.attributes.onclickTrigger) {
26760
27198
  console.error("Passkey node not found");
@@ -26767,7 +27205,7 @@ function PasskeyListItem({ group, title, passkeyNode }) {
26767
27205
  console.error("Passkey node trigger function not found");
26768
27206
  }
26769
27207
  };
26770
- (0, import_react12.useEffect)(() => {
27208
+ (0, import_react15.useEffect)(() => {
26771
27209
  if (!passkeyNode.attributes.onclickTrigger) {
26772
27210
  console.error("Passkey node not found");
26773
27211
  return;
@@ -26775,20 +27213,20 @@ function PasskeyListItem({ group, title, passkeyNode }) {
26775
27213
  const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
26776
27214
  setPasskeyScriptInitalized(typeof fn === "function");
26777
27215
  }, [passkeyNode]);
26778
- (0, import_usehooks_ts2.useEventListener)("oryWebAuthnInitialized", () => {
27216
+ (0, import_usehooks_ts3.useEventListener)("oryWebAuthnInitialized", () => {
26779
27217
  setPasskeyScriptInitalized(true);
26780
27218
  });
26781
- (0, import_usehooks_ts2.useTimeout)(() => {
27219
+ (0, import_usehooks_ts3.useTimeout)(() => {
26782
27220
  if (!isPasskeyScriptInitalized) {
26783
27221
  setFailedToLoad(true);
26784
27222
  }
26785
27223
  }, 5e3);
26786
27224
  if (failedToLoad) {
26787
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27225
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
26788
27226
  ListItem,
26789
27227
  {
26790
27228
  as: "button",
26791
- icon: Icon,
27229
+ icon: Icon2,
26792
27230
  disabled: true,
26793
27231
  title: intl.formatMessage(
26794
27232
  { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
@@ -26799,16 +27237,16 @@ function PasskeyListItem({ group, title, passkeyNode }) {
26799
27237
  }),
26800
27238
  type: "button",
26801
27239
  "data-testid": `ory/form/auth-picker/${group}`,
26802
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(alert_triangle_default, {})
27240
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(alert_triangle_default, {})
26803
27241
  }
26804
27242
  );
26805
27243
  }
26806
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
27244
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
26807
27245
  ListItem,
26808
27246
  {
26809
27247
  as: "button",
26810
- icon: Icon,
26811
- disabled: !isPasskeyScriptInitalized || !formState.isReady,
27248
+ icon: Icon2,
27249
+ disabled: !isPasskeyScriptInitalized || disabled,
26812
27250
  name: passkeyNode.attributes.name,
26813
27251
  title: intl.formatMessage(
26814
27252
  { id: (_b = title == null ? void 0 : title.id) != null ? _b : `two-step.${group}.title` },
@@ -26825,16 +27263,15 @@ function PasskeyListItem({ group, title, passkeyNode }) {
26825
27263
  }
26826
27264
 
26827
27265
  // src/theme/default/components/form/button.tsx
26828
- var import_client_fetch34 = require("@ory/client-fetch");
27266
+ var import_client_fetch36 = require("@ory/client-fetch");
26829
27267
  var import_elements_react10 = require("@ory/elements-react");
26830
27268
  var import_class_variance_authority = require("class-variance-authority");
26831
- var import_react_hook_form16 = require("react-hook-form");
26832
- var import_react_intl15 = require("react-intl");
26833
- var import_react13 = require("react");
26834
- var import_jsx_runtime66 = require("react/jsx-runtime");
27269
+ var import_react_intl16 = require("react-intl");
27270
+ var import_react16 = require("react");
27271
+ var import_jsx_runtime75 = require("react/jsx-runtime");
26835
27272
  var buttonStyles = (0, import_class_variance_authority.cva)(
26836
27273
  [
26837
- "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none font-medium ring-1 ring-inset",
27274
+ "relative flex cursor-pointer justify-center gap-3 overflow-hidden rounded-buttons leading-none font-medium ring-1 ring-inset",
26838
27275
  "disabled:cursor-not-allowed loading:cursor-wait loading:before:pointer-events-none",
26839
27276
  "transition-colors duration-100 ease-linear",
26840
27277
  "max-w-[488px] p-4"
@@ -26862,46 +27299,27 @@ var buttonStyles = (0, import_class_variance_authority.cva)(
26862
27299
  }
26863
27300
  );
26864
27301
  var DefaultButton = ({
26865
- attributes,
26866
27302
  node,
26867
- onClick
27303
+ buttonProps,
27304
+ isSubmitting
26868
27305
  }) => {
26869
- const { type, name, value, ...rest } = attributes;
26870
- const [clicked, setClicked] = (0, import_react13.useState)(false);
26871
- const intl = (0, import_react_intl15.useIntl)();
26872
- const label = (0, import_client_fetch34.getNodeLabel)(node);
26873
- const {
26874
- formState: { isSubmitting, isReady },
26875
- setValue
26876
- } = (0, import_react_hook_form16.useFormContext)();
26877
- (0, import_react13.useEffect)(() => {
26878
- if (!isSubmitting) {
26879
- setClicked(false);
26880
- }
26881
- }, [isSubmitting]);
26882
- const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret") || attributes.name.includes("action") && attributes.value === "accept";
26883
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
27306
+ const intl = (0, import_react_intl16.useIntl)();
27307
+ const label = (0, import_client_fetch36.getNodeLabel)(node);
27308
+ const isPrimary = (0, import_react16.useMemo)(() => {
27309
+ return node.attributes.name === "method" || node.attributes.name.includes("passkey") || node.attributes.name.includes("webauthn") || node.attributes.name.includes("lookup_secret") || node.attributes.name.includes("action") && node.attributes.value === "accept";
27310
+ }, [node.attributes.name, node.attributes.value]);
27311
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
26884
27312
  "button",
26885
27313
  {
26886
- ...omitInputAttributes(rest),
26887
- value,
26888
- name,
26889
- type: type === "button" ? "button" : "submit",
26890
- onClick: (e) => {
26891
- onClick == null ? void 0 : onClick(e);
26892
- setClicked(true);
26893
- if (type !== "button") {
26894
- setValue(name, value);
26895
- }
26896
- },
27314
+ ...buttonProps,
27315
+ "data-testid": `ory/form/node/button/${node.attributes.name}`,
27316
+ "data-loading": isSubmitting,
26897
27317
  className: buttonStyles({
26898
27318
  intent: isPrimary ? "primary" : "secondary"
26899
27319
  }),
26900
- disabled: rest.disabled === true || !isReady || isSubmitting,
26901
- "data-loading": clicked,
26902
27320
  children: [
26903
- clicked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, {}) : null,
26904
- label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) }) : ""
27321
+ isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Spinner, {}) : null,
27322
+ label ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) }) : ""
26905
27323
  ]
26906
27324
  }
26907
27325
  );
@@ -26909,14 +27327,13 @@ var DefaultButton = ({
26909
27327
  DefaultButton.displayName = "DefaultButton";
26910
27328
 
26911
27329
  // src/theme/default/components/form/checkbox.tsx
26912
- var import_client_fetch35 = require("@ory/client-fetch");
27330
+ var import_client_fetch37 = require("@ory/client-fetch");
26913
27331
  var import_elements_react11 = require("@ory/elements-react");
26914
- var import_react_hook_form17 = require("react-hook-form");
26915
- var import_react_intl17 = require("react-intl");
27332
+ var import_react_intl18 = require("react-intl");
26916
27333
 
26917
27334
  // src/theme/default/components/ui/checkbox-label.tsx
26918
- var import_react_intl16 = require("react-intl");
26919
- var import_jsx_runtime67 = require("react/jsx-runtime");
27335
+ var import_react_intl17 = require("react-intl");
27336
+ var import_jsx_runtime76 = require("react/jsx-runtime");
26920
27337
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
26921
27338
  function computeLabelElements(labelText) {
26922
27339
  const elements = [];
@@ -26932,7 +27349,7 @@ function computeLabelElements(labelText) {
26932
27349
  elements.push(labelText.slice(lastIndex, matchStart));
26933
27350
  }
26934
27351
  elements.push(
26935
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
27352
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
26936
27353
  "a",
26937
27354
  {
26938
27355
  href: url,
@@ -26952,18 +27369,18 @@ function computeLabelElements(labelText) {
26952
27369
  return elements;
26953
27370
  }
26954
27371
  function CheckboxLabel({ label }) {
26955
- const intl = (0, import_react_intl16.useIntl)();
27372
+ const intl = (0, import_react_intl17.useIntl)();
26956
27373
  if (!label) {
26957
27374
  return null;
26958
27375
  }
26959
27376
  const labelText = resolveLabel(label, intl);
26960
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_jsx_runtime67.Fragment, { children: computeLabelElements(labelText) });
27377
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: computeLabelElements(labelText) });
26961
27378
  }
26962
27379
 
26963
27380
  // src/theme/default/components/form/checkbox.tsx
26964
- var import_jsx_runtime68 = require("react/jsx-runtime");
27381
+ var import_jsx_runtime77 = require("react/jsx-runtime");
26965
27382
  function CheckboxSVG() {
26966
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
27383
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
26967
27384
  "svg",
26968
27385
  {
26969
27386
  className: "absolute hidden size-4 fill-checkbox-foreground-checked peer-checked:block",
@@ -26972,7 +27389,7 @@ function CheckboxSVG() {
26972
27389
  height: "16",
26973
27390
  viewBox: "0 0 16 16",
26974
27391
  fill: "none",
26975
- children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
27392
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
26976
27393
  "path",
26977
27394
  {
26978
27395
  fillRule: "evenodd",
@@ -26983,36 +27400,28 @@ function CheckboxSVG() {
26983
27400
  }
26984
27401
  );
26985
27402
  }
26986
- var DefaultCheckbox = ({
26987
- attributes: initialAttributes,
26988
- node
26989
- }) => {
26990
- const { value, name, ...attributes } = initialAttributes;
26991
- const intl = (0, import_react_intl17.useIntl)();
26992
- const label = (0, import_client_fetch35.getNodeLabel)(node);
26993
- const { register } = (0, import_react_hook_form17.useFormContext)();
27403
+ var DefaultCheckbox = ({ node, inputProps }) => {
27404
+ const intl = (0, import_react_intl18.useIntl)();
27405
+ const label = (0, import_client_fetch37.getNodeLabel)(node);
26994
27406
  const hasError = node.messages.some((m) => m.type === "error");
26995
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
26996
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex h-5 items-center", children: [
26997
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
27407
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "flex cursor-pointer items-start gap-3 self-stretch antialiased", children: [
27408
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "flex h-5 items-center", children: [
27409
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
26998
27410
  "input",
26999
27411
  {
27000
- ...omitInputAttributes(attributes),
27001
- defaultChecked: Boolean(value),
27002
- type: "checkbox",
27412
+ ...inputProps,
27003
27413
  className: cn(
27004
27414
  "peer size-4 appearance-none rounded-forms border border-checkbox-border-checkbox-border-default bg-checkbox-background-default checked:border-checkbox-border-checkbox-border-checked checked:bg-checkbox-background-checked",
27005
27415
  hasError && "border-interface-border-validation-danger"
27006
27416
  ),
27007
- "data-testid": `ory/form/node/input/${name}`,
27008
- ...register(name)
27417
+ "data-testid": `ory/form/node/input/${node.attributes.name}`
27009
27418
  }
27010
27419
  ),
27011
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxSVG, {})
27420
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckboxSVG, {})
27012
27421
  ] }),
27013
- /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex flex-col", children: [
27014
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "leading-tight font-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(CheckboxLabel, { label }) }),
27015
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
27422
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "flex flex-col", children: [
27423
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "leading-tight font-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckboxLabel, { label }) }),
27424
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
27016
27425
  "span",
27017
27426
  {
27018
27427
  className: cn(
@@ -27030,13 +27439,13 @@ var DefaultCheckbox = ({
27030
27439
 
27031
27440
  // src/theme/default/components/form/group-container.tsx
27032
27441
  var import_elements_react12 = require("@ory/elements-react");
27033
- var import_client_fetch36 = require("@ory/client-fetch");
27442
+ var import_client_fetch38 = require("@ory/client-fetch");
27034
27443
 
27035
27444
  // src/util/childCounter.ts
27036
- var import_react14 = require("react");
27445
+ var import_react17 = require("react");
27037
27446
  function countRenderableChildren(children) {
27038
- return import_react14.Children.toArray(children).filter((c) => {
27039
- if ((0, import_react14.isValidElement)(c)) {
27447
+ return import_react17.Children.toArray(children).filter((c) => {
27448
+ if ((0, import_react17.isValidElement)(c)) {
27040
27449
  return true;
27041
27450
  }
27042
27451
  return false;
@@ -27044,19 +27453,19 @@ function countRenderableChildren(children) {
27044
27453
  }
27045
27454
 
27046
27455
  // src/theme/default/components/form/group-container.tsx
27047
- var import_jsx_runtime69 = require("react/jsx-runtime");
27456
+ var import_jsx_runtime78 = require("react/jsx-runtime");
27048
27457
  function DefaultGroupContainer({ children }) {
27049
27458
  const { flowType } = (0, import_elements_react12.useOryFlow)();
27050
27459
  const count = countRenderableChildren(children);
27051
27460
  if (count === 0) {
27052
27461
  return null;
27053
27462
  }
27054
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
27463
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
27055
27464
  "div",
27056
27465
  {
27057
27466
  className: cn(
27058
27467
  "grid",
27059
- flowType === import_client_fetch36.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
27468
+ flowType === import_client_fetch38.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
27060
27469
  ),
27061
27470
  children
27062
27471
  }
@@ -27064,224 +27473,197 @@ function DefaultGroupContainer({ children }) {
27064
27473
  }
27065
27474
 
27066
27475
  // src/theme/default/components/form/horizontal-divider.tsx
27067
- var import_jsx_runtime70 = require("react/jsx-runtime");
27476
+ var import_jsx_runtime79 = require("react/jsx-runtime");
27068
27477
  function DefaultHorizontalDivider() {
27069
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("hr", { className: "border-interface-border-default-primary" });
27478
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("hr", { className: "border-interface-border-default-primary" });
27070
27479
  }
27071
27480
 
27072
27481
  // src/theme/default/components/form/image.tsx
27073
- var import_jsx_runtime71 = require("react/jsx-runtime");
27074
- function DefaultImage({ attributes, node }) {
27482
+ var import_jsx_runtime80 = require("react/jsx-runtime");
27483
+ function DefaultImage({ node }) {
27075
27484
  var _a;
27076
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
27485
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
27077
27486
  "img",
27078
27487
  {
27079
- ...omitInputAttributes(attributes),
27488
+ ...omitInputAttributes(node.attributes),
27080
27489
  alt: ((_a = node.meta.label) == null ? void 0 : _a.text) || ""
27081
27490
  }
27082
27491
  ) });
27083
27492
  }
27084
27493
 
27085
27494
  // src/theme/default/components/form/input.tsx
27086
- var import_client_fetch37 = require("@ory/client-fetch");
27495
+ var import_client_fetch39 = require("@ory/client-fetch");
27087
27496
  var import_elements_react13 = require("@ory/elements-react");
27088
- var import_react15 = require("react");
27089
- var import_react_hook_form18 = require("react-hook-form");
27090
- var import_react_intl18 = require("react-intl");
27497
+ var PasswordToggleField = __toESM(require("@radix-ui/react-password-toggle-field"));
27498
+ var import_react18 = require("react");
27091
27499
 
27092
27500
  // src/theme/default/assets/icons/eye-off.svg
27093
27501
  var React24 = __toESM(require("react"));
27094
- var import_jsx_runtime72 = require("react/jsx-runtime");
27502
+ var import_jsx_runtime81 = require("react/jsx-runtime");
27095
27503
  var SvgEyeOff = (props) => {
27096
27504
  var _a, _b;
27097
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
27505
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
27098
27506
  };
27099
27507
  var eye_off_default = SvgEyeOff;
27100
27508
 
27101
27509
  // src/theme/default/assets/icons/eye.svg
27102
27510
  var React25 = __toESM(require("react"));
27103
- var import_jsx_runtime73 = require("react/jsx-runtime");
27511
+ var import_jsx_runtime82 = require("react/jsx-runtime");
27104
27512
  var SvgEye = (props) => {
27105
27513
  var _a, _b;
27106
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
27107
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
27108
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
27514
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
27515
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
27516
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
27109
27517
  ] }) });
27110
27518
  };
27111
27519
  var eye_default = SvgEye;
27112
27520
 
27113
27521
  // src/theme/default/components/form/input.tsx
27114
- var import_jsx_runtime74 = require("react/jsx-runtime");
27522
+ var import_jsx_runtime83 = require("react/jsx-runtime");
27115
27523
  var defaultInputClassName = cn(
27116
- "w-full rounded-forms border leading-tight antialiased transition-colors placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus:ring-0 focus-visible:outline-hidden",
27524
+ "w-full rounded-forms border leading-tight antialiased transition-colors focus:ring-0 focus-visible:outline-none",
27117
27525
  "border-input-border-default bg-input-background-default text-input-foreground-primary",
27118
- "disabled:border-input-border-disabled disabled:bg-input-background-disabled disabled:text-input-foreground-disabled",
27119
- "focus:border-input-border-focus focus-visible:border-input-border-focus",
27120
- "hover:border-input-border-hover hover:bg-input-background-hover",
27121
- "px-4 py-[13px]"
27526
+ "focus-within:border-input-border-focus focus-visible:border-input-border-focus",
27527
+ "hover:bg-input-background-hover"
27122
27528
  );
27123
- function resolvePlaceholder(text, intl) {
27124
- const fallback = intl.formatMessage(
27125
- {
27126
- id: "input.placeholder",
27127
- defaultMessage: "Enter your {placeholder}"
27128
- },
27129
- {
27130
- placeholder: (0, import_elements_react13.uiTextToFormattedMessage)(text, intl)
27131
- }
27132
- );
27133
- if (isDynamicText(text)) {
27134
- const field = text.context.name;
27135
- return intl.formatMessage({
27136
- id: `forms.input.placeholder.${field}`,
27137
- defaultMessage: fallback
27138
- });
27139
- }
27140
- return fallback;
27529
+ function isAutocompletePassword(autocomplete) {
27530
+ return autocomplete === "new-password" || autocomplete === "current-password";
27141
27531
  }
27142
- var DefaultInput = ({
27143
- node,
27144
- attributes,
27145
- onClick
27146
- }) => {
27147
- const label = (0, import_client_fetch37.getNodeLabel)(node);
27148
- const { register } = (0, import_react_hook_form18.useFormContext)();
27149
- const { value, autocomplete, name, maxlength, ...rest } = attributes;
27150
- const intl = (0, import_react_intl18.useIntl)();
27151
- const { flowType } = (0, import_elements_react13.useOryFlow)();
27152
- const inputRef = (0, import_react15.useRef)(null);
27153
- const placeholder = label ? resolvePlaceholder(label, intl) : "";
27154
- if (rest.type === "hidden") {
27155
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
27156
- "input",
27157
- {
27158
- ...omitInputAttributes(rest),
27159
- "data-testid": `ory/form/node/input/${name}`,
27160
- ...register(name, { value })
27161
- }
27162
- );
27163
- }
27164
- const { ref, ...restRegister } = register(name, { value });
27165
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
27532
+ function PasswordInput({
27533
+ className,
27534
+ ...rest
27535
+ }) {
27536
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PasswordToggleField.Root, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
27166
27537
  "div",
27167
27538
  {
27168
27539
  className: cn(
27169
- "relative flex justify-stretch",
27170
- // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
27171
- flowType === import_client_fetch37.FlowType.Settings && "max-w-[488px]"
27540
+ defaultInputClassName,
27541
+ "flex justify-stretch not-focus-within:hover:border-input-border-hover",
27542
+ "data-[disabled=true]:border-input-border-disabled data-[disabled=true]:bg-input-background-disabled data-[disabled=true]:text-input-foreground-disabled"
27172
27543
  ),
27544
+ "data-disabled": rest.disabled,
27173
27545
  children: [
27174
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
27175
- "input",
27546
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27547
+ PasswordToggleField.Input,
27176
27548
  {
27177
- ...omitInputAttributes(rest),
27178
- onClick,
27179
- maxLength: maxlength,
27180
- autoComplete: autocomplete,
27181
- placeholder,
27182
- "data-testid": `ory/form/node/input/${name}`,
27183
- className: defaultInputClassName,
27184
- ref: (e) => {
27185
- inputRef.current = e;
27186
- ref(e);
27187
- },
27188
- ...restRegister
27549
+ ...rest,
27550
+ className: cn(
27551
+ "w-full rounded-l-forms rounded-r-none bg-transparent px-4 py-[13px] text-input-foreground-primary placeholder:h-[20px] placeholder:text-input-foreground-tertiary focus:outline-none disabled:bg-input-background-disabled disabled:text-input-foreground-disabled",
27552
+ className
27553
+ )
27189
27554
  }
27190
27555
  ),
27191
- rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(PasswordToggle, { inputRef })
27556
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PasswordToggleField.Toggle, { className: "cursor-pointer bg-transparent px-2 py-[13px]", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(PasswordToggleField.Icon, { visible: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(eye_off_default, {}), hidden: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(eye_default, {}) }) })
27192
27557
  ]
27193
27558
  }
27194
- );
27195
- };
27196
- function PasswordToggle({
27197
- inputRef
27198
- }) {
27199
- const [shown, setShown] = (0, import_react15.useState)(false);
27200
- const handleClick = () => {
27201
- setShown(!shown);
27202
- if (inputRef.current) {
27203
- inputRef.current.type = shown ? "password" : "text";
27204
- }
27205
- };
27206
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
27207
- "button",
27559
+ ) });
27560
+ }
27561
+ var TextInput = (0, import_react18.forwardRef)(
27562
+ ({ className, ...props }, ref) => {
27563
+ const { flowType } = (0, import_elements_react13.useOryFlow)();
27564
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27565
+ "input",
27566
+ {
27567
+ ...props,
27568
+ className: cn(
27569
+ defaultInputClassName,
27570
+ "px-4 py-[13px] hover:border-input-border-hover",
27571
+ "placeholder:h-[20px] placeholder:text-input-foreground-tertiary disabled:border-input-border-disabled disabled:bg-input-background-disabled disabled:text-input-foreground-disabled",
27572
+ // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
27573
+ flowType === import_client_fetch39.FlowType.Settings && "max-w-[488px]",
27574
+ className
27575
+ ),
27576
+ ref
27577
+ }
27578
+ );
27579
+ }
27580
+ );
27581
+ var DefaultInputRoot = ({ inputProps }) => {
27582
+ if (inputProps.type === "password") {
27583
+ const autoComplete = isAutocompletePassword(inputProps.autoComplete) ? inputProps.autoComplete : void 0;
27584
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27585
+ PasswordInput,
27586
+ {
27587
+ "data-testid": `ory/form/node/input/${inputProps.name}`,
27588
+ ...inputProps,
27589
+ autoComplete
27590
+ }
27591
+ );
27592
+ }
27593
+ if (inputProps.type === "hidden") {
27594
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27595
+ "input",
27596
+ {
27597
+ "data-testid": `ory/form/node/input/${inputProps.name}`,
27598
+ ...inputProps
27599
+ }
27600
+ );
27601
+ }
27602
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27603
+ TextInput,
27208
27604
  {
27209
- onClick: handleClick,
27210
- className: "absolute right-0 flex h-full w-12 items-center justify-center text-input-foreground-primary",
27211
- type: "button",
27212
- "aria-label": "Toggle password visibility",
27213
- children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
27605
+ "data-testid": `ory/form/node/input/${inputProps.name}`,
27606
+ ...inputProps
27214
27607
  }
27215
27608
  );
27216
- }
27609
+ };
27610
+ var DefaultInput = Object.assign(DefaultInputRoot, {
27611
+ TextInput,
27612
+ PasswordInput
27613
+ });
27217
27614
 
27218
27615
  // src/theme/default/components/form/label.tsx
27219
- var import_client_fetch38 = require("@ory/client-fetch");
27616
+ var import_client_fetch40 = require("@ory/client-fetch");
27220
27617
  var import_elements_react14 = require("@ory/elements-react");
27221
- var import_react16 = require("react");
27222
- var import_react_hook_form19 = require("react-hook-form");
27618
+ var import_react19 = require("react");
27223
27619
  var import_react_intl19 = require("react-intl");
27224
- var import_jsx_runtime75 = require("react/jsx-runtime");
27225
- function findResendNode(nodes) {
27226
- return nodes.find(
27227
- (n) => "name" in n.attributes && (["email", "recovery_confirm_address"].includes(n.attributes.name) && n.attributes.type === "submit" || n.attributes.name === "resend")
27228
- );
27229
- }
27620
+ var import_jsx_runtime84 = require("react/jsx-runtime");
27230
27621
  function DefaultLabel({
27231
27622
  node,
27232
27623
  children,
27233
27624
  attributes,
27234
- ...rest
27625
+ fieldError
27235
27626
  }) {
27236
27627
  const intl = (0, import_react_intl19.useIntl)();
27237
- const label = (0, import_client_fetch38.getNodeLabel)(node);
27628
+ const label = (0, import_client_fetch40.getNodeLabel)(node);
27238
27629
  const { Message } = (0, import_elements_react14.useComponents)();
27239
- const { flow } = (0, import_elements_react14.useOryFlow)();
27240
- const { setValue, formState } = (0, import_react_hook_form19.useFormContext)();
27241
- const resendNode = findResendNode(flow.ui.nodes);
27242
- const handleResend = () => {
27243
- if ((resendNode == null ? void 0 : resendNode.attributes) && "name" in resendNode.attributes) {
27244
- setValue(resendNode.attributes.name, resendNode.attributes.value);
27245
- }
27246
- };
27247
- const fieldError = formState.errors[attributes.name];
27248
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
27249
- label && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("span", { className: "inline-flex justify-between", children: [
27250
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
27630
+ const { resendCode, resendCodeNode } = (0, import_elements_react14.useResendCode)();
27631
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
27632
+ label && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("span", { className: "inline-flex justify-between", children: [
27633
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
27251
27634
  "label",
27252
27635
  {
27253
27636
  ...(0, import_elements_react14.messageTestId)(label),
27254
27637
  className: "leading-normal text-input-foreground-primary",
27255
27638
  htmlFor: attributes.name,
27256
27639
  "data-testid": `ory/form/node/input/label/${attributes.name}`,
27257
- ...rest,
27258
27640
  children: resolveLabel(label, intl)
27259
27641
  }
27260
27642
  ),
27261
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LabelAction, { attributes }),
27262
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
27643
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(LabelAction, { attributes }),
27644
+ (resendCodeNode == null ? void 0 : resendCodeNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
27263
27645
  "button",
27264
27646
  {
27265
- type: "submit",
27266
- name: resendNode.attributes.name,
27267
- value: resendNode.attributes.value,
27268
- onClick: handleResend,
27647
+ type: "button",
27648
+ name: resendCodeNode.attributes.name,
27649
+ value: resendCodeNode.attributes.value,
27650
+ onClick: resendCode,
27269
27651
  className: "cursor-pointer text-button-link-brand-brand underline transition-colors hover:text-button-link-brand-brand-hover",
27270
27652
  children: intl.formatMessage({ id: "identities.messages.1070008" })
27271
27653
  }
27272
27654
  )
27273
27655
  ] }),
27274
27656
  children,
27275
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message }, message.id)),
27276
- fieldError && (0, import_client_fetch38.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message: fieldError })
27657
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Message.Content, { message }, message.id)),
27658
+ fieldError && (0, import_client_fetch40.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Message.Content, { message: fieldError })
27277
27659
  ] });
27278
27660
  }
27279
27661
  function LabelAction({ attributes }) {
27280
27662
  const intl = (0, import_react_intl19.useIntl)();
27281
27663
  const { flowType, flow, formState } = (0, import_elements_react14.useOryFlow)();
27282
27664
  const config = (0, import_elements_react14.useOryConfiguration)();
27283
- const action = (0, import_react16.useMemo)(() => {
27284
- if (flowType === import_client_fetch38.FlowType.Login && config.project.recovery_enabled) {
27665
+ const action = (0, import_react19.useMemo)(() => {
27666
+ if (flowType === import_client_fetch40.FlowType.Login && config.project.recovery_enabled) {
27285
27667
  if (formState.current === "provide_identifier" && !flow.refresh) {
27286
27668
  if (attributes.name === "identifier") {
27287
27669
  return {
@@ -27313,7 +27695,7 @@ function LabelAction({ attributes }) {
27313
27695
  config.sdk.url,
27314
27696
  formState
27315
27697
  ]);
27316
- return action ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
27698
+ return action ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
27317
27699
  "a",
27318
27700
  {
27319
27701
  href: action.href,
@@ -27325,15 +27707,15 @@ function LabelAction({ attributes }) {
27325
27707
  }
27326
27708
 
27327
27709
  // src/theme/default/components/form/link-button.tsx
27328
- var import_client_fetch39 = require("@ory/client-fetch");
27710
+ var import_client_fetch41 = require("@ory/client-fetch");
27329
27711
  var import_elements_react15 = require("@ory/elements-react");
27330
- var import_react17 = require("react");
27712
+ var import_react20 = require("react");
27331
27713
  var import_react_intl20 = require("react-intl");
27332
- var import_jsx_runtime76 = require("react/jsx-runtime");
27333
- var DefaultLinkButton = (0, import_react17.forwardRef)(({ attributes, node }, ref) => {
27714
+ var import_jsx_runtime85 = require("react/jsx-runtime");
27715
+ var DefaultLinkButton = (0, import_react20.forwardRef)(({ attributes, node }, ref) => {
27334
27716
  const intl = (0, import_react_intl20.useIntl)();
27335
- const label = (0, import_client_fetch39.getNodeLabel)(node);
27336
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
27717
+ const label = (0, import_client_fetch41.getNodeLabel)(node);
27718
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
27337
27719
  "a",
27338
27720
  {
27339
27721
  ...omitInputAttributes(attributes),
@@ -27350,13 +27732,14 @@ var DefaultLinkButton = (0, import_react17.forwardRef)(({ attributes, node }, re
27350
27732
  DefaultLinkButton.displayName = "DefaultLinkButton";
27351
27733
 
27352
27734
  // src/theme/default/components/form/pin-code-input.tsx
27353
- var import_react_hook_form20 = require("react-hook-form");
27735
+ var import_client_fetch42 = require("@ory/client-fetch");
27736
+ var import_elements_react16 = require("@ory/elements-react");
27354
27737
 
27355
27738
  // src/theme/default/components/form/shadcn/otp-input.tsx
27356
27739
  var import_input_otp = require("input-otp");
27357
27740
  var React26 = __toESM(require("react"));
27358
- var import_jsx_runtime77 = require("react/jsx-runtime");
27359
- var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
27741
+ var import_jsx_runtime86 = require("react/jsx-runtime");
27742
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
27360
27743
  import_input_otp.OTPInput,
27361
27744
  {
27362
27745
  ref,
@@ -27369,12 +27752,12 @@ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props },
27369
27752
  }
27370
27753
  ));
27371
27754
  InputOTP.displayName = "InputOTP";
27372
- var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
27755
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
27373
27756
  InputOTPGroup.displayName = "InputOTPGroup";
27374
27757
  var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
27375
27758
  const inputOTPContext = React26.useContext(import_input_otp.OTPInputContext);
27376
27759
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
27377
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
27760
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
27378
27761
  "div",
27379
27762
  {
27380
27763
  ref,
@@ -27386,8 +27769,8 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
27386
27769
  ),
27387
27770
  ...props,
27388
27771
  children: [
27389
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "inline-block size-4", children: char }),
27390
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
27772
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("span", { className: "inline-block size-4", children: char }),
27773
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
27391
27774
  ]
27392
27775
  }
27393
27776
  );
@@ -27395,35 +27778,31 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
27395
27778
  InputOTPSlot.displayName = "InputOTPSlot";
27396
27779
 
27397
27780
  // src/theme/default/components/form/pin-code-input.tsx
27398
- var import_elements_react16 = require("@ory/elements-react");
27399
- var import_client_fetch40 = require("@ory/client-fetch");
27400
- var import_jsx_runtime78 = require("react/jsx-runtime");
27401
- var DefaultPinCodeInput = ({ attributes }) => {
27402
- const { setValue, watch } = (0, import_react_hook_form20.useFormContext)();
27403
- const { maxlength, name } = attributes;
27404
- const elements = maxlength != null ? maxlength : 6;
27781
+ var import_jsx_runtime87 = require("react/jsx-runtime");
27782
+ var DefaultPinCodeInput = ({
27783
+ node,
27784
+ inputProps
27785
+ }) => {
27405
27786
  const { flowType } = (0, import_elements_react16.useOryFlow)();
27406
- const handleInputChange = (v) => {
27407
- setValue(name, v);
27408
- };
27409
- const value = watch(name);
27410
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
27787
+ const { value, maxLength, ...restInputProps } = inputProps;
27788
+ const elements = maxLength != null ? maxLength : 6;
27789
+ const valueCasted = value;
27790
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
27411
27791
  InputOTP,
27412
27792
  {
27413
- maxLength: maxlength != null ? maxlength : 6,
27414
- onChange: handleInputChange,
27415
- name,
27416
- value,
27417
- "data-testid": `ory/form/node/input/${name}`,
27418
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
27793
+ "data-testid": `ory/form/node/input/${node.attributes.name}`,
27794
+ ...restInputProps,
27795
+ value: valueCasted,
27796
+ maxLength: elements,
27797
+ children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
27419
27798
  InputOTPGroup,
27420
27799
  {
27421
27800
  className: cn(
27422
27801
  "flex w-full justify-stretch gap-2",
27423
27802
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
27424
- flowType === import_client_fetch40.FlowType.Settings && "max-w-[488px]"
27803
+ flowType === import_client_fetch42.FlowType.Settings && "max-w-[488px]"
27425
27804
  ),
27426
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(InputOTPSlot, { index }, index))
27805
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(InputOTPSlot, { index }, index))
27427
27806
  }
27428
27807
  )
27429
27808
  }
@@ -27431,16 +27810,16 @@ var DefaultPinCodeInput = ({ attributes }) => {
27431
27810
  };
27432
27811
 
27433
27812
  // src/theme/default/components/form/section.tsx
27434
- var import_jsx_runtime79 = require("react/jsx-runtime");
27813
+ var import_jsx_runtime88 = require("react/jsx-runtime");
27435
27814
  var DefaultFormSection = ({
27436
27815
  children,
27437
27816
  nodes: _nodes,
27438
27817
  ...rest
27439
27818
  }) => {
27440
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
27819
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
27441
27820
  "form",
27442
27821
  {
27443
- className: "flex w-full max-w-(--breakpoint-sm) flex-col px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]",
27822
+ className: "flex w-(--breakpoint-sm) flex-col px-4 md:w-[712px] lg:w-[802px] xl:w-[896px]",
27444
27823
  ...rest,
27445
27824
  children
27446
27825
  }
@@ -27451,10 +27830,10 @@ var DefaultFormSectionContent = ({
27451
27830
  description,
27452
27831
  children
27453
27832
  }) => {
27454
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
27455
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
27456
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
27457
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
27833
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
27834
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-2", children: [
27835
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
27836
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
27458
27837
  ] }),
27459
27838
  children
27460
27839
  ] });
@@ -27463,14 +27842,14 @@ var DefaultFormSectionFooter = ({
27463
27842
  children,
27464
27843
  text
27465
27844
  }) => {
27466
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
27845
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
27467
27846
  "div",
27468
27847
  {
27469
27848
  className: cn(
27470
27849
  "flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
27471
27850
  ),
27472
27851
  children: [
27473
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { children: text }),
27852
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("span", { children: text }),
27474
27853
  children
27475
27854
  ]
27476
27855
  }
@@ -27480,35 +27859,42 @@ var DefaultFormSectionFooter = ({
27480
27859
  // src/theme/default/components/form/text.tsx
27481
27860
  var import_elements_react17 = require("@ory/elements-react");
27482
27861
  var import_react_intl21 = require("react-intl");
27483
- var import_jsx_runtime80 = require("react/jsx-runtime");
27484
- function DefaultText({ node, attributes }) {
27485
- var _a;
27862
+ var import_jsx_runtime89 = require("react/jsx-runtime");
27863
+ function DefaultText({ node }) {
27486
27864
  const intl = (0, import_react_intl21.useIntl)();
27487
- const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
27488
- if (lookup) {
27489
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
27490
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
27491
- lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
27492
- "pre",
27493
- {
27494
- "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
27495
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0, import_elements_react17.uiTextToFormattedMessage)(text, intl) : "" })
27496
- },
27497
- index
27498
- ))
27499
- ] });
27865
+ if (node.attributes.id === "totp_secret_key") {
27866
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
27867
+ DefaultLabel,
27868
+ {
27869
+ node,
27870
+ attributes: node.attributes,
27871
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "relative flex max-w-[488px] justify-stretch", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
27872
+ DefaultInput.TextInput,
27873
+ {
27874
+ disabled: true,
27875
+ name: "totp_secret_key",
27876
+ type: "text",
27877
+ value: node.attributes.text.text,
27878
+ "data-testid": `ory/form/node/input/totp_secret_key`
27879
+ }
27880
+ ) })
27881
+ }
27882
+ );
27883
+ }
27884
+ if (node.attributes.id === "lookup_secret_codes") {
27885
+ throw new Error("node `lookup_secret_codes` cannot be rendered as text");
27500
27886
  }
27501
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
27887
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
27502
27888
  "p",
27503
27889
  {
27504
- "data-testid": `ory/form/node/text/${attributes.id}/label`,
27505
- id: attributes.id,
27890
+ "data-testid": `ory/form/node/text/${node.attributes.id}/label`,
27891
+ id: node.attributes.id,
27506
27892
  children: [
27507
- node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
27508
- attributes.text ? (0, import_elements_react17.uiTextToFormattedMessage)(attributes.text, intl) : ""
27893
+ node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("label", { children: (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
27894
+ node.attributes.text ? (0, import_elements_react17.uiTextToFormattedMessage)(node.attributes.text, intl) : ""
27509
27895
  ]
27510
27896
  }
27511
- ) });
27897
+ );
27512
27898
  }
27513
27899
 
27514
27900
  // src/theme/default/components/generic/page-header.tsx
@@ -27520,21 +27906,21 @@ var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
27520
27906
 
27521
27907
  // src/theme/default/assets/icons/logout.svg
27522
27908
  var React27 = __toESM(require("react"));
27523
- var import_jsx_runtime81 = require("react/jsx-runtime");
27909
+ var import_jsx_runtime90 = require("react/jsx-runtime");
27524
27910
  var SvgLogout = (props) => {
27525
27911
  var _a, _b;
27526
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
27912
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
27527
27913
  };
27528
27914
  var logout_default = SvgLogout;
27529
27915
 
27530
27916
  // src/theme/default/assets/icons/settings.svg
27531
27917
  var React28 = __toESM(require("react"));
27532
- var import_jsx_runtime82 = require("react/jsx-runtime");
27918
+ var import_jsx_runtime91 = require("react/jsx-runtime");
27533
27919
  var SvgSettings = (props) => {
27534
27920
  var _a, _b;
27535
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
27536
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
27537
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
27921
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
27922
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
27923
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
27538
27924
  ] }) });
27539
27925
  };
27540
27926
  var settings_default = SvgSettings;
@@ -27579,12 +27965,12 @@ var getUserInitials = (session) => {
27579
27965
  };
27580
27966
 
27581
27967
  // src/theme/default/components/ui/dropdown-menu.tsx
27582
- var import_react18 = require("react");
27968
+ var import_react21 = require("react");
27583
27969
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
27584
- var import_jsx_runtime83 = require("react/jsx-runtime");
27970
+ var import_jsx_runtime92 = require("react/jsx-runtime");
27585
27971
  var DropdownMenu = DropdownMenuPrimitive.Root;
27586
27972
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
27587
- var DropdownMenuContent = (0, import_react18.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27973
+ var DropdownMenuContent = (0, import_react21.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
27588
27974
  DropdownMenuPrimitive.Content,
27589
27975
  {
27590
27976
  ref,
@@ -27599,7 +27985,7 @@ var DropdownMenuContent = (0, import_react18.forwardRef)(({ className, sideOffse
27599
27985
  }
27600
27986
  ) }));
27601
27987
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
27602
- var DropdownMenuItem = (0, import_react18.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
27988
+ var DropdownMenuItem = (0, import_react21.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
27603
27989
  DropdownMenuPrimitive.Item,
27604
27990
  {
27605
27991
  ref,
@@ -27617,7 +28003,7 @@ var DropdownMenuItem = (0, import_react18.forwardRef)(({ className, inset, ...pr
27617
28003
  }
27618
28004
  ));
27619
28005
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
27620
- var DropdownMenuLabel = (0, import_react18.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
28006
+ var DropdownMenuLabel = (0, import_react21.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
27621
28007
  DropdownMenuPrimitive.Label,
27622
28008
  {
27623
28009
  ref,
@@ -27632,35 +28018,35 @@ var DropdownMenuLabel = (0, import_react18.forwardRef)(({ className, inset, ...p
27632
28018
  DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
27633
28019
 
27634
28020
  // src/theme/default/components/ui/user-avater.tsx
27635
- var import_react19 = require("react");
28021
+ var import_react22 = require("react");
27636
28022
 
27637
28023
  // src/theme/default/assets/icons/user.svg
27638
28024
  var React29 = __toESM(require("react"));
27639
- var import_jsx_runtime84 = require("react/jsx-runtime");
28025
+ var import_jsx_runtime93 = require("react/jsx-runtime");
27640
28026
  var SvgUser = (props) => {
27641
28027
  var _a, _b;
27642
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
28028
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
27643
28029
  };
27644
28030
  var user_default = SvgUser;
27645
28031
 
27646
28032
  // src/theme/default/components/ui/user-avater.tsx
27647
- var import_jsx_runtime85 = require("react/jsx-runtime");
27648
- var UserAvatar = (0, import_react19.forwardRef)(
28033
+ var import_jsx_runtime94 = require("react/jsx-runtime");
28034
+ var UserAvatar = (0, import_react22.forwardRef)(
27649
28035
  ({ initials, ...rest }, ref) => {
27650
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
28036
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
27651
28037
  "button",
27652
28038
  {
27653
28039
  ref,
27654
28040
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
27655
28041
  ...rest,
27656
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
28042
+ children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
27657
28043
  "img",
27658
28044
  {
27659
28045
  src: initials.avatar,
27660
28046
  alt: initials.primary,
27661
28047
  className: "w-full object-contain"
27662
28048
  }
27663
- ) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
28049
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
27664
28050
  user_default,
27665
28051
  {
27666
28052
  size: 24,
@@ -27674,27 +28060,27 @@ var UserAvatar = (0, import_react19.forwardRef)(
27674
28060
  UserAvatar.displayName = "UserAvatar";
27675
28061
 
27676
28062
  // src/theme/default/components/ui/user-menu.tsx
27677
- var import_jsx_runtime86 = require("react/jsx-runtime");
28063
+ var import_jsx_runtime95 = require("react/jsx-runtime");
27678
28064
  var UserMenu = ({ session }) => {
27679
28065
  const config = (0, import_elements_react18.useOryConfiguration)();
27680
28066
  const initials = getUserInitials(session);
27681
28067
  const { logoutFlow } = useClientLogout(config);
27682
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenu, { children: [
27683
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
27684
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenuContent, { children: [
27685
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
27686
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(UserAvatar, { disabled: true, initials }),
27687
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
27688
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "leading-tight font-medium text-interface-foreground-default-primary", children: initials.primary }),
27689
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "leading-tight text-interface-foreground-default-tertiary", children: initials.secondary })
28068
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(DropdownMenu, { children: [
28069
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(UserAvatar, { initials, title: "User Menu" }) }),
28070
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(DropdownMenuContent, { children: [
28071
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
28072
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(UserAvatar, { disabled: true, initials }),
28073
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
28074
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "leading-tight font-medium text-interface-foreground-default-primary", children: initials.primary }),
28075
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "leading-tight text-interface-foreground-default-tertiary", children: initials.secondary })
27690
28076
  ] })
27691
28077
  ] }),
27692
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: config.project.settings_ui_url, children: [
27693
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(settings_default, { size: 16 }),
28078
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("a", { href: config.project.settings_ui_url, children: [
28079
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(settings_default, { size: 16 }),
27694
28080
  " User settings"
27695
28081
  ] }) }),
27696
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
27697
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(logout_default, { size: 16 }),
28082
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
28083
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(logout_default, { size: 16 }),
27698
28084
  " Logout"
27699
28085
  ] }) })
27700
28086
  ] })
@@ -27704,7 +28090,7 @@ var UserMenu = ({ session }) => {
27704
28090
  // src/theme/default/components/generic/page-header.tsx
27705
28091
  var import_client4 = require("@ory/elements-react/client");
27706
28092
  var import_react_intl22 = require("react-intl");
27707
- var import_jsx_runtime87 = require("react/jsx-runtime");
28093
+ var import_jsx_runtime96 = require("react/jsx-runtime");
27708
28094
  var DefaultPageHeader = (_props) => {
27709
28095
  var _a;
27710
28096
  const { Card } = (0, import_elements_react19.useComponents)();
@@ -27713,19 +28099,19 @@ var DefaultPageHeader = (_props) => {
27713
28099
  const { flow } = (0, import_elements_react19.useOryFlow)();
27714
28100
  const config = (0, import_elements_react19.useOryConfiguration)();
27715
28101
  const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
27716
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-16 flex w-full max-w-(--breakpoint-sm) flex-col gap-3 px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
27717
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 items-center justify-between gap-2", children: [
27718
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "h-9", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}) }),
27719
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
28102
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "mt-16 flex w-full max-w-(--breakpoint-sm) flex-col gap-3 px-4 md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px]", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-12", children: [
28103
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex max-h-10 flex-1 items-center justify-between gap-2", children: [
28104
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "h-9", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card.Logo, {}) }),
28105
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(UserMenu, { session })
27720
28106
  ] }),
27721
- returnUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
28107
+ returnUrl && /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
27722
28108
  "a",
27723
28109
  {
27724
28110
  "data-testid": "ory/screen/settings/back-button",
27725
28111
  href: returnUrl,
27726
28112
  className: "inline-flex items-center gap-2 text-button-link-default-primary hover:text-button-link-default-primary-hover",
27727
28113
  children: [
27728
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
28114
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(arrow_left_default, {}),
27729
28115
  " ",
27730
28116
  intl.formatMessage({
27731
28117
  id: "settings.navigation-back-button",
@@ -27738,83 +28124,94 @@ var DefaultPageHeader = (_props) => {
27738
28124
  };
27739
28125
 
27740
28126
  // src/theme/default/components/settings/settings-oidc.tsx
27741
- var import_react20 = require("react");
27742
- var import_react_hook_form21 = require("react-hook-form");
27743
- var import_usehooks_ts3 = require("usehooks-ts");
28127
+ var import_elements_react20 = require("@ory/elements-react");
28128
+ var import_react23 = require("react");
28129
+ var import_usehooks_ts4 = require("usehooks-ts");
27744
28130
 
27745
28131
  // src/theme/default/assets/icons/trash.svg
27746
28132
  var React30 = __toESM(require("react"));
27747
- var import_jsx_runtime88 = require("react/jsx-runtime");
28133
+ var import_jsx_runtime97 = require("react/jsx-runtime");
27748
28134
  var SvgTrash = (props) => {
27749
28135
  var _a, _b;
27750
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
28136
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
27751
28137
  };
27752
28138
  var trash_default = SvgTrash;
27753
28139
 
27754
28140
  // src/theme/default/components/settings/settings-oidc.tsx
27755
- var import_jsx_runtime89 = require("react/jsx-runtime");
28141
+ var import_jsx_runtime98 = require("react/jsx-runtime");
28142
+ function extractProvider2(context) {
28143
+ if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
28144
+ return context.provider;
28145
+ }
28146
+ return void 0;
28147
+ }
27756
28148
  function DefaultSettingsOidc({
27757
28149
  linkButtons,
27758
- unlinkButtons
28150
+ unlinkButtons,
28151
+ isSubmitting
27759
28152
  }) {
27760
28153
  const hasLinkButtons = linkButtons.length > 0;
27761
28154
  const hasUnlinkButtons = unlinkButtons.length > 0;
27762
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-8", children: [
27763
- hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "grid grid-cols-1 items-start gap-3 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
27764
- const attrs = button.attributes;
27765
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
27766
- DefaultButtonSocial,
28155
+ const { Node: Node5 } = (0, import_elements_react20.useComponents)();
28156
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col gap-8", children: [
28157
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 items-start gap-3 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
28158
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
28159
+ Node5.SsoButton,
27767
28160
  {
27768
- showLabel: true,
27769
28161
  node: button,
27770
- attributes: attrs,
27771
- onClick: button.onClick
28162
+ buttonProps: button.buttonProps,
28163
+ attributes: button.attributes,
28164
+ isSubmitting,
28165
+ provider: (button.attributes.value + "").split("-")[0]
27772
28166
  },
27773
- attrs.value
28167
+ button.attributes.value
27774
28168
  );
27775
28169
  }) }),
27776
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DefaultHorizontalDivider, {}) : null,
28170
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(DefaultHorizontalDivider, {}) : null,
27777
28171
  unlinkButtons.map((button) => {
27778
28172
  if (button.attributes.node_type !== "input") {
27779
28173
  return null;
27780
28174
  }
27781
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(UnlinkRow, { button }, button.attributes.value);
28175
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
28176
+ UnlinkRow,
28177
+ {
28178
+ button,
28179
+ isSubmitting
28180
+ },
28181
+ button.attributes.value
28182
+ );
27782
28183
  })
27783
28184
  ] });
27784
28185
  }
27785
- function UnlinkRow({ button }) {
28186
+ function UnlinkRow({ button, isSubmitting }) {
27786
28187
  var _a, _b;
27787
- const [clicked, setClicked] = (0, import_usehooks_ts3.useDebounceValue)(false, 100);
27788
- const {
27789
- formState: { isSubmitting }
27790
- } = (0, import_react_hook_form21.useFormContext)();
27791
- const attrs = button.attributes;
27792
- const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
27793
- const Logo = provider_logos_default[attrs.value.split("-")[0]];
28188
+ const [clicked, setClicked] = (0, import_usehooks_ts4.useDebounceValue)(false, 100);
28189
+ const provider = (_b = extractProvider2((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
28190
+ const Logo = provider_logos_default[button.attributes.value.split("-")[0]];
27794
28191
  const localOnClick = () => {
27795
28192
  button.onClick();
27796
28193
  setClicked(true);
27797
28194
  };
27798
- (0, import_react20.useEffect)(() => {
28195
+ (0, import_react23.useEffect)(() => {
27799
28196
  if (!isSubmitting) {
27800
28197
  setClicked(false);
27801
28198
  }
27802
28199
  }, [isSubmitting, setClicked]);
27803
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between", children: [
27804
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-6", children: [
27805
- Logo ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
27806
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
28200
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex justify-between", children: [
28201
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-center gap-6", children: [
28202
+ Logo ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
28203
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
27807
28204
  ] }),
27808
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
28205
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
27809
28206
  "button",
27810
28207
  {
27811
- ...omitInputAttributes(attrs),
28208
+ ...omitInputAttributes(button.attributes),
27812
28209
  type: "submit",
27813
28210
  onClick: localOnClick,
27814
28211
  disabled: isSubmitting,
27815
28212
  className: "relative",
27816
28213
  title: `Unlink ${provider}`,
27817
- children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
28214
+ children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
27818
28215
  trash_default,
27819
28216
  {
27820
28217
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -27823,71 +28220,69 @@ function UnlinkRow({ button }) {
27823
28220
  )
27824
28221
  }
27825
28222
  )
27826
- ] }, attrs.value);
28223
+ ] });
27827
28224
  }
27828
28225
 
27829
28226
  // src/theme/default/components/settings/settings-passkey.tsx
27830
- var import_elements_react20 = require("@ory/elements-react");
27831
- var import_react_hook_form22 = require("react-hook-form");
27832
- var import_jsx_runtime90 = require("react/jsx-runtime");
28227
+ var import_elements_react21 = require("@ory/elements-react");
28228
+ var import_jsx_runtime99 = require("react/jsx-runtime");
27833
28229
  function DefaultSettingsPasskey({
27834
28230
  triggerButton,
27835
- removeButtons
28231
+ removeButtons,
28232
+ isSubmitting
27836
28233
  }) {
27837
- const {
27838
- formState: { isSubmitting }
27839
- } = (0, import_react_hook_form22.useFormContext)();
27840
- const { Node: Node2 } = (0, import_elements_react20.useComponents)();
28234
+ const { Node: Node5 } = (0, import_elements_react21.useComponents)();
27841
28235
  const hasRemoveButtons = removeButtons.length > 0;
27842
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
27843
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
27844
- Node2.Button,
28236
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-8", children: [
28237
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
28238
+ Node5.Button,
27845
28239
  {
27846
28240
  node: triggerButton,
27847
28241
  attributes: triggerButton.attributes,
27848
- onClick: triggerButton.onClick
28242
+ buttonProps: triggerButton.buttonProps,
28243
+ isSubmitting
27849
28244
  }
27850
28245
  ) }),
27851
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
27852
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DefaultHorizontalDivider, {}),
27853
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
28246
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-8", children: [
28247
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DefaultHorizontalDivider, {}),
28248
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
27854
28249
  var _a, _b;
27855
28250
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
27856
28251
  const addedAt = "added_at" in context ? context.added_at : null;
27857
28252
  const displayName = "display_name" in context ? context.display_name : null;
27858
28253
  const keyId = "value" in node.attributes ? node.attributes.value : null;
27859
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
28254
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
27860
28255
  "div",
27861
28256
  {
27862
28257
  className: "flex justify-between gap-6 md:items-center",
27863
28258
  children: [
27864
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
27865
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
28259
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
28260
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
27866
28261
  passkey_default,
27867
28262
  {
27868
28263
  size: 32,
27869
28264
  className: "text-interface-foreground-default-primary"
27870
28265
  }
27871
28266
  ),
27872
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
27873
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
27874
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
27875
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
28267
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
28268
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
28269
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
28270
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
27876
28271
  ] }),
27877
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
28272
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
27878
28273
  dateStyle: "long"
27879
28274
  }).format(new Date(addedAt)) })
27880
28275
  ] })
27881
28276
  ] }),
27882
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
28277
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
27883
28278
  "button",
27884
28279
  {
27885
28280
  ...node.attributes,
27886
28281
  type: "submit",
27887
- onClick: node.onClick,
28282
+ onClick: node.buttonProps.onClick,
27888
28283
  disabled: isSubmitting,
27889
28284
  className: "relative",
27890
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
28285
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
27891
28286
  trash_default,
27892
28287
  {
27893
28288
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -27907,35 +28302,32 @@ function DefaultSettingsPasskey({
27907
28302
 
27908
28303
  // src/theme/default/assets/icons/download.svg
27909
28304
  var React31 = __toESM(require("react"));
27910
- var import_jsx_runtime91 = require("react/jsx-runtime");
28305
+ var import_jsx_runtime100 = require("react/jsx-runtime");
27911
28306
  var SvgDownload = (props) => {
27912
28307
  var _a, _b;
27913
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
28308
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
27914
28309
  };
27915
28310
  var download_default = SvgDownload;
27916
28311
 
27917
28312
  // src/theme/default/assets/icons/refresh.svg
27918
28313
  var React32 = __toESM(require("react"));
27919
- var import_jsx_runtime92 = require("react/jsx-runtime");
28314
+ var import_jsx_runtime101 = require("react/jsx-runtime");
27920
28315
  var SvgRefresh = (props) => {
27921
28316
  var _a, _b;
27922
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
28317
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
27923
28318
  };
27924
28319
  var refresh_default = SvgRefresh;
27925
28320
 
27926
28321
  // src/theme/default/components/settings/settings-recovery-codes.tsx
27927
- var import_react_hook_form23 = require("react-hook-form");
27928
- var import_jsx_runtime93 = require("react/jsx-runtime");
28322
+ var import_jsx_runtime102 = require("react/jsx-runtime");
27929
28323
  function DefaultSettingsRecoveryCodes({
27930
28324
  codes,
27931
- regnerateButton,
28325
+ regenerateButton,
27932
28326
  revealButton,
27933
28327
  onRegenerate,
27934
- onReveal
28328
+ onReveal,
28329
+ isSubmitting
27935
28330
  }) {
27936
- const {
27937
- formState: { isSubmitting }
27938
- } = (0, import_react_hook_form23.useFormContext)();
27939
28331
  const onDownload = () => {
27940
28332
  const element = document.createElement("a");
27941
28333
  const file = new Blob([codes.join("\n")], {
@@ -27947,21 +28339,21 @@ function DefaultSettingsRecoveryCodes({
27947
28339
  element.click();
27948
28340
  };
27949
28341
  const hasCodes = codes.length >= 1;
27950
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
27951
- codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(DefaultHorizontalDivider, {}),
27952
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex justify-between gap-4", children: [
27953
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
27954
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-2", children: [
27955
- regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28342
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col gap-8", children: [
28343
+ codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(DefaultHorizontalDivider, {}),
28344
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex justify-between gap-4", children: [
28345
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
28346
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex gap-2", children: [
28347
+ regenerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27956
28348
  "button",
27957
28349
  {
27958
- ...regnerateButton.attributes,
28350
+ ...omitInputAttributes(regenerateButton.attributes),
27959
28351
  type: "submit",
27960
28352
  className: "ml-auto",
27961
28353
  onClick: onRegenerate,
27962
28354
  disabled: isSubmitting,
27963
28355
  "data-loading": isSubmitting,
27964
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28356
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27965
28357
  refresh_default,
27966
28358
  {
27967
28359
  size: 24,
@@ -27970,7 +28362,7 @@ function DefaultSettingsRecoveryCodes({
27970
28362
  )
27971
28363
  }
27972
28364
  ),
27973
- revealButton && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_jsx_runtime93.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28365
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_jsx_runtime102.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27974
28366
  "button",
27975
28367
  {
27976
28368
  ...revealButton.attributes,
@@ -27978,7 +28370,7 @@ function DefaultSettingsRecoveryCodes({
27978
28370
  className: "ml-auto",
27979
28371
  onClick: onReveal,
27980
28372
  title: "Reveal recovery codes",
27981
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28373
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27982
28374
  eye_default,
27983
28375
  {
27984
28376
  size: 24,
@@ -27987,7 +28379,7 @@ function DefaultSettingsRecoveryCodes({
27987
28379
  )
27988
28380
  }
27989
28381
  ) }),
27990
- hasCodes && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28382
+ hasCodes && /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27991
28383
  "button",
27992
28384
  {
27993
28385
  onClick: onDownload,
@@ -27995,7 +28387,7 @@ function DefaultSettingsRecoveryCodes({
27995
28387
  className: "ml-auto",
27996
28388
  "data-testid": "ory/screen/settings/group/recovery_code/download",
27997
28389
  title: "Download recovery codes",
27998
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28390
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
27999
28391
  download_default,
28000
28392
  {
28001
28393
  size: 24,
@@ -28006,215 +28398,179 @@ function DefaultSettingsRecoveryCodes({
28006
28398
  )
28007
28399
  ] })
28008
28400
  ] }),
28009
- hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "rounded-general border-interface-border-default-primary bg-interface-background-default-secondary p-6", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
28401
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "rounded-general border-interface-border-default-primary bg-interface-background-default-secondary p-6", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
28010
28402
  "div",
28011
28403
  {
28012
28404
  className: "grid grid-cols-2 flex-wrap gap-4 text-sm text-interface-foreground-default-primary sm:grid-cols-3 md:grid-cols-5",
28013
28405
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
28014
- children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { children: code }, code))
28406
+ children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { children: code }, code))
28015
28407
  }
28016
28408
  ) }) : null
28017
28409
  ] });
28018
28410
  }
28019
28411
 
28020
28412
  // src/theme/default/components/settings/settings-totp.tsx
28021
- var import_elements_react21 = require("@ory/elements-react");
28413
+ var import_elements_react22 = require("@ory/elements-react");
28022
28414
 
28023
28415
  // src/theme/default/assets/icons/qrcode.svg
28024
28416
  var React33 = __toESM(require("react"));
28025
- var import_jsx_runtime94 = require("react/jsx-runtime");
28417
+ var import_jsx_runtime103 = require("react/jsx-runtime");
28026
28418
  var SvgQrcode = (props) => {
28027
28419
  var _a, _b;
28028
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
28420
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
28029
28421
  };
28030
28422
  var qrcode_default = SvgQrcode;
28031
28423
 
28032
28424
  // src/theme/default/components/settings/settings-totp.tsx
28033
- var import_react_hook_form24 = require("react-hook-form");
28034
- var import_jsx_runtime95 = require("react/jsx-runtime");
28425
+ var import_jsx_runtime104 = require("react/jsx-runtime");
28035
28426
  function DefaultSettingsTotp({
28036
28427
  totpImage,
28037
28428
  totpInput,
28038
28429
  totpSecret,
28039
28430
  totpUnlink,
28040
- onUnlink
28431
+ onUnlink,
28432
+ isSubmitting
28041
28433
  }) {
28042
- const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
28043
- const {
28044
- formState: { isSubmitting }
28045
- } = (0, import_react_hook_form24.useFormContext)();
28046
28434
  if (totpUnlink) {
28047
- const {
28048
- type,
28049
- autocomplete: _ignoredAutocomplete,
28050
- label: _ignoredLabel,
28051
- node_type: _ignoredNodeType,
28052
- ...buttonAttrs
28053
- } = totpUnlink.attributes;
28054
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
28055
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Card.Divider, {}) }),
28056
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
28057
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square size-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(qrcode_default, { size: 32 }) }),
28058
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
28059
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28060
- "button",
28061
- {
28062
- type: type === "button" ? "button" : "submit",
28063
- ...buttonAttrs,
28064
- onClick: onUnlink,
28065
- disabled: isSubmitting,
28066
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28067
- trash_default,
28068
- {
28069
- className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
28070
- size: 24
28071
- }
28072
- )
28073
- }
28074
- )
28075
- ] })
28076
- ] });
28435
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
28436
+ SettingsTotpUnlink,
28437
+ {
28438
+ totpUnlinkAttributes: totpUnlink.attributes,
28439
+ onUnlink,
28440
+ isSubmitting
28441
+ }
28442
+ );
28077
28443
  }
28078
28444
  if (totpImage && totpSecret && totpInput) {
28079
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
28080
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DefaultHorizontalDivider, {}) }),
28081
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "aspect-square h-44 bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28082
- Node2.Image,
28445
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
28446
+ SettingsTotpLink,
28447
+ {
28448
+ totpImage,
28449
+ totpSecret,
28450
+ totpInput
28451
+ }
28452
+ );
28453
+ }
28454
+ }
28455
+ function SettingsTotpUnlink({
28456
+ totpUnlinkAttributes,
28457
+ onUnlink,
28458
+ isSubmitting
28459
+ }) {
28460
+ const { Card } = (0, import_elements_react22.useComponents)();
28461
+ const {
28462
+ type,
28463
+ autocomplete: _ignoredAutocomplete,
28464
+ label: _ignoredLabel,
28465
+ node_type: _ignoredNodeType,
28466
+ ...buttonAttrs
28467
+ } = totpUnlinkAttributes;
28468
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
28469
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Card.Divider, {}) }),
28470
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
28471
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "aspect-square size-8", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(qrcode_default, { size: 32 }) }),
28472
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
28473
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
28474
+ "button",
28083
28475
  {
28084
- node: totpImage,
28085
- attributes: {
28086
- ...totpImage.attributes
28087
- }
28476
+ type: type === "button" ? "button" : "submit",
28477
+ ...buttonAttrs,
28478
+ onClick: onUnlink,
28479
+ disabled: isSubmitting,
28480
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
28481
+ trash_default,
28482
+ {
28483
+ className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
28484
+ size: 24
28485
+ }
28486
+ )
28088
28487
  }
28089
- ) }) }) }),
28090
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-6", children: [
28091
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28092
- Node2.Label,
28093
- {
28094
- node: totpSecret,
28095
- attributes: totpSecret.attributes,
28096
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative flex max-w-[488px] justify-stretch", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28097
- "input",
28098
- {
28099
- disabled: true,
28100
- name: "totp_secret_key",
28101
- type: "text",
28102
- value: totpSecret.attributes.text.text,
28103
- "data-testid": `ory/form/node/input/totp_secret_key`,
28104
- className: defaultInputClassName
28105
- }
28106
- ) })
28107
- }
28108
- ),
28109
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28110
- Node2.Label,
28111
- {
28112
- attributes: totpInput.attributes,
28113
- node: totpInput,
28114
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
28115
- Node2.CodeInput,
28116
- {
28117
- node: totpInput,
28118
- attributes: totpInput.attributes
28119
- }
28120
- )
28121
- }
28122
- )
28123
- ] })
28124
- ] });
28125
- }
28488
+ )
28489
+ ] })
28490
+ ] });
28491
+ }
28492
+ function SettingsTotpLink({
28493
+ totpImage,
28494
+ totpSecret,
28495
+ totpInput
28496
+ }) {
28497
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
28498
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(DefaultHorizontalDivider, {}) }),
28499
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "aspect-square h-44 bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.Node, { node: totpImage }) }) }) }),
28500
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-6", children: [
28501
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.Node, { node: totpSecret }),
28502
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react22.Node, { node: totpInput })
28503
+ ] })
28504
+ ] });
28126
28505
  }
28127
28506
 
28128
28507
  // src/theme/default/components/settings/settings-webauthn.tsx
28129
- var import_elements_react22 = require("@ory/elements-react");
28508
+ var import_elements_react23 = require("@ory/elements-react");
28130
28509
 
28131
28510
  // src/theme/default/assets/icons/key.svg
28132
28511
  var React34 = __toESM(require("react"));
28133
- var import_jsx_runtime96 = require("react/jsx-runtime");
28512
+ var import_jsx_runtime105 = require("react/jsx-runtime");
28134
28513
  var SvgKey = (props) => {
28135
28514
  var _a, _b;
28136
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
28515
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 32 32", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
28137
28516
  };
28138
28517
  var key_default = SvgKey;
28139
28518
 
28140
28519
  // src/theme/default/components/settings/settings-webauthn.tsx
28141
- var import_react_hook_form25 = require("react-hook-form");
28142
- var import_jsx_runtime97 = require("react/jsx-runtime");
28520
+ var import_jsx_runtime106 = require("react/jsx-runtime");
28143
28521
  function DefaultSettingsWebauthn({
28144
28522
  nameInput,
28145
28523
  triggerButton,
28146
- removeButtons
28524
+ removeButtons,
28525
+ isSubmitting
28147
28526
  }) {
28148
- const {
28149
- formState: { isSubmitting }
28150
- } = (0, import_react_hook_form25.useFormContext)();
28151
- const { Node: Node2, Card } = (0, import_elements_react22.useComponents)();
28527
+ const { Card } = (0, import_elements_react23.useComponents)();
28152
28528
  const hasRemoveButtons = removeButtons.length > 0;
28153
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
28154
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-end md:max-w-96", children: [
28155
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28156
- Node2.Label,
28157
- {
28158
- node: nameInput,
28159
- attributes: nameInput.attributes,
28160
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28161
- Node2.Input,
28162
- {
28163
- node: nameInput,
28164
- attributes: nameInput.attributes
28165
- }
28166
- )
28167
- }
28168
- ) }),
28169
- triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28170
- Node2.Button,
28171
- {
28172
- node: triggerButton,
28173
- attributes: triggerButton.attributes,
28174
- onClick: triggerButton.onClick
28175
- }
28176
- ) : null
28529
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-8", children: [
28530
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-end md:max-w-96", children: [
28531
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react23.Node.Input, { node: nameInput }) }),
28532
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react23.Node.Button, { node: triggerButton }) : null
28177
28533
  ] }),
28178
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
28179
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card.Divider, {}),
28180
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
28534
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-8", children: [
28535
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Card.Divider, {}),
28536
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
28181
28537
  var _a, _b;
28182
28538
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
28183
28539
  const addedAt = "added_at" in context ? context.added_at : null;
28184
28540
  const displayName = "display_name" in context ? context.display_name : null;
28185
28541
  const keyId = "value" in node.attributes ? node.attributes.value : null;
28186
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
28542
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
28187
28543
  "div",
28188
28544
  {
28189
28545
  className: "flex justify-between gap-6 md:items-center",
28190
28546
  children: [
28191
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
28192
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28547
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-1 items-center gap-2 truncate", children: [
28548
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28193
28549
  key_default,
28194
28550
  {
28195
28551
  size: 32,
28196
28552
  className: "text-interface-foreground-default-primary"
28197
28553
  }
28198
28554
  ),
28199
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
28200
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
28201
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
28202
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
28555
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-1 flex-col gap-4 truncate md:flex-row md:items-center md:justify-between", children: [
28556
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
28557
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "truncate text-sm font-medium text-interface-foreground-default-secondary", children: displayName }),
28558
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "hidden truncate text-sm text-interface-foreground-default-tertiary sm:block", children: keyId })
28203
28559
  ] }),
28204
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
28560
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
28205
28561
  dateStyle: "long"
28206
28562
  }).format(new Date(addedAt)) })
28207
28563
  ] })
28208
28564
  ] }),
28209
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28565
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28210
28566
  "button",
28211
28567
  {
28212
- ...node.attributes,
28568
+ ...omitInputAttributes(node.attributes),
28213
28569
  type: "submit",
28214
- onClick: node.onClick,
28570
+ onClick: node.buttonProps.onClick,
28215
28571
  disabled: isSubmitting,
28216
- className: "relative",
28217
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
28572
+ className: "relative cursor-pointer",
28573
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28218
28574
  trash_default,
28219
28575
  {
28220
28576
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -28233,25 +28589,25 @@ function DefaultSettingsWebauthn({
28233
28589
  }
28234
28590
 
28235
28591
  // src/theme/default/components/card/auth-method-list-container.tsx
28236
- var import_jsx_runtime98 = require("react/jsx-runtime");
28592
+ var import_jsx_runtime107 = require("react/jsx-runtime");
28237
28593
  function DefaultAuthMethodListContainer({
28238
28594
  children
28239
28595
  }) {
28240
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
28596
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
28241
28597
  }
28242
28598
 
28243
28599
  // src/theme/default/components/form/captcha.tsx
28244
- var import_client_fetch41 = require("@ory/client-fetch");
28245
28600
  var import_react_turnstile = require("@marsidev/react-turnstile");
28246
- var import_react21 = require("react");
28247
- var import_react_hook_form26 = require("react-hook-form");
28248
- var import_jsx_runtime99 = require("react/jsx-runtime");
28601
+ var import_client_fetch43 = require("@ory/client-fetch");
28602
+ var import_react24 = require("react");
28603
+ var import_react_hook_form19 = require("react-hook-form");
28604
+ var import_jsx_runtime108 = require("react/jsx-runtime");
28249
28605
  var DefaultCaptcha = ({ node }) => {
28250
- const { setValue, formState } = (0, import_react_hook_form26.useFormContext)();
28251
- const ref = (0, import_react21.useRef)();
28252
- const prevSubmitCount = (0, import_react21.useRef)(formState.submitCount);
28253
- (0, import_react21.useEffect)(() => {
28254
- if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
28606
+ const { setValue, formState } = (0, import_react_hook_form19.useFormContext)();
28607
+ const ref = (0, import_react24.useRef)();
28608
+ const prevSubmitCount = (0, import_react24.useRef)(formState.submitCount);
28609
+ (0, import_react24.useEffect)(() => {
28610
+ if (formState.submitCount > prevSubmitCount.current) {
28255
28611
  prevSubmitCount.current = formState.submitCount;
28256
28612
  setTimeout(() => {
28257
28613
  if (ref.current) {
@@ -28259,15 +28615,15 @@ var DefaultCaptcha = ({ node }) => {
28259
28615
  }
28260
28616
  }, 100);
28261
28617
  }
28262
- }, [formState.submitCount, formState.isSubmitSuccessful]);
28263
- if (!(0, import_client_fetch41.isUiNodeInputAttributes)(node.attributes)) {
28618
+ }, [formState.submitCount]);
28619
+ if (!(0, import_client_fetch43.isUiNodeInputAttributes)(node.attributes)) {
28264
28620
  return null;
28265
28621
  }
28266
28622
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
28267
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(DefaultInput, { node, attributes: node.attributes }, 1);
28623
+ return null;
28268
28624
  } else if (node.attributes.name === "captcha_turnstile_options") {
28269
28625
  const options = JSON.parse(node.attributes.value);
28270
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
28626
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
28271
28627
  import_react_turnstile.Turnstile,
28272
28628
  {
28273
28629
  ref,
@@ -28276,7 +28632,7 @@ var DefaultCaptcha = ({ node }) => {
28276
28632
  action: options.action,
28277
28633
  size: "flexible",
28278
28634
  theme: options.theme,
28279
- responseField: false,
28635
+ responseField: true,
28280
28636
  responseFieldName: options.response_field_name
28281
28637
  },
28282
28638
  onExpire: () => {
@@ -28294,35 +28650,35 @@ var DefaultCaptcha = ({ node }) => {
28294
28650
 
28295
28651
  // src/theme/default/assets/icons/personal.svg
28296
28652
  var React35 = __toESM(require("react"));
28297
- var import_jsx_runtime100 = require("react/jsx-runtime");
28653
+ var import_jsx_runtime109 = require("react/jsx-runtime");
28298
28654
  var SvgPersonal = (props) => {
28299
28655
  var _a, _b;
28300
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
28656
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 16 16", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 14v-1.333A2.667 2.667 0 0 1 6.667 10h1m5.8 3.467 1.2 1.2m-9.334-10a2.667 2.667 0 1 0 5.334 0 2.667 2.667 0 0 0-5.334 0M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }) });
28301
28657
  };
28302
28658
  var personal_default = SvgPersonal;
28303
28659
 
28304
28660
  // src/theme/default/assets/icons/message.svg
28305
28661
  var React36 = __toESM(require("react"));
28306
- var import_jsx_runtime101 = require("react/jsx-runtime");
28662
+ var import_jsx_runtime110 = require("react/jsx-runtime");
28307
28663
  var SvgMessage = (props) => {
28308
28664
  var _a, _b;
28309
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
28665
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M3 7.325a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2m-18 0v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-10m-18 0 9 6 9-6" }) });
28310
28666
  };
28311
28667
  var message_default = SvgMessage;
28312
28668
 
28313
28669
  // src/theme/default/assets/icons/phone.svg
28314
28670
  var React37 = __toESM(require("react"));
28315
- var import_jsx_runtime102 = require("react/jsx-runtime");
28671
+ var import_jsx_runtime111 = require("react/jsx-runtime");
28316
28672
  var SvgPhone = (props) => {
28317
28673
  var _a, _b;
28318
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
28674
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
28319
28675
  };
28320
28676
  var phone_default = SvgPhone;
28321
28677
 
28322
28678
  // src/theme/default/components/form/consent-scope-checkbox.tsx
28323
28679
  var import_react_intl23 = require("react-intl");
28324
28680
  var Switch = __toESM(require("@radix-ui/react-switch"));
28325
- var import_jsx_runtime103 = require("react/jsx-runtime");
28681
+ var import_jsx_runtime112 = require("react/jsx-runtime");
28326
28682
  var ScopeIcons = {
28327
28683
  openid: personal_default,
28328
28684
  offline_access: personal_default,
@@ -28332,16 +28688,17 @@ var ScopeIcons = {
28332
28688
  };
28333
28689
  function DefaultConsentScopeCheckbox({
28334
28690
  attributes,
28335
- onCheckedChange
28691
+ onCheckedChange,
28692
+ inputProps
28336
28693
  }) {
28337
28694
  var _a;
28338
28695
  const intl = (0, import_react_intl23.useIntl)();
28339
- const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
28340
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
28696
+ const Icon2 = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
28697
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
28341
28698
  ListItem,
28342
28699
  {
28343
28700
  as: "label",
28344
- icon: Icon,
28701
+ icon: Icon2,
28345
28702
  title: intl.formatMessage({
28346
28703
  id: `consent.scope.${attributes.value}.title`,
28347
28704
  defaultMessage: attributes.value
@@ -28352,15 +28709,15 @@ function DefaultConsentScopeCheckbox({
28352
28709
  }),
28353
28710
  className: "col-span-2",
28354
28711
  "data-testid": "ory/screen/consent/scope-checkbox-label",
28355
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
28712
+ children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
28356
28713
  Switch.Root,
28357
28714
  {
28358
28715
  className: "relative h-4 w-7 rounded-identifier border border-toggle-border-default bg-toggle-background-default p-[3px] transition-all data-[state=checked]:border-toggle-border-checked data-[state=checked]:bg-toggle-background-checked",
28359
28716
  "data-testid": `ory/screen/consent/scope-checkbox`,
28360
- value: attributes.value,
28717
+ ...inputProps,
28361
28718
  onCheckedChange,
28362
28719
  defaultChecked: true,
28363
- children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Switch.Thumb, { className: "block size-2 rounded-identifier bg-toggle-foreground-default transition-all data-[state=checked]:translate-x-3 data-[state=checked]:bg-toggle-foreground-checked" })
28720
+ children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Switch.Thumb, { className: "block size-2 rounded-identifier bg-toggle-foreground-default transition-all data-[state=checked]:translate-x-3 data-[state=checked]:bg-toggle-foreground-checked" })
28364
28721
  }
28365
28722
  )
28366
28723
  }
@@ -28368,21 +28725,21 @@ function DefaultConsentScopeCheckbox({
28368
28725
  }
28369
28726
 
28370
28727
  // src/theme/default/components/generic/toast.tsx
28371
- var import_elements_react23 = require("@ory/elements-react");
28728
+ var import_elements_react24 = require("@ory/elements-react");
28372
28729
  var import_sonner3 = require("sonner");
28373
28730
  var import_react_intl24 = require("react-intl");
28374
28731
 
28375
28732
  // src/theme/default/assets/icons/x.svg
28376
28733
  var React38 = __toESM(require("react"));
28377
- var import_jsx_runtime104 = require("react/jsx-runtime");
28734
+ var import_jsx_runtime113 = require("react/jsx-runtime");
28378
28735
  var SvgX2 = (props) => {
28379
28736
  var _a, _b;
28380
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "m18 6.325-12 12m0-12 12 12" }) });
28737
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 25", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "m18 6.325-12 12m0-12 12 12" }) });
28381
28738
  };
28382
28739
  var x_default2 = SvgX2;
28383
28740
 
28384
28741
  // src/theme/default/components/generic/toast.tsx
28385
- var import_jsx_runtime105 = require("react/jsx-runtime");
28742
+ var import_jsx_runtime114 = require("react/jsx-runtime");
28386
28743
  function DefaultToast({
28387
28744
  message,
28388
28745
  // Id can be used to close the toast later, but we don't use it here
@@ -28390,15 +28747,15 @@ function DefaultToast({
28390
28747
  }) {
28391
28748
  const intl = (0, import_react_intl24.useIntl)();
28392
28749
  const title = message.type === "error" ? intl.formatMessage({ id: "settings.messages.toast-title.error" }) : intl.formatMessage({ id: "settings.messages.toast-title.success" });
28393
- const messageText = (0, import_elements_react23.uiTextToFormattedMessage)(message, intl);
28394
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
28750
+ const messageText = (0, import_elements_react24.uiTextToFormattedMessage)(message, intl);
28751
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
28395
28752
  "div",
28396
28753
  {
28397
28754
  className: "flex-col rounded-cards border border-interface-border-default-primary bg-interface-background-default-inverted px-4 py-2",
28398
- ...(0, import_elements_react23.messageTestId)(message),
28755
+ ...(0, import_elements_react24.messageTestId)(message),
28399
28756
  children: [
28400
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center justify-between", children: [
28401
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
28757
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center justify-between", children: [
28758
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
28402
28759
  "p",
28403
28760
  {
28404
28761
  className: cn("font-medium", {
@@ -28412,17 +28769,17 @@ function DefaultToast({
28412
28769
  children: title
28413
28770
  }
28414
28771
  ),
28415
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
28772
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
28416
28773
  "button",
28417
28774
  {
28418
28775
  "data-testid": `ory/message/${message.id}.close`,
28419
28776
  className: "cursor-pointer text-interface-foreground-default-inverted",
28420
28777
  onClick: () => import_sonner3.toast.dismiss(id),
28421
- children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(x_default2, { size: 16 })
28778
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(x_default2, { size: 16 })
28422
28779
  }
28423
28780
  )
28424
28781
  ] }),
28425
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "text-interface-foreground-default-inverted", children: messageText })
28782
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-interface-foreground-default-inverted", children: messageText })
28426
28783
  ]
28427
28784
  }
28428
28785
  );
@@ -28480,11 +28837,11 @@ function getOryComponents(overrides) {
28480
28837
  }
28481
28838
 
28482
28839
  // src/theme/default/flows/error.tsx
28483
- var import_client_fetch42 = require("@ory/client-fetch");
28484
- var import_elements_react24 = require("@ory/elements-react");
28485
- var import_react22 = require("react");
28840
+ var import_client_fetch44 = require("@ory/client-fetch");
28841
+ var import_elements_react25 = require("@ory/elements-react");
28842
+ var import_react25 = require("react");
28486
28843
  var import_react_intl25 = require("react-intl");
28487
- var import_jsx_runtime106 = require("react/jsx-runtime");
28844
+ var import_jsx_runtime115 = require("react/jsx-runtime");
28488
28845
  function isOAuth2Error(error) {
28489
28846
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
28490
28847
  }
@@ -28493,7 +28850,7 @@ var errorDescriptions = {
28493
28850
  5: "The server encountered an error and could not complete your request"
28494
28851
  };
28495
28852
  function useStandardize(error) {
28496
- return (0, import_react22.useMemo)(() => {
28853
+ return (0, import_react25.useMemo)(() => {
28497
28854
  var _a;
28498
28855
  if (isOAuth2Error(error)) {
28499
28856
  return {
@@ -28503,14 +28860,14 @@ function useStandardize(error) {
28503
28860
  timestamp: /* @__PURE__ */ new Date()
28504
28861
  };
28505
28862
  }
28506
- if ((0, import_client_fetch42.instanceOfFlowError)(error)) {
28863
+ if ((0, import_client_fetch44.instanceOfFlowError)(error)) {
28507
28864
  const parsed = error.error;
28508
28865
  return {
28509
28866
  ...parsed,
28510
28867
  id: error.id,
28511
28868
  timestamp: error.created_at
28512
28869
  };
28513
- } else if (error.error && (0, import_client_fetch42.instanceOfGenericError)(error.error)) {
28870
+ } else if (error.error && (0, import_client_fetch44.instanceOfGenericError)(error.error)) {
28514
28871
  return {
28515
28872
  code: (_a = error.error.code) != null ? _a : 500,
28516
28873
  message: error.error.message,
@@ -28537,48 +28894,48 @@ function Error2({
28537
28894
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
28538
28895
  const parsed = useStandardize(error);
28539
28896
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
28540
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react24.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28897
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_elements_react25.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
28541
28898
  IntlProvider,
28542
28899
  {
28543
28900
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
28544
28901
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
28545
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
28902
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
28546
28903
  "div",
28547
28904
  {
28548
28905
  className: "flex flex-col gap-6 antialiased",
28549
28906
  "data-testid": "ory/screen/error",
28550
28907
  children: [
28551
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
28552
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "max-h-9 self-start", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ErrorLogo, {}) }),
28553
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-2", children: [
28554
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-happened" }) }),
28555
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
28556
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
28908
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
28909
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "max-h-9 self-start", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(ErrorLogo, {}) }),
28910
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-2", children: [
28911
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-happened" }) }),
28912
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
28913
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
28557
28914
  ] })
28558
28915
  ] }),
28559
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Divider, {}),
28560
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-2", children: [
28561
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
28562
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.instructions" }) }),
28563
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(GoBackButton, {}) })
28916
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Divider, {}),
28917
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-2", children: [
28918
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h2", { className: "text-lg leading-normal font-semibold text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
28919
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.instructions" }) }),
28920
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(GoBackButton, {}) })
28564
28921
  ] }),
28565
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Divider, {}),
28566
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-2 leading-normal font-normal antialiased", children: [
28567
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-sm text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.text" }) }),
28568
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28922
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Divider, {}),
28923
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-2 leading-normal font-normal antialiased", children: [
28924
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-sm text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.text" }) }),
28925
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28569
28926
  "ID: ",
28570
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("code", { children: parsed.id })
28927
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("code", { children: parsed.id })
28571
28928
  ] }),
28572
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28929
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28573
28930
  "Time: ",
28574
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
28931
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
28575
28932
  ] }),
28576
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28933
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("p", { className: "text-sm text-interface-foreground-default-secondary", children: [
28577
28934
  "Message:",
28578
28935
  " ",
28579
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("code", { "data-testid": "ory/screen/error/message", children: parsed.reason })
28936
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("code", { "data-testid": "ory/screen/error/message", children: parsed.reason })
28580
28937
  ] }),
28581
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28938
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
28582
28939
  "button",
28583
28940
  {
28584
28941
  className: "text-interface-foreground-default-primary underline",
@@ -28590,7 +28947,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
28590
28947
  `;
28591
28948
  void navigator.clipboard.writeText(text);
28592
28949
  },
28593
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.copy" })
28950
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.copy" })
28594
28951
  }
28595
28952
  ) })
28596
28953
  ] })
@@ -28601,43 +28958,43 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
28601
28958
  ) });
28602
28959
  }
28603
28960
  function LoggedInActions() {
28604
- const config = (0, import_elements_react24.useOryConfiguration)();
28961
+ const config = (0, import_elements_react25.useOryConfiguration)();
28605
28962
  const { logoutFlow } = useClientLogout(config);
28606
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28963
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
28607
28964
  "a",
28608
28965
  {
28609
28966
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
28610
28967
  className: "text-interface-foreground-default-primary underline",
28611
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "login.logout-button" })
28968
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "login.logout-button" })
28612
28969
  }
28613
28970
  );
28614
28971
  }
28615
28972
  function GoBackButton() {
28616
- const config = (0, import_elements_react24.useOryConfiguration)();
28973
+ const config = (0, import_elements_react25.useOryConfiguration)();
28617
28974
  if ("default_redirect_url" in config.project) {
28618
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
28975
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
28619
28976
  "a",
28620
28977
  {
28621
28978
  className: "text-interface-foreground-default-primary underline",
28622
28979
  href: config.project.default_redirect_url,
28623
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_react_intl25.FormattedMessage, { id: "error.action.go-back" })
28980
+ children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react_intl25.FormattedMessage, { id: "error.action.go-back" })
28624
28981
  }
28625
28982
  );
28626
28983
  }
28627
28984
  return null;
28628
28985
  }
28629
28986
  function ErrorLogo() {
28630
- const { project } = (0, import_elements_react24.useOryConfiguration)();
28987
+ const { project } = (0, import_elements_react25.useOryConfiguration)();
28631
28988
  if (project.logo_light_url) {
28632
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("img", { src: project.logo_light_url, className: "h-full", alt: "Logo" });
28989
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("img", { src: project.logo_light_url, className: "h-full", alt: "Logo" });
28633
28990
  }
28634
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: project.name });
28991
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h1", { className: "text-xl leading-normal font-semibold text-interface-foreground-default-primary", children: project.name });
28635
28992
  }
28636
28993
 
28637
28994
  // src/theme/default/flows/login.tsx
28638
- var import_client_fetch43 = require("@ory/client-fetch");
28639
- var import_elements_react25 = require("@ory/elements-react");
28640
- var import_jsx_runtime107 = require("react/jsx-runtime");
28995
+ var import_client_fetch45 = require("@ory/client-fetch");
28996
+ var import_elements_react26 = require("@ory/elements-react");
28997
+ var import_jsx_runtime116 = require("react/jsx-runtime");
28641
28998
  function Login({
28642
28999
  flow,
28643
29000
  config,
@@ -28645,22 +29002,22 @@ function Login({
28645
29002
  components: flowOverrideComponents
28646
29003
  }) {
28647
29004
  const components = getOryComponents(flowOverrideComponents);
28648
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
28649
- import_elements_react25.OryProvider,
29005
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
29006
+ import_elements_react26.OryProvider,
28650
29007
  {
28651
29008
  config,
28652
29009
  flow,
28653
- flowType: import_client_fetch43.FlowType.Login,
29010
+ flowType: import_client_fetch45.FlowType.Login,
28654
29011
  components,
28655
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react25.OrySelfServiceFlowCard, {})
29012
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_elements_react26.OrySelfServiceFlowCard, {})
28656
29013
  }
28657
29014
  );
28658
29015
  }
28659
29016
 
28660
29017
  // src/theme/default/flows/recovery.tsx
28661
- var import_client_fetch44 = require("@ory/client-fetch");
28662
- var import_elements_react26 = require("@ory/elements-react");
28663
- var import_jsx_runtime108 = require("react/jsx-runtime");
29018
+ var import_client_fetch46 = require("@ory/client-fetch");
29019
+ var import_elements_react27 = require("@ory/elements-react");
29020
+ var import_jsx_runtime117 = require("react/jsx-runtime");
28664
29021
  function Recovery({
28665
29022
  flow,
28666
29023
  config,
@@ -28668,22 +29025,22 @@ function Recovery({
28668
29025
  components: flowOverrideComponents
28669
29026
  }) {
28670
29027
  const components = getOryComponents(flowOverrideComponents);
28671
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
28672
- import_elements_react26.OryProvider,
29028
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
29029
+ import_elements_react27.OryProvider,
28673
29030
  {
28674
29031
  config,
28675
29032
  flow,
28676
- flowType: import_client_fetch44.FlowType.Recovery,
29033
+ flowType: import_client_fetch46.FlowType.Recovery,
28677
29034
  components,
28678
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react26.OrySelfServiceFlowCard, {})
29035
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_elements_react27.OrySelfServiceFlowCard, {})
28679
29036
  }
28680
29037
  );
28681
29038
  }
28682
29039
 
28683
29040
  // src/theme/default/flows/registration.tsx
28684
- var import_client_fetch45 = require("@ory/client-fetch");
28685
- var import_elements_react27 = require("@ory/elements-react");
28686
- var import_jsx_runtime109 = require("react/jsx-runtime");
29041
+ var import_client_fetch47 = require("@ory/client-fetch");
29042
+ var import_elements_react28 = require("@ory/elements-react");
29043
+ var import_jsx_runtime118 = require("react/jsx-runtime");
28687
29044
  function Registration({
28688
29045
  flow,
28689
29046
  children,
@@ -28691,22 +29048,22 @@ function Registration({
28691
29048
  config
28692
29049
  }) {
28693
29050
  const components = getOryComponents(flowOverrideComponents);
28694
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
28695
- import_elements_react27.OryProvider,
29051
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
29052
+ import_elements_react28.OryProvider,
28696
29053
  {
28697
29054
  config,
28698
29055
  flow,
28699
- flowType: import_client_fetch45.FlowType.Registration,
29056
+ flowType: import_client_fetch47.FlowType.Registration,
28700
29057
  components,
28701
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react27.OrySelfServiceFlowCard, {})
29058
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_elements_react28.OrySelfServiceFlowCard, {})
28702
29059
  }
28703
29060
  );
28704
29061
  }
28705
29062
 
28706
29063
  // src/theme/default/flows/settings.tsx
28707
- var import_client_fetch46 = require("@ory/client-fetch");
28708
- var import_elements_react28 = require("@ory/elements-react");
28709
- var import_jsx_runtime110 = require("react/jsx-runtime");
29064
+ var import_client_fetch48 = require("@ory/client-fetch");
29065
+ var import_elements_react29 = require("@ory/elements-react");
29066
+ var import_jsx_runtime119 = require("react/jsx-runtime");
28710
29067
  function Settings({
28711
29068
  flow,
28712
29069
  config,
@@ -28716,25 +29073,25 @@ function Settings({
28716
29073
  ...rest
28717
29074
  }) {
28718
29075
  const components = getOryComponents(flowOverrideComponents);
28719
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
28720
- import_elements_react28.OryProvider,
29076
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
29077
+ import_elements_react29.OryProvider,
28721
29078
  {
28722
29079
  config,
28723
29080
  flow,
28724
- flowType: import_client_fetch46.FlowType.Settings,
29081
+ flowType: import_client_fetch48.FlowType.Settings,
28725
29082
  components,
28726
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col items-center justify-start gap-8 pb-12 font-sans-default", children: [
28727
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OryPageHeader, {}),
28728
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react28.OrySettingsCard, {})
29083
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: cn("ory-elements", className), ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center justify-start gap-8 pb-12 font-sans-default", children: [
29084
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_elements_react29.OryPageHeader, {}),
29085
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_elements_react29.OrySettingsCard, {})
28729
29086
  ] }) })
28730
29087
  }
28731
29088
  );
28732
29089
  }
28733
29090
 
28734
29091
  // src/theme/default/flows/verification.tsx
28735
- var import_client_fetch47 = require("@ory/client-fetch");
28736
- var import_elements_react29 = require("@ory/elements-react");
28737
- var import_jsx_runtime111 = require("react/jsx-runtime");
29092
+ var import_client_fetch49 = require("@ory/client-fetch");
29093
+ var import_elements_react30 = require("@ory/elements-react");
29094
+ var import_jsx_runtime120 = require("react/jsx-runtime");
28738
29095
  function Verification({
28739
29096
  flow,
28740
29097
  config,
@@ -28742,24 +29099,24 @@ function Verification({
28742
29099
  components: flowOverrideComponents
28743
29100
  }) {
28744
29101
  const components = getOryComponents(flowOverrideComponents);
28745
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
28746
- import_elements_react29.OryProvider,
29102
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
29103
+ import_elements_react30.OryProvider,
28747
29104
  {
28748
29105
  config,
28749
29106
  flow,
28750
- flowType: import_client_fetch47.FlowType.Verification,
29107
+ flowType: import_client_fetch49.FlowType.Verification,
28751
29108
  components,
28752
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_elements_react29.OrySelfServiceFlowCard, {})
29109
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_elements_react30.OrySelfServiceFlowCard, {})
28753
29110
  }
28754
29111
  );
28755
29112
  }
28756
29113
 
28757
29114
  // src/theme/default/flows/consent.tsx
28758
- var import_client_fetch49 = require("@ory/client-fetch");
28759
- var import_elements_react30 = require("@ory/elements-react");
29115
+ var import_client_fetch51 = require("@ory/client-fetch");
29116
+ var import_elements_react31 = require("@ory/elements-react");
28760
29117
 
28761
29118
  // src/theme/default/utils/oauth2.ts
28762
- var import_client_fetch48 = require("@ory/client-fetch");
29119
+ var import_client_fetch50 = require("@ory/client-fetch");
28763
29120
  var rememberCheckbox = {
28764
29121
  type: "input",
28765
29122
  group: "oauth2_consent",
@@ -28767,7 +29124,7 @@ var rememberCheckbox = {
28767
29124
  label: {
28768
29125
  id: 9999111,
28769
29126
  text: "Remember my decision",
28770
- type: import_client_fetch48.UiTextTypeEnum.Info
29127
+ type: import_client_fetch50.UiTextTypeEnum.Info
28771
29128
  }
28772
29129
  },
28773
29130
  attributes: {
@@ -28786,7 +29143,7 @@ var acceptButton = {
28786
29143
  label: {
28787
29144
  id: 9999111,
28788
29145
  text: "Accept",
28789
- type: import_client_fetch48.UiTextTypeEnum.Info
29146
+ type: import_client_fetch50.UiTextTypeEnum.Info
28790
29147
  }
28791
29148
  },
28792
29149
  attributes: {
@@ -28805,7 +29162,7 @@ var rejectButton = {
28805
29162
  label: {
28806
29163
  id: 9999111,
28807
29164
  text: "Reject",
28808
- type: import_client_fetch48.UiTextTypeEnum.Info
29165
+ type: import_client_fetch50.UiTextTypeEnum.Info
28809
29166
  }
28810
29167
  },
28811
29168
  attributes: {
@@ -28852,7 +29209,7 @@ function scopesToUiNodes(scopes) {
28852
29209
  label: {
28853
29210
  id: 9999111,
28854
29211
  text: scope,
28855
- type: import_client_fetch48.UiTextTypeEnum.Info
29212
+ type: import_client_fetch50.UiTextTypeEnum.Info
28856
29213
  }
28857
29214
  },
28858
29215
  attributes: {
@@ -28897,7 +29254,7 @@ function challengeNode(challenge) {
28897
29254
  }
28898
29255
 
28899
29256
  // src/theme/default/flows/consent.tsx
28900
- var import_jsx_runtime112 = require("react/jsx-runtime");
29257
+ var import_jsx_runtime121 = require("react/jsx-runtime");
28901
29258
  function Consent({
28902
29259
  consentChallenge,
28903
29260
  session,
@@ -28914,14 +29271,14 @@ function Consent({
28914
29271
  formActionUrl,
28915
29272
  session
28916
29273
  );
28917
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
28918
- import_elements_react30.OryProvider,
29274
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
29275
+ import_elements_react31.OryProvider,
28919
29276
  {
28920
29277
  config,
28921
29278
  flow,
28922
- flowType: import_client_fetch49.FlowType.OAuth2Consent,
29279
+ flowType: import_client_fetch51.FlowType.OAuth2Consent,
28923
29280
  components,
28924
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_elements_react30.OryConsentCard, {})
29281
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_elements_react31.OryConsentCard, {})
28925
29282
  }
28926
29283
  );
28927
29284
  }