@ory/elements-react 1.0.0-rc.5 → 1.0.0-rc.6
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.
- package/dist/client/session-provider.d.mts +5 -0
- package/dist/client/session-provider.d.ts +5 -0
- package/dist/client/session-provider.js.map +1 -1
- package/dist/client/session-provider.mjs.map +1 -1
- package/dist/index.d.mts +505 -100
- package/dist/index.d.ts +505 -100
- package/dist/index.js +523 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +521 -182
- package/dist/index.mjs.map +1 -1
- package/dist/theme/default/index.css +153 -6
- package/dist/theme/default/index.css.map +1 -1
- package/dist/theme/default/index.d.mts +386 -20
- package/dist/theme/default/index.d.ts +386 -20
- package/dist/theme/default/index.js +980 -445
- package/dist/theme/default/index.js.map +1 -1
- package/dist/theme/default/index.mjs +982 -440
- package/dist/theme/default/index.mjs.map +1 -1
- package/package.json +6 -5
- package/tailwind/generated/default-variables.css +180 -0
- package/tsdoc.json +5 -0
|
@@ -37,7 +37,6 @@ __export(index_exports, {
|
|
|
37
37
|
DefaultCardContent: () => DefaultCardContent,
|
|
38
38
|
DefaultCardFooter: () => DefaultCardFooter,
|
|
39
39
|
DefaultCardHeader: () => DefaultCardHeader,
|
|
40
|
-
DefaultCardLayout: () => DefaultCardLayout,
|
|
41
40
|
DefaultCardLogo: () => DefaultCardLogo,
|
|
42
41
|
DefaultCurrentIdentifierButton: () => DefaultCurrentIdentifierButton,
|
|
43
42
|
DefaultFormContainer: () => DefaultFormContainer,
|
|
@@ -59,8 +58,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
59
58
|
var SvgOryBadgeHorizontal = (props) => {
|
|
60
59
|
var _a, _b;
|
|
61
60
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("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: [
|
|
62
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "
|
|
63
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "currentColor", d: "M18.007 8h-1.71l2.007-3.996L16.296 0h1.711l1.145 2.301L20.327 0H22z" }),
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.902 4.86a2.47 2.47 0 0 0 1.796-2.365v-.038C14.687 1.097 13.592 0 12.245 0H9.037v1.44l1.208 1.985H9.04V8h1.51V4.949h.633L13.04 8h1.775zm-.876-1.431h.223c.52 0 .943-.427.943-.953a.95.95 0 0 0-.943-.952h-1.39zM4 0a4 4 0 1 0-.001 7.999A4 4 0 0 0 4 0M1.524 4a2.476 2.476 0 1 0 4.952 0 2.476 2.476 0 0 0-4.952 0", clipRule: "evenodd" })
|
|
64
63
|
] });
|
|
65
64
|
};
|
|
66
65
|
var ory_badge_horizontal_default = SvgOryBadgeHorizontal;
|
|
@@ -71,8 +70,8 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
71
70
|
var SvgOryBadgeVertical = (props) => {
|
|
72
71
|
var _a, _b;
|
|
73
72
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("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: [
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "currentColor", d: "M8 3.993v1.71L4.004 3.697 0 5.704V3.993l2.301-1.145L0 1.673V0z" }),
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.86 9.099a2.47 2.47 0 0 0-2.365-1.797h-.038C1.097 7.313 0 8.408 0 9.755v3.208h1.44l1.985-1.208v1.204H8v-1.51H4.949v-.633L8 8.96V7.185zm-1.431.875v-.223a.95.95 0 0 0-.953-.943.95.95 0 0 0-.952.943v1.39zM0 18a4 4 0 1 0 8 0 4 4 0 0 0-8 0m4 2.476a2.476 2.476 0 1 0 0-4.952 2.476 2.476 0 0 0 0 4.952", clipRule: "evenodd" })
|
|
76
75
|
] });
|
|
77
76
|
};
|
|
78
77
|
var ory_badge_vertical_default = SvgOryBadgeVertical;
|
|
@@ -80,7 +79,7 @@ var ory_badge_vertical_default = SvgOryBadgeVertical;
|
|
|
80
79
|
// src/theme/default/components/card/badge.tsx
|
|
81
80
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
82
81
|
function Badge() {
|
|
83
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "absolute bg-ory-background-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-branding sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-branding border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]", children: [
|
|
82
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "absolute bg-ory-background-default text-ory-foreground-default p-2 font-bold max-sm:bottom-0 max-sm:left-8 max-sm:translate-y-full max-sm:rounded-b-branding sm:right-0 sm:top-8 sm:translate-x-full sm:rounded-r-branding border-ory-border-default border max-sm:py-[7px] sm:pl-[7px]", children: [
|
|
84
83
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ory_badge_horizontal_default, { width: 22, height: 8, className: "sm:hidden" }),
|
|
85
84
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ory_badge_vertical_default, { width: 8, height: 22, className: "max-sm:hidden" })
|
|
86
85
|
] });
|
|
@@ -140,6 +139,27 @@ function isGroupImmediateSubmit(group) {
|
|
|
140
139
|
var import_client_fetch2 = require("@ory/client-fetch");
|
|
141
140
|
var import_client_fetch3 = require("@ory/client-fetch");
|
|
142
141
|
var import_react2 = require("react");
|
|
142
|
+
function triggerToFunction(trigger) {
|
|
143
|
+
if (typeof window === "undefined") {
|
|
144
|
+
console.debug(
|
|
145
|
+
"The Ory SDK is missing a required function: window is undefined."
|
|
146
|
+
);
|
|
147
|
+
return void 0;
|
|
148
|
+
}
|
|
149
|
+
const typedWindow = window;
|
|
150
|
+
if (!(trigger in typedWindow) || !typedWindow[trigger]) {
|
|
151
|
+
console.debug(`The Ory SDK is missing a required function: ${trigger}.`);
|
|
152
|
+
return void 0;
|
|
153
|
+
}
|
|
154
|
+
const triggerFn = typedWindow[trigger];
|
|
155
|
+
if (typeof triggerFn !== "function") {
|
|
156
|
+
console.debug(
|
|
157
|
+
`The Ory SDK is missing a required function: ${trigger}. It is not a function.`
|
|
158
|
+
);
|
|
159
|
+
return void 0;
|
|
160
|
+
}
|
|
161
|
+
return triggerFn;
|
|
162
|
+
}
|
|
143
163
|
function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
|
|
144
164
|
var _a;
|
|
145
165
|
const groups = {};
|
|
@@ -255,7 +275,6 @@ var OryConfigurationContext = (0, import_react5.createContext)({
|
|
|
255
275
|
});
|
|
256
276
|
function computeSdkConfig(config) {
|
|
257
277
|
if ((config == null ? void 0 : config.url) && typeof config.url === "string") {
|
|
258
|
-
console.debug("Using sdk url from config");
|
|
259
278
|
return {
|
|
260
279
|
url: config.url.replace(/\/$/, ""),
|
|
261
280
|
options: config.options || {}
|
|
@@ -294,6 +313,7 @@ function getSDKUrl() {
|
|
|
294
313
|
}
|
|
295
314
|
|
|
296
315
|
// src/context/intl-context.tsx
|
|
316
|
+
var import_react8 = require("react");
|
|
297
317
|
var import_react_intl8 = require("react-intl");
|
|
298
318
|
|
|
299
319
|
// src/components/form/form.tsx
|
|
@@ -332,57 +352,57 @@ var import_client_fetch14 = require("@ory/client-fetch");
|
|
|
332
352
|
// src/components/form/form.tsx
|
|
333
353
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
334
354
|
|
|
335
|
-
// src/components/form/
|
|
355
|
+
// src/components/form/messages.tsx
|
|
356
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
357
|
+
|
|
358
|
+
// src/components/form/social.tsx
|
|
336
359
|
var import_client_fetch19 = require("@ory/client-fetch");
|
|
360
|
+
var import_react_hook_form4 = require("react-hook-form");
|
|
337
361
|
|
|
338
|
-
// src/components/form/
|
|
339
|
-
var
|
|
340
|
-
var import_react6 = require("react");
|
|
362
|
+
// src/components/form/form-provider.tsx
|
|
363
|
+
var import_client_fetch18 = require("@ory/client-fetch");
|
|
341
364
|
var import_react_hook_form3 = require("react-hook-form");
|
|
342
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
343
365
|
|
|
344
|
-
// src/components/form/
|
|
345
|
-
var
|
|
366
|
+
// src/components/form/form-resolver.ts
|
|
367
|
+
var import_client_fetch17 = require("@ory/client-fetch");
|
|
368
|
+
|
|
369
|
+
// src/components/form/form-provider.tsx
|
|
346
370
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
347
371
|
|
|
348
|
-
// src/components/form/
|
|
372
|
+
// src/components/form/social.tsx
|
|
349
373
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
350
374
|
|
|
351
|
-
// src/components/form/
|
|
352
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
353
|
-
|
|
354
|
-
// src/components/form/social.tsx
|
|
355
|
-
var import_client_fetch22 = require("@ory/client-fetch");
|
|
375
|
+
// src/components/form/settings-section.tsx
|
|
356
376
|
var import_react_hook_form5 = require("react-hook-form");
|
|
377
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
357
378
|
|
|
358
|
-
// src/components/
|
|
359
|
-
var import_client_fetch21 = require("@ory/client-fetch");
|
|
360
|
-
var import_react_hook_form4 = require("react-hook-form");
|
|
361
|
-
|
|
362
|
-
// src/components/form/form-resolver.ts
|
|
379
|
+
// src/components/generic/divider.tsx
|
|
363
380
|
var import_client_fetch20 = require("@ory/client-fetch");
|
|
364
|
-
|
|
365
|
-
// src/components/form/form-provider.tsx
|
|
366
381
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
367
382
|
|
|
368
|
-
// src/components/
|
|
383
|
+
// src/components/generic/page-header.tsx
|
|
369
384
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
370
385
|
|
|
371
|
-
// src/components/
|
|
372
|
-
var
|
|
386
|
+
// src/components/settings/settings-card.tsx
|
|
387
|
+
var import_client_fetch23 = require("@ory/client-fetch");
|
|
388
|
+
var import_react7 = require("react");
|
|
389
|
+
var import_react_intl7 = require("react-intl");
|
|
390
|
+
var import_sonner2 = require("sonner");
|
|
391
|
+
|
|
392
|
+
// src/util/showToast.tsx
|
|
393
|
+
var import_sonner = require("sonner");
|
|
373
394
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
374
395
|
|
|
375
|
-
// src/components/
|
|
376
|
-
var
|
|
396
|
+
// src/components/form/nodes/input.tsx
|
|
397
|
+
var import_client_fetch21 = require("@ory/client-fetch");
|
|
398
|
+
var import_react6 = require("react");
|
|
399
|
+
var import_react_hook_form6 = require("react-hook-form");
|
|
377
400
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
378
401
|
|
|
379
|
-
// src/components/
|
|
402
|
+
// src/components/form/nodes/node.tsx
|
|
403
|
+
var import_client_fetch22 = require("@ory/client-fetch");
|
|
380
404
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
381
405
|
|
|
382
|
-
// src/components/settings/settings-card.tsx
|
|
383
|
-
var import_client_fetch24 = require("@ory/client-fetch");
|
|
384
|
-
var import_react_intl7 = require("react-intl");
|
|
385
|
-
|
|
386
406
|
// src/components/settings/oidc-settings.tsx
|
|
387
407
|
var import_react_intl2 = require("react-intl");
|
|
388
408
|
var import_react_hook_form7 = require("react-hook-form");
|
|
@@ -679,6 +699,8 @@ var en_default = {
|
|
|
679
699
|
"settings.profile.description": "Update your profile information",
|
|
680
700
|
"settings.webauthn.title": "Manage Hardware Tokens",
|
|
681
701
|
"settings.webauthn.description": "Manage your hardware token settings",
|
|
702
|
+
"settings.messages.toast-title.success": "Settings updated",
|
|
703
|
+
"settings.messages.toast-title.error": "Could not update settings",
|
|
682
704
|
"verification.registration-button": "Sign up",
|
|
683
705
|
"verification.registration-label": "Don't have an account?",
|
|
684
706
|
"verification.title": "Verify your account",
|
|
@@ -692,6 +714,7 @@ var en_default = {
|
|
|
692
714
|
"two-step.webauthn.description": "Use your security key to authenticate",
|
|
693
715
|
"two-step.passkey.title": "Passkey (recommended)",
|
|
694
716
|
"two-step.passkey.description": "Use your device's for fingerprint or face recognition",
|
|
717
|
+
"two-step.passkey.description.error": "Could not load the necessary libraries to use your Passkey. Please try again later.",
|
|
695
718
|
"two-step.totp.title": "Use your Authenticator App (TOTP)",
|
|
696
719
|
"two-step.totp.description": "Use a 6-digit one-time code from your authenticator app",
|
|
697
720
|
"two-step.lookup_secret.title": "Backup recovery code",
|
|
@@ -711,6 +734,7 @@ var en_default = {
|
|
|
711
734
|
"card.header.description.registration": "Sign up with {identifierLabel}",
|
|
712
735
|
"misc.or": "or",
|
|
713
736
|
"forms.label.forgot-password": "Forgot Password?",
|
|
737
|
+
"forms.label.recover-account": "Recover Account",
|
|
714
738
|
"settings.totp.title": "Authenticator App",
|
|
715
739
|
"settings.totp.description": "Add a TOTP Authenticator App to your account to improve your account security. Popular Authenticator Apps are LastPass and Google Authenticator",
|
|
716
740
|
"settings.totp.info.not-linked": "To enable scan the QR code with your authenticator and enter the code.",
|
|
@@ -797,10 +821,10 @@ var de_default = {
|
|
|
797
821
|
"identities.messages.1050004": "Authentifizierungs-App entkn\xFCpfen",
|
|
798
822
|
"identities.messages.1050005": "Authentifizierungs-App QR-Code",
|
|
799
823
|
"identities.messages.1050006": "{secret}",
|
|
800
|
-
"identities.messages.1050007": "Backup-
|
|
801
|
-
"identities.messages.1050008": "Neue Backup-
|
|
824
|
+
"identities.messages.1050007": "Backup-Wiederherstellungscodes anzeigen",
|
|
825
|
+
"identities.messages.1050008": "Neue Backup-Wiederherstellungscodes generieren",
|
|
802
826
|
"identities.messages.1050009": "{secret}",
|
|
803
|
-
"identities.messages.1050010": "Dies sind Ihre Backup-
|
|
827
|
+
"identities.messages.1050010": "Dies sind Ihre Backup-Wiederherstellungscodes. Bewahren Sie diese an einem sicheren Ort auf!",
|
|
804
828
|
"identities.messages.1050011": "Backup-Wiederherstellungscode best\xE4tigen",
|
|
805
829
|
"identities.messages.1050012": "Sicherheitsschl\xFCssel hinzuf\xFCgen",
|
|
806
830
|
"identities.messages.1050013": "Name des Sicherheitsschl\xFCssels",
|
|
@@ -809,7 +833,7 @@ var de_default = {
|
|
|
809
833
|
"identities.messages.1050016": "Diese Methode deaktivieren",
|
|
810
834
|
"identities.messages.1050017": "Dies ist Ihr Authentifizierungs-App-Geheimnis. Verwenden Sie es, wenn Sie den QR-Code nicht scannen k\xF6nnen.",
|
|
811
835
|
"identities.messages.1050018": 'Sicherheitsschl\xFCssel "{display_name}" entfernen',
|
|
812
|
-
"identities.messages.1060001": "Sie haben Ihr Konto erfolgreich wiederhergestellt. Bitte \xE4ndern Sie Ihr Passwort oder richten Sie eine alternative Anmeldemethode ein (z. B. Anmeldung \xFCber
|
|
836
|
+
"identities.messages.1060001": "Sie haben Ihr Konto erfolgreich wiederhergestellt. Bitte \xE4ndern Sie Ihr Passwort oder richten Sie eine alternative Anmeldemethode ein (z. B. Anmeldung \xFCber Social-Login) innerhalb der n\xE4chsten {privileged_session_expires_at_unix_until_minutes} Minuten ein.",
|
|
813
837
|
"identities.messages.1060002": "Eine E-Mail mit einem Wiederherstellungslink wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, \xFCberpr\xFCfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.",
|
|
814
838
|
"identities.messages.1060003": "Eine E-Mail mit einem Wiederherstellungscode wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, \xFCberpr\xFCfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.",
|
|
815
839
|
"identities.messages.1070001": "Passwort",
|
|
@@ -830,7 +854,7 @@ var de_default = {
|
|
|
830
854
|
"identities.messages.1080003": "Eine E-Mail mit einem Best\xE4tigungscode wurde an die von Ihnen angegebene E-Mail-Adresse gesendet. Falls Sie keine E-Mail erhalten haben, \xFCberpr\xFCfen Sie bitte die Schreibweise der Adresse und stellen Sie sicher, dass Sie die Adresse verwendet haben, mit der Sie sich registriert haben.",
|
|
831
855
|
"identities.messages.4000001": "{reason}",
|
|
832
856
|
"identities.messages.4000002": "Das Feld {property} muss ausgef\xFCllt werden.",
|
|
833
|
-
"identities.messages.4000003": "Die L\xE4nge muss >= {min_length} sein,
|
|
857
|
+
"identities.messages.4000003": "Die L\xE4nge muss >= {min_length} sein, {actual_length} erhalten.",
|
|
834
858
|
"identities.messages.4000004": 'entspricht nicht dem Muster "{pattern}"',
|
|
835
859
|
"identities.messages.4000005": "Das Passwort kann nicht verwendet werden, weil {reason}.",
|
|
836
860
|
"identities.messages.4000006": "Die bereitgestellten Anmeldedaten sind ung\xFCltig. \xDCberpr\xFCfen Sie auf Rechtschreibfehler in Ihrem Passwort, Benutzernamen, E-Mail-Adresse oder Telefonnummer.",
|
|
@@ -841,26 +865,26 @@ var de_default = {
|
|
|
841
865
|
"identities.messages.4000011": "Sie haben kein TOTP-Ger\xE4t eingerichtet.",
|
|
842
866
|
"identities.messages.4000012": "Dieser Backup-Wiederherstellungscode wurde bereits verwendet.",
|
|
843
867
|
"identities.messages.4000013": "Sie haben kein WebAuthn-Ger\xE4t eingerichtet.",
|
|
844
|
-
"identities.messages.4000014": "Sie haben keine Backup-
|
|
868
|
+
"identities.messages.4000014": "Sie haben keine Backup-Wiederherstellungscodes eingerichtet.",
|
|
845
869
|
"identities.messages.4000015": "Dieses Konto existiert nicht oder hat keinen Sicherheitsschl\xFCssel eingerichtet.",
|
|
846
870
|
"identities.messages.4000016": "Der Backup-Wiederherstellungscode ist ung\xFCltig.",
|
|
847
|
-
"identities.messages.4000017": "Die L\xE4nge muss <= {max_length} sein,
|
|
848
|
-
"identities.messages.4000018": "muss >= {minimum} sein,
|
|
849
|
-
"identities.messages.4000019": "muss > {minimum} sein,
|
|
850
|
-
"identities.messages.4000020": "muss <= {maximum} sein,
|
|
851
|
-
"identities.messages.4000021": "muss < {maximum} sein,
|
|
871
|
+
"identities.messages.4000017": "Die L\xE4nge muss <= {max_length} sein, {actual_length} erhalten.",
|
|
872
|
+
"identities.messages.4000018": "muss >= {minimum} sein, {actual} gefunden.",
|
|
873
|
+
"identities.messages.4000019": "muss > {minimum} sein, {actual} gefunden.",
|
|
874
|
+
"identities.messages.4000020": "muss <= {maximum} sein, {actual} gefunden.",
|
|
875
|
+
"identities.messages.4000021": "muss < {maximum} sein, {actual} gefunden.",
|
|
852
876
|
"identities.messages.4000022": "{actual} ist nicht ein Vielfaches von {base}",
|
|
853
|
-
"identities.messages.4000023": "maximal {max_items} Elemente erlaubt,
|
|
854
|
-
"identities.messages.4000024": "mindestens {min_items} Elemente erforderlich,
|
|
877
|
+
"identities.messages.4000023": "maximal {max_items} Elemente erlaubt, {actual_items} Elemente gefunden.",
|
|
878
|
+
"identities.messages.4000024": "mindestens {min_items} Elemente erforderlich, {actual_items} Elemente gefunden.",
|
|
855
879
|
"identities.messages.4000025": "Elemente an Index {index_a} und {index_b} sind gleich.",
|
|
856
|
-
"identities.messages.4000026": "erwartete {allowed_types_list},
|
|
857
|
-
"identities.messages.4000027": "Ein Konto mit demselben Identifikator (E-Mail, Telefon, Benutzername, ...) existiert bereits. Bitte melden Sie sich in Ihrem bestehenden Konto an und verkn\xFCpfen Sie
|
|
858
|
-
"identities.messages.4000028": "Sie haben versucht, sich mit {credential_identifier_hint} anzumelden, das bereits von einem anderen Konto verwendet wird. Sie k\xF6nnen sich mit {available_credential_types_list} anmelden. Sie k\xF6nnen sich mit einem der folgenden
|
|
880
|
+
"identities.messages.4000026": "erwartete {allowed_types_list}, {actual_type} gefunden.",
|
|
881
|
+
"identities.messages.4000027": "Ein Konto mit demselben Identifikator (E-Mail, Telefon, Benutzername, ...) existiert bereits. Bitte melden Sie sich in Ihrem bestehenden Konto an und verkn\xFCpfen Sie Ihren Social-Login auf der Einstellungsseite.",
|
|
882
|
+
"identities.messages.4000028": "Sie haben versucht, sich mit {credential_identifier_hint} anzumelden, das bereits von einem anderen Konto verwendet wird. Sie k\xF6nnen sich mit {available_credential_types_list} anmelden. Sie k\xF6nnen sich mit einem der folgenden Social-Logins anmelden: {Available_oidc_providers_list}.",
|
|
859
883
|
"identities.messages.4000029": "muss gleich der Konstanten {expected} sein.",
|
|
860
884
|
"identities.messages.4000030": "const fehlgeschlagen",
|
|
861
885
|
"identities.messages.4000031": "Das Passwort kann nicht verwendet werden, da es zu \xE4hnlich dem Identifikator ist.",
|
|
862
|
-
"identities.messages.4000032": "Das Passwort muss mindestens {min_length} Zeichen lang sein,
|
|
863
|
-
"identities.messages.4000033": "Das Passwort muss h\xF6chstens {max_length} Zeichen lang sein,
|
|
886
|
+
"identities.messages.4000032": "Das Passwort muss mindestens {min_length} Zeichen lang sein, {actual_length} erhalten.",
|
|
887
|
+
"identities.messages.4000033": "Das Passwort muss h\xF6chstens {max_length} Zeichen lang sein, {actual_length} erhalten.",
|
|
864
888
|
"identities.messages.4000034": "Das Passwort wurde in Datenlecks gefunden und darf nicht mehr verwendet werden.",
|
|
865
889
|
"identities.messages.4000035": "Dieses Konto existiert nicht oder hat keine Anmeldung per Code eingerichtet.",
|
|
866
890
|
"identities.messages.4000036": "Die bereitgestellten Merkmale stimmen nicht mit den zuvor mit diesem Flow assoziierten Merkmalen \xFCberein.",
|
|
@@ -877,13 +901,13 @@ var de_default = {
|
|
|
877
901
|
"identities.messages.4040003": "Der Registrierungscode ist ung\xFCltig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.",
|
|
878
902
|
"identities.messages.4050001": "Der Einstellungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.",
|
|
879
903
|
"identities.messages.4060001": "Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.",
|
|
880
|
-
"identities.messages.4060002": "Der Wiederherstellungsvorgang
|
|
904
|
+
"identities.messages.4060002": "Der Wiederherstellungsvorgang ist fehlgeschlagen und muss erneut versucht werden.",
|
|
881
905
|
"identities.messages.4060004": "Der Wiederherstellungstoken ist ung\xFCltig oder wurde bereits verwendet. Bitte wiederholen Sie den Vorgang.",
|
|
882
906
|
"identities.messages.4060005": "Der Wiederherstellungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.",
|
|
883
907
|
"identities.messages.4060006": "Der Wiederherstellungscode ist ung\xFCltig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.",
|
|
884
908
|
"identities.messages.4070001": "Der Verifizierungstoken ist ung\xFCltig oder wurde bereits verwendet. Bitte wiederholen Sie den Vorgang.",
|
|
885
909
|
"identities.messages.4070002": "Die Anfrage wurde bereits erfolgreich abgeschlossen und kann nicht erneut versucht werden.",
|
|
886
|
-
"identities.messages.4070003": "Der Verifizierungsvorgang
|
|
910
|
+
"identities.messages.4070003": "Der Verifizierungsvorgang ist fehlgeschlagen und muss erneut versucht werden.",
|
|
887
911
|
"identities.messages.4070005": "Der Verifizierungsvorgang ist vor {expired_at_unix_since_minutes} Minuten abgelaufen. Bitte versuchen Sie es erneut.",
|
|
888
912
|
"identities.messages.4070006": "Der Verifizierungscode ist ung\xFCltig oder wurde bereits verwendet. Bitte versuchen Sie es erneut.",
|
|
889
913
|
"identities.messages.5000001": "{reason}",
|
|
@@ -899,7 +923,7 @@ var de_default = {
|
|
|
899
923
|
"login.subtitle-aal2": "W\xE4hlen Sie eine Methode zur Best\xE4tigung Ihrer Zwei-Faktor-Authentifizierung",
|
|
900
924
|
"login.code.subtitle": "Ein Best\xE4tigungscode wird per E-Mail gesendet",
|
|
901
925
|
"login.webauthn.subtitle": "Bitte bereiten Sie Ihr WebAuthN-Ger\xE4t vor",
|
|
902
|
-
"login.totp.subtitle": "Bitte geben Sie den Code aus Ihrer
|
|
926
|
+
"login.totp.subtitle": "Bitte geben Sie den Code aus Ihrer Authentifikator-App ein",
|
|
903
927
|
"login.lookup_secret.subtitle": "Bitte geben Sie einen Ihrer 8-stelligen Backup-Wiederherstellungscodes ein",
|
|
904
928
|
"login.title-refresh": "Best\xE4tigen Sie, dass Sie es sind",
|
|
905
929
|
"login.2fa.go-back": "Funktioniert etwas nicht?",
|
|
@@ -917,22 +941,23 @@ var de_default = {
|
|
|
917
941
|
"registration.title": "Konto registrieren",
|
|
918
942
|
"verification.registration-button": "Registrieren",
|
|
919
943
|
"verification.registration-label": "Sie haben noch kein Konto?",
|
|
920
|
-
"verification.title": "Verifizieren Sie
|
|
944
|
+
"verification.title": "Verifizieren Sie Ihr Konto",
|
|
921
945
|
"verification.back-button": "Zur\xFCck",
|
|
922
946
|
"two-step.code.description": "Ein Best\xE4tigungscode wird an Ihre E-Mail gesendet.",
|
|
923
947
|
"two-step.code.title": "E-Mail-Code",
|
|
924
|
-
"two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
|
|
925
948
|
"two-step.passkey.title": "Passkey (empfohlen)",
|
|
949
|
+
"two-step.passkey.description": "Verwenden Sie die Fingerabdruck- oder Gesichtserkennung Ihres Ger\xE4ts",
|
|
950
|
+
"two-step.passkey.description.error": "Konnte die erforderlichen Bibliotheken f\xFCr Passkeys nicht laden. Bitte versuchen Sie es sp\xE4ter erneut.",
|
|
926
951
|
"two-step.password.description": "Geben Sie Ihr Passwort ein, das mit Ihrem Konto verkn\xFCpft ist",
|
|
927
952
|
"two-step.password.title": "Passwort",
|
|
928
953
|
"two-step.webauthn.title": "Sicherheitsschl\xFCssel",
|
|
929
954
|
"two-step.webauthn.description": "Verwenden Sie Ihren Sicherheitsschl\xFCssel zur Authentifizierung",
|
|
930
|
-
"two-step.totp.title": "Verwenden Sie Ihre
|
|
931
|
-
"two-step.totp.description": "Verwenden Sie einen 6-stelligen
|
|
955
|
+
"two-step.totp.title": "Verwenden Sie Ihre Authentifikator-App",
|
|
956
|
+
"two-step.totp.description": "Verwenden Sie einen 6-stelligen Einmalcode aus Ihrer Authentifikator-App",
|
|
932
957
|
"two-step.lookup_secret.title": "Backup-Wiederherstellungscode",
|
|
933
958
|
"two-step.lookup_secret.description": "Verwenden Sie einen Ihrer 8-stelligen Backup-Codes, um sich zu authentifizieren",
|
|
934
959
|
"identities.messages.1070014": "Login- und Link-Zugangsdaten",
|
|
935
|
-
"identities.messages.1070015": "Bitte schlie\xDFen Sie die Captcha
|
|
960
|
+
"identities.messages.1070015": "Bitte schlie\xDFen Sie die Captcha-\xDCberpr\xFCfung ab, um fortzufahren.",
|
|
936
961
|
"identities.messages.4000038": "Die Captcha-\xDCberpr\xFCfung ist fehlgeschlagen. Bitte versuchen Sie es erneut.",
|
|
937
962
|
"login.cancel-button": "Abbrechen",
|
|
938
963
|
"login.cancel-label": "Nicht das richtige Konto?",
|
|
@@ -942,7 +967,7 @@ var de_default = {
|
|
|
942
967
|
"identities.messages.1010018": "Mit {provider} best\xE4tigen",
|
|
943
968
|
"identities.messages.1010019": "Code senden um fortzufahren",
|
|
944
969
|
"identities.messages.1010020": "",
|
|
945
|
-
"identities.messages.1010021": "Mit
|
|
970
|
+
"identities.messages.1010021": "Mit Passkey anmelden",
|
|
946
971
|
"identities.messages.1010022": "Mit Passwort anmelden",
|
|
947
972
|
"identities.messages.1040007": "Mit Passkey registrieren",
|
|
948
973
|
"identities.messages.1040008": "Zur\xFCck",
|
|
@@ -953,45 +978,46 @@ var de_default = {
|
|
|
953
978
|
"identities.messages.4010009": "Die Authentifizierungsmethode stimmt nicht mit der vorherigen Authentifizierungsmethode \xFCberein. Bitte versuchen Sie es erneut.",
|
|
954
979
|
"identities.messages.4010010": "Die eingegebene Adresse stimmt nicht mit der Adresse \xFCberein, die Sie bei der Registrierung angegeben haben. Bitte versuchen Sie es erneut.",
|
|
955
980
|
"input.placeholder": "{placeholder} eingeben",
|
|
956
|
-
"card.header.parts.code": "
|
|
957
|
-
"card.header.parts.identifier-first": "
|
|
958
|
-
"card.header.parts.oidc": "
|
|
959
|
-
"card.header.parts.passkey": "
|
|
981
|
+
"card.header.parts.code": "einem an Sie gesendeten Code",
|
|
982
|
+
"card.header.parts.identifier-first": "Ihrer {identifierLabel}",
|
|
983
|
+
"card.header.parts.oidc": "einem Social-Login",
|
|
984
|
+
"card.header.parts.passkey": "einem Passkey",
|
|
960
985
|
"card.header.parts.password.login": "Ihrer {identifierLabel} und Ihrem Passwort",
|
|
961
986
|
"card.header.parts.password.registration": "Ihrer {identifierLabel} und einem Passwort",
|
|
962
|
-
"card.header.parts.webauthn": "
|
|
963
|
-
"card.header.parts.totp": "
|
|
964
|
-
"card.header.parts.lookup_secret": "
|
|
987
|
+
"card.header.parts.webauthn": "einem Sicherheitsschl\xFCssel",
|
|
988
|
+
"card.header.parts.totp": "Ihrer Authentifikator-App",
|
|
989
|
+
"card.header.parts.lookup_secret": "einem Backup-Wiederherstellungscode",
|
|
965
990
|
"recovery.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um einen einmaligen Zugangscode zu erhalten",
|
|
966
991
|
"verification.subtitle": "Geben Sie die mit Ihrem Konto verkn\xFCpfte E-Mail-Adresse ein, um es zu best\xE4tigen",
|
|
967
992
|
"card.header.description.login": "Melden Sie sich mit {identifierLabel} an",
|
|
968
993
|
"card.header.description.registration": "Registrieren Sie sich mit {identifierLabel}",
|
|
969
|
-
"login.subtitle": "Melden Sie sich mit {parts} an",
|
|
970
|
-
"login.subtitle-refresh": "Best\xE4tigen Sie
|
|
994
|
+
"login.subtitle": "Melden Sie sich mit {parts} an.",
|
|
995
|
+
"login.subtitle-refresh": "Best\xE4tigen Sie Ihre Identit\xE4t mit {parts}.",
|
|
971
996
|
"misc.or": "oder",
|
|
972
|
-
"registration.subtitle": "Registrieren Sie sich mit {parts}",
|
|
997
|
+
"registration.subtitle": "Registrieren Sie sich mit {parts}.",
|
|
973
998
|
"forms.label.forgot-password": "Passwort vergessen?",
|
|
999
|
+
"forms.label.recover-account": "Konto wiederherstellen",
|
|
974
1000
|
"settings.title": "Kontoeinstellungen",
|
|
975
1001
|
"settings.navigation.title": "Kontoeinstellungen",
|
|
976
1002
|
"settings.subtitle": "Aktualisieren Sie Ihre Kontoeinstellungen",
|
|
977
1003
|
"settings.navigation-back-button": "Zur\xFCck",
|
|
978
|
-
"settings.navigation-backup-codes": "2FA-Backup-
|
|
1004
|
+
"settings.navigation-backup-codes": "2FA-Backup-Wiederherstellungscodes",
|
|
979
1005
|
"settings.navigation-logout": "Abmelden",
|
|
980
|
-
"settings.navigation-oidc": "
|
|
1006
|
+
"settings.navigation-oidc": "Social-Login",
|
|
981
1007
|
"settings.navigation-password": "Passwort",
|
|
982
1008
|
"settings.navigation-profile": "Profil",
|
|
983
|
-
"settings.navigation-totp": "
|
|
1009
|
+
"settings.navigation-totp": "Authentifikator-App",
|
|
984
1010
|
"settings.navigation-webauthn": "Sicherheitsschl\xFCssel",
|
|
985
1011
|
"settings.navigation-passkey": "Passkeys",
|
|
986
1012
|
"settings.subtitle-instructions": "Hier k\xF6nnen Sie Einstellungen zu Ihrem Konto vornehmen. F\xFCr manche Einstellungen m\xFCssen Sie Ihre Identit\xE4t erneut best\xE4tigen.",
|
|
987
|
-
"settings.totp.info.linked": "Sie haben derzeit eine
|
|
988
|
-
"settings.totp.info.not-linked": "Um dies zu erm\xF6glichen, scannen Sie den QR-Code mit
|
|
989
|
-
"settings.totp.title": "
|
|
990
|
-
"settings.totp.description": "F\xFCgen Sie eine
|
|
1013
|
+
"settings.totp.info.linked": "Sie haben derzeit eine Authentifikator-App verbunden.",
|
|
1014
|
+
"settings.totp.info.not-linked": "Um dies zu erm\xF6glichen, scannen Sie den QR-Code mit Ihrer Authentifikator-App und geben Sie den Code ein.",
|
|
1015
|
+
"settings.totp.title": "Authentifikator-App",
|
|
1016
|
+
"settings.totp.description": "F\xFCgen Sie eine Authentifikator-App zu Ihrem Konto hinzu, um die Sicherheit Ihres Kontos zu verbessern. Beliebte Authentifikator-Apps sind LastPass und Google Authenticator.",
|
|
991
1017
|
"settings.lookup_secret.description": "Verwalten Sie Ihre 2FA-Backup-Wiederherstellungscodes",
|
|
992
1018
|
"settings.lookup_secret.title": "Wiederherstellungscodes",
|
|
993
|
-
"settings.oidc.description": "Verwalten Sie Ihre Einstellungen f\xFCr
|
|
994
|
-
"settings.oidc.title": "
|
|
1019
|
+
"settings.oidc.description": "Verwalten Sie Ihre Einstellungen f\xFCr den Social-Login",
|
|
1020
|
+
"settings.oidc.title": "Social-Login",
|
|
995
1021
|
"settings.passkey.description": "Verwalten Sie Ihre Passworteinstellungen",
|
|
996
1022
|
"settings.passkey.title": "Passkeys verwalten",
|
|
997
1023
|
"settings.password.description": "\xC4ndern Sie Ihr Passwort",
|
|
@@ -1004,15 +1030,17 @@ var de_default = {
|
|
|
1004
1030
|
"settings.passkey.info": "Verwalten Sie Ihre Passkey-Einstellungen",
|
|
1005
1031
|
"settings.title-lookup-secret": "Verwalten Sie 2FA-Backup-Wiederherstellungscodes",
|
|
1006
1032
|
"settings.title-navigation": "Kontoeinstellungen",
|
|
1007
|
-
"settings.title-oidc": "Social
|
|
1033
|
+
"settings.title-oidc": "Social-Login",
|
|
1008
1034
|
"settings.title-passkey": "Passkeys verwalten",
|
|
1009
1035
|
"settings.title-password": "Kennwort \xE4ndern",
|
|
1010
1036
|
"settings.title-profile": "Profileinstellungen",
|
|
1011
|
-
"settings.title-totp": "Verwalten Sie die
|
|
1037
|
+
"settings.title-totp": "Verwalten Sie die Authentifikator-App",
|
|
1012
1038
|
"settings.title-webauthn": "Hardware-Token verwalten",
|
|
1013
1039
|
"settings.webauthn.info": "Hardware-Tokens werden f\xFCr die Zweitfaktor-Authentifizierung oder als Erstfaktor-Authentifizierung mit Passkeys verwendet",
|
|
1040
|
+
"settings.messages.toast-title.success": "Einstellungen aktualisiert",
|
|
1041
|
+
"settings.messages.toast-title.error": "Fehler beim Aktualisieren der Einstellungen",
|
|
1014
1042
|
"card.footer.select-another-method": "Eine andere Methode verwenden",
|
|
1015
|
-
"account-linking.title": "Account
|
|
1043
|
+
"account-linking.title": "Account verbinden",
|
|
1016
1044
|
"property.email": "E-Mail",
|
|
1017
1045
|
"property.identifier": "Kennung",
|
|
1018
1046
|
"property.password": "Passwort",
|
|
@@ -1029,14 +1057,14 @@ var de_default = {
|
|
|
1029
1057
|
"consent.scope.profile.description": "Erm\xF6glicht den Zugriff auf Ihre grundlegenden Profildetails, einschlie\xDFlich Ihres Benutzernamens, Vornamens und Nachnamens.",
|
|
1030
1058
|
"consent.scope.email.title": "E-Mail-Adresse",
|
|
1031
1059
|
"consent.scope.email.description": "Erm\xF6glicht den Abruf Ihrer E-Mail-Adresse und deren \xDCberpr\xFCfungsstatus.",
|
|
1032
|
-
"consent.scope.address.title": "
|
|
1060
|
+
"consent.scope.address.title": "Postanschrift",
|
|
1033
1061
|
"consent.scope.address.description": "Erm\xF6glicht den Zugriff auf Ihre Postanschrift.",
|
|
1034
1062
|
"consent.scope.phone.title": "Telefonnummer",
|
|
1035
1063
|
"consent.scope.phone.description": "Erm\xF6glicht den Abruf Ihrer Telefonnummer und deren \xDCberpr\xFCfungsstatus.",
|
|
1036
1064
|
"error.title.what-happened": "Was ist passiert?",
|
|
1037
1065
|
"error.footer.copy": "Kopieren",
|
|
1038
1066
|
"error.footer.text": "Bitte f\xFCgen Sie bei der Meldung dieses Fehlers die folgenden Informationen hinzu:",
|
|
1039
|
-
"error.instructions": "Bitte versuchen Sie es in wenigen Minuten erneut oder wenden Sie sich an den
|
|
1067
|
+
"error.instructions": "Bitte versuchen Sie es in wenigen Minuten erneut oder wenden Sie sich an den Webseiten-Betreiber.",
|
|
1040
1068
|
"error.title.what-can-i-do": "Was kann ich tun?",
|
|
1041
1069
|
"error.action.go-back": "Zur\xFCck"
|
|
1042
1070
|
};
|
|
@@ -1220,6 +1248,7 @@ var es_default = {
|
|
|
1220
1248
|
"two-step.code.title": "C\xF3digo de correo electr\xF3nico",
|
|
1221
1249
|
"two-step.passkey.description": "Utiliza el reconocimiento de huellas dactilares o facial de tu dispositivo.",
|
|
1222
1250
|
"two-step.passkey.title": "Clave de acceso (recomendada)",
|
|
1251
|
+
"two-step.passkey.description.error": "No se pudieron cargar las bibliotecas necesarias para usar su Passkey. Por favor, int\xE9ntelo de nuevo m\xE1s tarde.",
|
|
1223
1252
|
"two-step.password.description": "Ingrese la contrase\xF1a asociada con su cuenta",
|
|
1224
1253
|
"two-step.password.title": "Contrase\xF1a",
|
|
1225
1254
|
"two-step.webauthn.title": "Clave de Seguridad",
|
|
@@ -1245,6 +1274,8 @@ var es_default = {
|
|
|
1245
1274
|
"settings.profile.title": "Configuraci\xF3n de Perfil",
|
|
1246
1275
|
"settings.webauthn.description": "Administra la configuraci\xF3n de tu token de hardware",
|
|
1247
1276
|
"settings.webauthn.title": "Gestionar Tokens de Hardware",
|
|
1277
|
+
"settings.messages.toast-title.success": "Configuraci\xF3n actualizada con \xE9xito",
|
|
1278
|
+
"settings.messages.toast-title.error": "Error al actualizar la configuraci\xF3n",
|
|
1248
1279
|
"consent.title": "Autorizar {party}",
|
|
1249
1280
|
"consent.subtitle": "Una aplicaci\xF3n de terceros quiere acceder a la informaci\xF3n asociada a su cuenta {identifier}.",
|
|
1250
1281
|
"consent.scope.openid.title": "Identidad",
|
|
@@ -1307,6 +1338,7 @@ var es_default = {
|
|
|
1307
1338
|
"card.header.description.registration": "Registrarse con {identifierLabel}",
|
|
1308
1339
|
"misc.or": "o",
|
|
1309
1340
|
"forms.label.forgot-password": "\xBFOlvidaste tu contrase\xF1a?",
|
|
1341
|
+
"forms.label.recover-account": "Recuperar cuenta",
|
|
1310
1342
|
"settings.oidc.info": "Las cuentas conectadas de estos proveedores se pueden utilizar para iniciar sesi\xF3n en tu cuenta",
|
|
1311
1343
|
"settings.webauthn.info": "Los tokens de hardware se utilizan para la autenticaci\xF3n de segundo factor o como primer factor con las claves de acceso",
|
|
1312
1344
|
"settings.passkey.info": "Administra la configuraci\xF3n de tus claves de acceso",
|
|
@@ -1508,6 +1540,7 @@ var fr_default = {
|
|
|
1508
1540
|
"two-step.code.title": "Code de courrier \xE9lectronique",
|
|
1509
1541
|
"two-step.passkey.description": "Utilisez l'appareil pour la reconnaissance d'empreintes digitales ou de visage",
|
|
1510
1542
|
"two-step.passkey.title": "Cl\xE9 de passe (recommand\xE9e)",
|
|
1543
|
+
"two-step.passkey.description.error": "Impossible de charger les biblioth\xE8ques n\xE9cessaires pour utiliser votre Passkey. Veuillez r\xE9essayer plus tard.",
|
|
1511
1544
|
"two-step.password.description": "Entrez votre mot de passe associ\xE9 \xE0 votre compte",
|
|
1512
1545
|
"two-step.password.title": "Mot de passe",
|
|
1513
1546
|
"two-step.webauthn.title": "Cl\xE9 de S\xE9curit\xE9",
|
|
@@ -1574,6 +1607,8 @@ var fr_default = {
|
|
|
1574
1607
|
"settings.profile.description": "Mettre \xE0 jour les informations de votre profil",
|
|
1575
1608
|
"settings.webauthn.title": "G\xE9rer les jetons mat\xE9riels",
|
|
1576
1609
|
"settings.webauthn.description": "G\xE9rer les param\xE8tres de votre jeton mat\xE9riel",
|
|
1610
|
+
"settings.messages.toast-title.success": "Param\xE8tres mis \xE0 jour avec succ\xE8s",
|
|
1611
|
+
"settings.messages.toast-title.error": "\xC9chec de la mise \xE0 jour des param\xE8tres",
|
|
1577
1612
|
"verification.subtitle": "Saisissez l'adresse e-mail associ\xE9e \xE0 votre compte pour la v\xE9rifier",
|
|
1578
1613
|
"input.placeholder": "Saisissez votre {placeholder}",
|
|
1579
1614
|
"card.header.parts.oidc": "un fournisseur de r\xE9seaux sociaux",
|
|
@@ -1589,6 +1624,7 @@ var fr_default = {
|
|
|
1589
1624
|
"card.header.description.registration": "S'inscrire avec {identifierLabel}",
|
|
1590
1625
|
"misc.or": "ou",
|
|
1591
1626
|
"forms.label.forgot-password": "Mot de passe oubli\xE9?",
|
|
1627
|
+
"forms.label.recover-account": "R\xE9cup\xE9rer le compte",
|
|
1592
1628
|
"settings.lookup_secret.title": "Codes de r\xE9cup\xE9ration de sauvegarde (second facteur)",
|
|
1593
1629
|
"settings.lookup_secret.description": "Les codes de r\xE9cup\xE9ration sont une sauvegarde s\xE9curis\xE9e pour l'authentification \xE0 deux facteurs (2FA), vous permettant de retrouver l'acc\xE8s \xE0 votre compte si vous perdez votre appareil 2FA.",
|
|
1594
1630
|
"settings.oidc.title": "Comptes connect\xE9s",
|
|
@@ -1794,6 +1830,7 @@ var nl_default = {
|
|
|
1794
1830
|
"two-step.code.description": "Een verificatiecode wordt naar uw e-mail gestuurd",
|
|
1795
1831
|
"two-step.code.title": "E-mailcode",
|
|
1796
1832
|
"two-step.passkey.description": "Gebruik de vingerafdruk- of gezichtsherkenning van uw apparaat",
|
|
1833
|
+
"two-step.passkey.description.error": "De benodigde bibliotheken om uw Passkey te gebruiken konden niet worden geladen. Probeer het later opnieuw.",
|
|
1797
1834
|
"two-step.passkey.title": "Toegangscode (aanbevolen)",
|
|
1798
1835
|
"two-step.password.description": "Voer uw wachtwoord in dat is gekoppeld aan uw account",
|
|
1799
1836
|
"two-step.password.title": "Wachtwoord",
|
|
@@ -1837,6 +1874,7 @@ var nl_default = {
|
|
|
1837
1874
|
"card.header.parts.password.registration": "",
|
|
1838
1875
|
"card.header.parts.webauthn": "",
|
|
1839
1876
|
"forms.label.forgot-password": "",
|
|
1877
|
+
"forms.label.recover-account": "",
|
|
1840
1878
|
"login.subtitle": "",
|
|
1841
1879
|
"login.subtitle-refresh": "",
|
|
1842
1880
|
"misc.or": "",
|
|
@@ -1872,6 +1910,8 @@ var nl_default = {
|
|
|
1872
1910
|
"settings.webauthn.description": "",
|
|
1873
1911
|
"settings.webauthn.info": "",
|
|
1874
1912
|
"settings.webauthn.title": "",
|
|
1913
|
+
"settings.messages.toast-title.success": "Instellingen bijgewerkt",
|
|
1914
|
+
"settings.messages.toast-title.error": "Fout bij het bijwerken van instellingen",
|
|
1875
1915
|
"card.footer.select-another-method": "",
|
|
1876
1916
|
"account-linking.title": "",
|
|
1877
1917
|
"property.code": "",
|
|
@@ -2081,6 +2121,7 @@ var pl_default = {
|
|
|
2081
2121
|
"two-step.code.description": "Kod weryfikacyjny zostanie wys\u0142any na Tw\xF3j adres email.",
|
|
2082
2122
|
"two-step.code.title": "Kod email",
|
|
2083
2123
|
"two-step.passkey.description": "U\u017Cyj swojego urz\u0105dzenia lub funkcji rozpoznawania twarzy na swoim urz\u0105dzeniu.",
|
|
2124
|
+
"two-step.passkey.description.error": "Nie uda\u0142o si\u0119 za\u0142adowa\u0107 niezb\u0119dnych bibliotek do u\u017Cycia Passkey. Spr\xF3buj ponownie p\xF3\u017Aniej.",
|
|
2084
2125
|
"two-step.passkey.title": "Klucz dost\u0119pu (zalecany)",
|
|
2085
2126
|
"two-step.password.description": "Wprowad\u017A has\u0142o powi\u0105zane z twoim kontem",
|
|
2086
2127
|
"two-step.password.title": "Has\u0142o",
|
|
@@ -2124,6 +2165,7 @@ var pl_default = {
|
|
|
2124
2165
|
"card.header.parts.totp": "Twoja aplikacja uwierzytelniaj\u0105ca",
|
|
2125
2166
|
"card.header.parts.lookup_secret": "kod odzyskiwania kopii zapasowej",
|
|
2126
2167
|
"forms.label.forgot-password": "",
|
|
2168
|
+
"forms.label.recover-account": "",
|
|
2127
2169
|
"login.subtitle": "",
|
|
2128
2170
|
"login.subtitle-refresh": "",
|
|
2129
2171
|
"misc.or": "",
|
|
@@ -2159,6 +2201,8 @@ var pl_default = {
|
|
|
2159
2201
|
"settings.webauthn.description": "",
|
|
2160
2202
|
"settings.webauthn.info": "",
|
|
2161
2203
|
"settings.webauthn.title": "",
|
|
2204
|
+
"settings.messages.toast-title.success": "Ustawienia zaktualizowane pomy\u015Blnie",
|
|
2205
|
+
"settings.messages.toast-title.error": "Wyst\u0105pi\u0142 b\u0142\u0105d podczas aktualizacji ustawie\u0144",
|
|
2162
2206
|
"card.footer.select-another-method": "",
|
|
2163
2207
|
"account-linking.title": "",
|
|
2164
2208
|
"property.code": "",
|
|
@@ -2368,6 +2412,7 @@ var pt_default = {
|
|
|
2368
2412
|
"two-step.code.description": "Um c\xF3digo de verifica\xE7\xE3o ser\xE1 enviado para o seu email",
|
|
2369
2413
|
"two-step.code.title": "C\xF3digo de email",
|
|
2370
2414
|
"two-step.passkey.description": "Use o seu dispositivo para reconhecimento de impress\xE3o digital ou facial.",
|
|
2415
|
+
"two-step.passkey.description.error": "N\xE3o foi poss\xEDvel carregar as bibliotecas necess\xE1rias para usar o seu Passkey. Por favor, tente novamente mais tarde.",
|
|
2371
2416
|
"two-step.passkey.title": "Chave de acesso (recomendado)",
|
|
2372
2417
|
"two-step.password.description": "Insira a sua senha associada \xE0 sua conta",
|
|
2373
2418
|
"two-step.password.title": "Senha",
|
|
@@ -2411,6 +2456,7 @@ var pt_default = {
|
|
|
2411
2456
|
"card.header.parts.password.registration": "",
|
|
2412
2457
|
"card.header.parts.webauthn": "",
|
|
2413
2458
|
"forms.label.forgot-password": "",
|
|
2459
|
+
"forms.label.recover-account": "",
|
|
2414
2460
|
"login.subtitle": "",
|
|
2415
2461
|
"login.subtitle-refresh": "",
|
|
2416
2462
|
"misc.or": "",
|
|
@@ -2446,6 +2492,8 @@ var pt_default = {
|
|
|
2446
2492
|
"settings.webauthn.description": "",
|
|
2447
2493
|
"settings.webauthn.info": "",
|
|
2448
2494
|
"settings.webauthn.title": "",
|
|
2495
|
+
"settings.messages.toast-title.success": "Configura\xE7\xF5es atualizadas com sucesso",
|
|
2496
|
+
"settings.messages.toast-title.error": "Erro ao atualizar configura\xE7\xF5es",
|
|
2449
2497
|
"card.footer.select-another-method": "",
|
|
2450
2498
|
"account-linking.title": "",
|
|
2451
2499
|
"property.code": "",
|
|
@@ -2674,6 +2722,7 @@ var sv_default = {
|
|
|
2674
2722
|
"two-step.code.title": "E-postkod",
|
|
2675
2723
|
"two-step.passkey.description": "Anv\xE4nd din enhets fingeravtryck eller ansiktsigenk\xE4nning",
|
|
2676
2724
|
"two-step.passkey.title": "Passerkod (rekommenderad)",
|
|
2725
|
+
"two-step.passkey.description.error": "Det gick inte att ladda de n\xF6dv\xE4ndiga biblioteken f\xF6r att anv\xE4nda din Passkey. F\xF6rs\xF6k igen senare.",
|
|
2677
2726
|
"two-step.password.description": "Ange ditt l\xF6senord kopplat till ditt konto",
|
|
2678
2727
|
"two-step.password.title": "L\xF6senord",
|
|
2679
2728
|
"two-step.webauthn.title": "S\xE4kerhetsnyckel",
|
|
@@ -2698,6 +2747,7 @@ var sv_default = {
|
|
|
2698
2747
|
"card.header.parts.password.registration": "din {identifierLabel} och ett l\xF6senord",
|
|
2699
2748
|
"card.header.parts.webauthn": "en s\xE4kerhetsnyckel",
|
|
2700
2749
|
"forms.label.forgot-password": "Gl\xF6mt L\xF6senord?",
|
|
2750
|
+
"forms.label.recover-account": "\xC5terst\xE4ll Konto",
|
|
2701
2751
|
"login.subtitle": "Logga in med {parts}",
|
|
2702
2752
|
"login.subtitle-refresh": "Bekr\xE4fta din identitet med {parts}",
|
|
2703
2753
|
"misc.or": "eller",
|
|
@@ -2733,6 +2783,8 @@ var sv_default = {
|
|
|
2733
2783
|
"settings.webauthn.description": "Hantera inst\xE4llningarna f\xF6r din maskinvarutoken",
|
|
2734
2784
|
"settings.webauthn.info": "H\xE5rdvarutokens anv\xE4nds f\xF6r andrafaktorsautentisering eller som f\xF6rstafaktor med l\xF6senordsnycklar",
|
|
2735
2785
|
"settings.webauthn.title": "Hantera maskinvarutokens",
|
|
2786
|
+
"settings.messages.toast-title.success": "Inst\xE4llningarna har uppdaterats",
|
|
2787
|
+
"settings.messages.toast-title.error": "Ett fel uppstod",
|
|
2736
2788
|
"card.footer.select-another-method": "V\xE4lj en annan metod",
|
|
2737
2789
|
"account-linking.title": "L\xE4nka ditt konto",
|
|
2738
2790
|
"property.password": "l\xF6senord",
|
|
@@ -2763,6 +2815,297 @@ var sv_default = {
|
|
|
2763
2815
|
"error.instructions": ""
|
|
2764
2816
|
};
|
|
2765
2817
|
|
|
2818
|
+
// src/locales/no.json
|
|
2819
|
+
var no_default = {
|
|
2820
|
+
"consent.action-accept": "Tillat",
|
|
2821
|
+
"consent.action-reject": "Avsl\xE5",
|
|
2822
|
+
"consent.description": "Gi kun tillatelser hvis du stoler p\xE5 dette nettstedet eller appen. Du trenger ikke \xE5 godta alle tillatelser.",
|
|
2823
|
+
"consent.privacy-policy-label": "Personvernerkl\xE6ring",
|
|
2824
|
+
"consent.remember-label": "Husk denne avgj\xF8relsen til neste gang. Applikasjonen vil ikke kunne be om flere tillatelser uten ditt samtykke.",
|
|
2825
|
+
"consent.remember-tooltip": "husk mitt valg",
|
|
2826
|
+
"consent.requested-permissions-label": "Applikasjonen ber om tilgang til f\xF8lgende tillatelser:",
|
|
2827
|
+
"consent.terms-of-service-label": "Vilk\xE5r for bruk",
|
|
2828
|
+
"error.back-button": "G\xE5 tilbake",
|
|
2829
|
+
"error.description": "En feil oppstod med f\xF8lgende melding:",
|
|
2830
|
+
"error.support-email-link": "Hvis problemet vedvarer, vennligst kontakt <a>{contactSupportEmail}</a>",
|
|
2831
|
+
"error.title": "En feil oppstod",
|
|
2832
|
+
"error.title-internal-server-error": "Intern serverfeil",
|
|
2833
|
+
"error.title-not-found": "404 - Siden ble ikke funnet",
|
|
2834
|
+
"identities.messages.1010001": "Logg inn",
|
|
2835
|
+
"identities.messages.1010002": "Logg inn med {provider}",
|
|
2836
|
+
"identities.messages.1010003": "Vennligst bekreft denne handlingen ved \xE5 verifisere at det er deg.",
|
|
2837
|
+
"identities.messages.1010004": "Vennligst fullf\xF8r den andre autentiseringsutfordringen.",
|
|
2838
|
+
"identities.messages.1010005": "Bekreft",
|
|
2839
|
+
"identities.messages.1010006": "Autentiseringskode",
|
|
2840
|
+
"identities.messages.1010007": "Backup gjenopprettingskode",
|
|
2841
|
+
"identities.messages.1010008": "Fortsett med sikkerhetsn\xF8kkel",
|
|
2842
|
+
"identities.messages.1010009": "Fortsett",
|
|
2843
|
+
"identities.messages.1010010": "Fortsett",
|
|
2844
|
+
"identities.messages.1010011": "Logg inn med sikkerhetsn\xF8kkel",
|
|
2845
|
+
"identities.messages.1010012": "Forbered din WebAuthn-enhet (f.eks. sikkerhetsn\xF8kkel, biometrisk skanner, ...) og trykk fortsett.",
|
|
2846
|
+
"identities.messages.1010013": "Fortsett",
|
|
2847
|
+
"identities.messages.1010014": "En kode har blitt sendt til adressen du oppga. Hvis du ikke har mottatt en melding, sjekk stavem\xE5ten p\xE5 adressen og pr\xF8v \xE5 logge inn p\xE5 nytt.",
|
|
2848
|
+
"identities.messages.1010015": "Send innloggingskode",
|
|
2849
|
+
"identities.messages.1010016": 'Du pr\xF8vde \xE5 logge inn med "{duplicateIdentifier}", men den e-posten er allerede brukt av en annen konto. Logg inn p\xE5 kontoen din med et av alternativene nedenfor for \xE5 legge til kontoen din "{duplicateIdentifier}" hos "{provider}" som en annen m\xE5te \xE5 logge inn p\xE5.',
|
|
2850
|
+
"identities.messages.1010017": "Logg inn og koble til",
|
|
2851
|
+
"identities.messages.1010018": "Bekreft med {provider}",
|
|
2852
|
+
"identities.messages.1010019": "Be om kode for \xE5 fortsette",
|
|
2853
|
+
"identities.messages.1010021": "Logg inn med passkey",
|
|
2854
|
+
"identities.messages.1010022": "Logg inn med passord",
|
|
2855
|
+
"identities.messages.1010023": "Send kode til {address}",
|
|
2856
|
+
"identities.messages.1040001": "Registrer deg",
|
|
2857
|
+
"identities.messages.1040002": "Registrer deg med {provider}",
|
|
2858
|
+
"identities.messages.1040003": "Fortsett",
|
|
2859
|
+
"identities.messages.1040004": "Registrer deg med sikkerhetsn\xF8kkel",
|
|
2860
|
+
"identities.messages.1040005": "En kode har blitt sendt til adressen(e) du oppga. Hvis du ikke har mottatt en melding, sjekk stavem\xE5ten p\xE5 adressen og pr\xF8v \xE5 registrere deg p\xE5 nytt.",
|
|
2861
|
+
"identities.messages.1040006": "Send registreringskode",
|
|
2862
|
+
"identities.messages.1040007": "Registrer deg med passkey",
|
|
2863
|
+
"identities.messages.1040008": "Tilbake",
|
|
2864
|
+
"identities.messages.1040009": "Vennligst velg en legitimasjon for \xE5 autentisere deg.",
|
|
2865
|
+
"identities.messages.1050001": "Endringene dine er lagret!",
|
|
2866
|
+
"identities.messages.1050002": "Koble til {provider}",
|
|
2867
|
+
"identities.messages.1050003": "Koble fra {provider}",
|
|
2868
|
+
"identities.messages.1050004": "Koble fra TOTP-autentiseringsapp",
|
|
2869
|
+
"identities.messages.1050005": "Autentiseringsapp QR-kode",
|
|
2870
|
+
"identities.messages.1050006": "{secret}",
|
|
2871
|
+
"identities.messages.1050007": "Vis backup gjenopprettingskoder",
|
|
2872
|
+
"identities.messages.1050008": "Aktiver",
|
|
2873
|
+
"identities.messages.1050009": "{secret}",
|
|
2874
|
+
"identities.messages.1050010": "Dette er dine backup gjenopprettingskoder. Vennligst oppbevar dem p\xE5 et trygt sted!",
|
|
2875
|
+
"identities.messages.1050011": "Bekreft backup gjenopprettingskoder",
|
|
2876
|
+
"identities.messages.1050012": "Legg til sikkerhetsn\xF8kkel",
|
|
2877
|
+
"identities.messages.1050013": "Navn p\xE5 sikkerhetsn\xF8kkel",
|
|
2878
|
+
"identities.messages.1050014": "Hemmeligheten ble brukt {used_at, date, long}",
|
|
2879
|
+
"identities.messages.1050015": "{secrets_list}",
|
|
2880
|
+
"identities.messages.1050016": "Deaktiver denne metoden",
|
|
2881
|
+
"identities.messages.1050017": "Autentiseringshemmelighet",
|
|
2882
|
+
"identities.messages.1050018": 'Fjern sikkerhetsn\xF8kkel "{display_name}"',
|
|
2883
|
+
"identities.messages.1050019": "Legg til passkey",
|
|
2884
|
+
"identities.messages.1050020": 'Fjern passkey "{display_name}"',
|
|
2885
|
+
"identities.messages.1060001": "Du har gjenopprettet kontoen din. Vennligst endre passordet ditt eller sett opp en alternativ innloggingsmetode (f.eks. sosial innlogging) innen de neste {privileged_session_expires_at_unix_until_minutes} minuttene.",
|
|
2886
|
+
"identities.messages.1060002": "En e-post med en gjenopprettingslenke har blitt sendt til e-postadressen du oppga. Hvis du ikke har mottatt en e-post, sjekk stavem\xE5ten p\xE5 adressen og s\xF8rg for \xE5 bruke adressen du registrerte deg med.",
|
|
2887
|
+
"identities.messages.1060003": "En e-post med en gjenopprettingskode har blitt sendt til e-postadressen du oppga. Hvis du ikke har mottatt en e-post, sjekk stavem\xE5ten p\xE5 adressen og s\xF8rg for \xE5 bruke adressen du registrerte deg med.",
|
|
2888
|
+
"identities.messages.1070001": "Passord",
|
|
2889
|
+
"identities.messages.1070002": "{title}",
|
|
2890
|
+
"identities.messages.1070003": "Lagre",
|
|
2891
|
+
"identities.messages.1070004": "ID",
|
|
2892
|
+
"identities.messages.1070005": "Send inn",
|
|
2893
|
+
"identities.messages.1070006": "Bekreft kode",
|
|
2894
|
+
"identities.messages.1070007": "E-post",
|
|
2895
|
+
"identities.messages.1070008": "Send kode p\xE5 nytt",
|
|
2896
|
+
"identities.messages.1070009": "Fortsett",
|
|
2897
|
+
"identities.messages.1070010": "Gjenopprettingskode",
|
|
2898
|
+
"identities.messages.1070011": "Verifiseringskode",
|
|
2899
|
+
"identities.messages.1070012": "Registreringskode",
|
|
2900
|
+
"identities.messages.1070013": "Innloggingskode",
|
|
2901
|
+
"identities.messages.1070014": "Logg inn og koble legitimasjon",
|
|
2902
|
+
"identities.messages.1070015": "Vennligst fullf\xF8r captcha-utfordringen for \xE5 fortsette.",
|
|
2903
|
+
"identities.messages.1080001": "En e-post med en verifiseringslenke har blitt sendt til e-postadressen du oppga. Hvis du ikke har mottatt en e-post, sjekk stavem\xE5ten p\xE5 adressen og s\xF8rg for \xE5 bruke adressen du registrerte deg med.",
|
|
2904
|
+
"identities.messages.1080002": "Du har bekreftet e-postadressen din.",
|
|
2905
|
+
"identities.messages.1080003": "En e-post med en verifiseringskode har blitt sendt til e-postadressen du oppga. Hvis du ikke har mottatt en e-post, sjekk stavem\xE5ten p\xE5 adressen og s\xF8rg for \xE5 bruke adressen du registrerte deg med.",
|
|
2906
|
+
"identities.messages.4000001": "{reason}",
|
|
2907
|
+
"identities.messages.4000002": "Vennligst skriv inn {property} og pr\xF8v igjen.",
|
|
2908
|
+
"identities.messages.4000003": "lengden m\xE5 v\xE6re >= {min_length}, men fikk {actual_length}",
|
|
2909
|
+
"identities.messages.4000004": 'matcher ikke m\xF8nsteret "{pattern}"',
|
|
2910
|
+
"identities.messages.4000005": "Passordet kan ikke brukes fordi {reason}.",
|
|
2911
|
+
"identities.messages.4000006": "De oppgitte legitimasjonene er ugyldige, sjekk for skrivefeil i passord, brukernavn, e-postadresse eller telefonnummer.",
|
|
2912
|
+
"identities.messages.4000007": "En konto med samme identifikator (e-post, telefon, brukernavn, ...) eksisterer allerede.",
|
|
2913
|
+
"identities.messages.4000008": "Den oppgitte autentiseringskoden er ugyldig, vennligst pr\xF8v igjen.",
|
|
2914
|
+
"identities.messages.4000009": "Fant ingen innloggingsidentifikatorer. Glemte du \xE5 sette dem? Dette kan ogs\xE5 skyldes en serverfeil.",
|
|
2915
|
+
"identities.messages.4000010": "Kontoen er ikke aktiv enn\xE5. Glemte du \xE5 bekrefte e-postadressen din?",
|
|
2916
|
+
"identities.messages.4000011": "Du har ingen TOTP-enhet satt opp.",
|
|
2917
|
+
"identities.messages.4000012": "Denne backup gjenopprettingskoden er allerede brukt.",
|
|
2918
|
+
"identities.messages.4000013": "Du har ingen WebAuthn-enhet satt opp.",
|
|
2919
|
+
"identities.messages.4000014": "Du har ingen backup gjenopprettingskoder satt opp.",
|
|
2920
|
+
"identities.messages.4000015": "Denne kontoen eksisterer ikke eller har ingen sikkerhetsn\xF8kkel satt opp.",
|
|
2921
|
+
"identities.messages.4000016": "Backup gjenopprettingskoden er ikke gyldig.",
|
|
2922
|
+
"identities.messages.4000017": "lengden m\xE5 v\xE6re <= {max_length}, men fikk {actual_length}",
|
|
2923
|
+
"identities.messages.4000018": "m\xE5 v\xE6re >= {minimum} men fant {actual}",
|
|
2924
|
+
"identities.messages.4000019": "m\xE5 v\xE6re > {minimum} men fant {actual}",
|
|
2925
|
+
"identities.messages.4000020": "m\xE5 v\xE6re <= {maximum} men fant {actual}",
|
|
2926
|
+
"identities.messages.4000021": "m\xE5 v\xE6re < {maximum} men fant {actual}",
|
|
2927
|
+
"identities.messages.4000022": "{actual} er ikke et multiplum av {base}",
|
|
2928
|
+
"identities.messages.4000023": "maksimalt {max_items} elementer tillatt, men fant {actual_items} elementer",
|
|
2929
|
+
"identities.messages.4000024": "minst {min_items} elementer kreves, men fant {actual_items} elementer",
|
|
2930
|
+
"identities.messages.4000025": "elementene p\xE5 indeks {index_a} og {index_b} er like",
|
|
2931
|
+
"identities.messages.4000026": "forventet {allowed_types_list}, men fikk {actual_type}",
|
|
2932
|
+
"identities.messages.4000027": "En konto med samme identifikator (e-post, telefon, brukernavn, ...) eksisterer allerede. Vennligst logg inn p\xE5 din eksisterende konto for \xE5 koble din sosiale profil.",
|
|
2933
|
+
"identities.messages.4000028": "Du pr\xF8vde \xE5 logge inn med {credential_identifier_hint} som allerede er i bruk av en annen konto. Du kan logge inn med {available_credential_types_list}. Du kan logge inn med en av f\xF8lgende sosiale innloggingsleverand\xF8rer: {Available_oidc_providers_list}.",
|
|
2934
|
+
"identities.messages.4000029": "m\xE5 v\xE6re lik konstanten {expected}",
|
|
2935
|
+
"identities.messages.4000030": "const feilet",
|
|
2936
|
+
"identities.messages.4000031": "Passordet kan ikke brukes fordi det er for likt identifikatoren.",
|
|
2937
|
+
"identities.messages.4000032": "Passordet m\xE5 v\xE6re minst {min_length} tegn langt, men fikk {actual_length}.",
|
|
2938
|
+
"identities.messages.4000033": "Passordet m\xE5 v\xE6re maksimalt {max_length} tegn langt, men fikk {actual_length}.",
|
|
2939
|
+
"identities.messages.4000034": "Passordet har blitt funnet i datalekkasjer og m\xE5 ikke lenger brukes.",
|
|
2940
|
+
"identities.messages.4000035": "Denne kontoen eksisterer ikke eller har ikke satt opp innlogging med kode.",
|
|
2941
|
+
"identities.messages.4000036": "De oppgitte egenskapene samsvarer ikke med egenskapene som tidligere var tilknyttet denne flyten.",
|
|
2942
|
+
"identities.messages.4000037": "Denne kontoen eksisterer ikke eller har ingen innloggingsmetode konfigurert.",
|
|
2943
|
+
"identities.messages.4000038": "Captcha-verifisering mislyktes, vennligst pr\xF8v igjen.",
|
|
2944
|
+
"identities.messages.4010001": "Innloggingsflyten utl\xF8p for {expired_at_unix_since_minutes} minutter siden, vennligst pr\xF8v igjen.",
|
|
2945
|
+
"identities.messages.4010002": "Fant ingen strategi for \xE5 logge deg inn. Fylte du ut skjemaet riktig?",
|
|
2946
|
+
"identities.messages.4010003": "Fant ingen strategi for \xE5 registrere deg. Fylte du ut skjemaet riktig?",
|
|
2947
|
+
"identities.messages.4010004": "Fant ingen strategi for \xE5 oppdatere innstillingene dine. Fylte du ut skjemaet riktig?",
|
|
2948
|
+
"identities.messages.4010005": "Fant ingen strategi for \xE5 gjenopprette kontoen din. Fylte du ut skjemaet riktig?",
|
|
2949
|
+
"identities.messages.4010006": "Fant ingen strategi for \xE5 verifisere kontoen din. Fylte du ut skjemaet riktig?",
|
|
2950
|
+
"identities.messages.4010007": "Foresp\xF8rselen ble allerede fullf\xF8rt og kan ikke gjentas.",
|
|
2951
|
+
"identities.messages.4010008": "Innloggingskoden er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v igjen.",
|
|
2952
|
+
"identities.messages.4010009": "Koblede legitimasjoner samsvarer ikke.",
|
|
2953
|
+
"identities.messages.4010010": "Adressen du oppga samsvarer ikke med noen kjente adresser i den n\xE5v\xE6rende kontoen.",
|
|
2954
|
+
"identities.messages.4040001": "Registreringsflyten utl\xF8p for {expired_at_unix_since_minutes} minutter siden, vennligst pr\xF8v igjen.",
|
|
2955
|
+
"identities.messages.4040002": "Foresp\xF8rselen ble allerede fullf\xF8rt og kan ikke gjentas.",
|
|
2956
|
+
"identities.messages.4040003": "Registreringskoden er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v igjen.",
|
|
2957
|
+
"identities.messages.4050001": "Innstillingsflyten utl\xF8p for {expired_at_unix_since_minutes} minutter siden, vennligst pr\xF8v igjen.",
|
|
2958
|
+
"identities.messages.4060001": "Foresp\xF8rselen ble allerede fullf\xF8rt og kan ikke gjentas.",
|
|
2959
|
+
"identities.messages.4060002": "Gjenopprettingsflyten n\xE5dde en feiltilstand og m\xE5 gjentas.",
|
|
2960
|
+
"identities.messages.4060004": "Gjenopprettingstokenet er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v flyten p\xE5 nytt.",
|
|
2961
|
+
"identities.messages.4060005": "Gjenopprettingsflyten utl\xF8p for {expired_at_unix_since_minutes} minutter siden, vennligst pr\xF8v igjen.",
|
|
2962
|
+
"identities.messages.4060006": "Gjenopprettingskoden er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v igjen.",
|
|
2963
|
+
"identities.messages.4070001": "Verifiseringstokenet er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v flyten p\xE5 nytt.",
|
|
2964
|
+
"identities.messages.4070002": "Foresp\xF8rselen ble allerede fullf\xF8rt og kan ikke gjentas.",
|
|
2965
|
+
"identities.messages.4070003": "Verifiseringsflyten n\xE5dde en feiltilstand og m\xE5 gjentas.",
|
|
2966
|
+
"identities.messages.4070005": "Verifiseringsflyten utl\xF8p for {expired_at_unix_since_minutes} minutter siden, vennligst pr\xF8v igjen.",
|
|
2967
|
+
"identities.messages.4070006": "Verifiseringskoden er ugyldig eller har allerede blitt brukt. Vennligst pr\xF8v igjen.",
|
|
2968
|
+
"identities.messages.5000001": "{reason}",
|
|
2969
|
+
"login.cancel-button": "Avbryt",
|
|
2970
|
+
"login.cancel-label": "Ikke riktig konto?",
|
|
2971
|
+
"login.forgot-password": "Glemt passord?",
|
|
2972
|
+
"login.logged-in-as-label": "Du bruker:",
|
|
2973
|
+
"login.logout-button": "Logg ut",
|
|
2974
|
+
"login.logout-label": "Noe fungerer ikke?",
|
|
2975
|
+
"login.registration-button": "Registrer deg",
|
|
2976
|
+
"login.registration-label": "Har du ikke en konto?",
|
|
2977
|
+
"login.subtitle-oauth2": "For \xE5 autentisere {clientName}",
|
|
2978
|
+
"login.title": "Logg inn",
|
|
2979
|
+
"login.subtitle": "Logg inn med {parts}",
|
|
2980
|
+
"login.title-aal2": "Tofaktorautentisering",
|
|
2981
|
+
"login.subtitle-aal2": "Velg en m\xE5te \xE5 fullf\xF8re tofaktorautentisering",
|
|
2982
|
+
"login.code.subtitle": "En verifiseringskode vil bli sendt p\xE5 e-post",
|
|
2983
|
+
"login.webauthn.subtitle": "Vennligst forbered din WebAuthN-enhet",
|
|
2984
|
+
"login.totp.subtitle": "Vennligst skriv inn koden generert av din autentiseringsapp",
|
|
2985
|
+
"login.lookup_secret.subtitle": "Vennligst skriv inn en av dine 8-sifrede backup gjenopprettingskoder",
|
|
2986
|
+
"login.title-refresh": "Reautentiser",
|
|
2987
|
+
"login.subtitle-refresh": "Bekreft din identitet med {parts}",
|
|
2988
|
+
"login.2fa.go-back": "Noe fungerer ikke?",
|
|
2989
|
+
"login.2fa.go-back.link": "G\xE5 tilbake",
|
|
2990
|
+
"login.2fa.method.go-back": "Velg en annen metode",
|
|
2991
|
+
"logout.accept-button": "Ja",
|
|
2992
|
+
"logout.reject-button": "Nei",
|
|
2993
|
+
"logout.title": "\xD8nsker du \xE5 logge ut?",
|
|
2994
|
+
"recovery.login-button": "Logg inn",
|
|
2995
|
+
"recovery.login-label": "Husker du legitimasjonen din?",
|
|
2996
|
+
"recovery.title": "Gjenopprett kontoen din",
|
|
2997
|
+
"recovery.subtitle": "Skriv inn e-postadressen tilknyttet kontoen din for \xE5 motta en engangskode",
|
|
2998
|
+
"registration.login-button": "Logg inn",
|
|
2999
|
+
"registration.login-label": "Har du allerede en konto?",
|
|
3000
|
+
"registration.subtitle-oauth2": "For \xE5 autentisere {clientName}",
|
|
3001
|
+
"registration.title": "Registrer en konto",
|
|
3002
|
+
"registration.subtitle": "Registrer deg med {parts}",
|
|
3003
|
+
"settings.navigation-back-button": "Tilbake",
|
|
3004
|
+
"settings.navigation-backup-codes": "2FA backupkoder",
|
|
3005
|
+
"settings.navigation-logout": "Logg ut",
|
|
3006
|
+
"settings.navigation-oidc": "Sosial innlogging",
|
|
3007
|
+
"settings.navigation-password": "Passord",
|
|
3008
|
+
"settings.navigation-profile": "Profil",
|
|
3009
|
+
"settings.navigation-totp": "Autentiseringsapp",
|
|
3010
|
+
"settings.navigation-webauthn": "Maskinvaretokener",
|
|
3011
|
+
"settings.navigation-passkey": "Passkeys",
|
|
3012
|
+
"settings.subtitle-instructions": "Her kan du administrere innstillinger relatert til kontoen din. V\xE6r oppmerksom p\xE5 at enkelte handlinger krever at du autentiserer deg p\xE5 nytt.",
|
|
3013
|
+
"settings.subtitle": "Oppdater kontoinnstillingene dine",
|
|
3014
|
+
"settings.title-lookup-secret": "Administrer 2FA backup gjenopprettingskoder",
|
|
3015
|
+
"settings.title-navigation": "Kontoinnstillinger",
|
|
3016
|
+
"settings.title-oidc": "Sosial innlogging",
|
|
3017
|
+
"settings.title-password": "Endre passord",
|
|
3018
|
+
"settings.title-profile": "Profilinnstillinger",
|
|
3019
|
+
"settings.title-totp": "Administrer 2FA TOTP-autentiseringsapp",
|
|
3020
|
+
"settings.title-webauthn": "Administrer maskinvaretokener",
|
|
3021
|
+
"settings.title-passkey": "Administrer passkeys",
|
|
3022
|
+
"settings.title": "Kontoinnstillinger",
|
|
3023
|
+
"settings.navigation.title": "Kontoinnstillinger",
|
|
3024
|
+
"settings.password.title": "Endre passord",
|
|
3025
|
+
"settings.password.description": "Endre passordet ditt",
|
|
3026
|
+
"settings.profile.title": "Profilinnstillinger",
|
|
3027
|
+
"settings.profile.description": "Oppdater profilinformasjonen din",
|
|
3028
|
+
"settings.webauthn.title": "Administrer maskinvaretokener",
|
|
3029
|
+
"settings.webauthn.description": "Administrer innstillingene for maskinvaretokener",
|
|
3030
|
+
"verification.registration-button": "Registrer deg",
|
|
3031
|
+
"verification.registration-label": "Har du ikke en konto?",
|
|
3032
|
+
"verification.title": "Bekreft kontoen din",
|
|
3033
|
+
"verification.subtitle": "Skriv inn e-postadressen tilknyttet kontoen din for \xE5 bekrefte den",
|
|
3034
|
+
"verification.back-button": "Tilbake",
|
|
3035
|
+
"two-step.password.title": "Passord",
|
|
3036
|
+
"two-step.password.description": "Skriv inn passordet tilknyttet kontoen din",
|
|
3037
|
+
"two-step.code.title": "E-postkode",
|
|
3038
|
+
"two-step.code.description": "En verifiseringskode vil bli sendt til din e-post",
|
|
3039
|
+
"two-step.webauthn.title": "Sikkerhetsn\xF8kkel",
|
|
3040
|
+
"two-step.webauthn.description": "Bruk sikkerhetsn\xF8kkelen din for \xE5 autentisere",
|
|
3041
|
+
"two-step.passkey.title": "Passkey (anbefalt)",
|
|
3042
|
+
"two-step.passkey.description": "Bruk enheten din for fingeravtrykk eller ansiktsgjenkjenning",
|
|
3043
|
+
"two-step.totp.title": "Bruk autentiseringsapp (TOTP)",
|
|
3044
|
+
"two-step.totp.description": "Bruk en 6-sifret engangskode fra autentiseringsappen din",
|
|
3045
|
+
"two-step.lookup_secret.title": "Backup gjenopprettingskode",
|
|
3046
|
+
"two-step.lookup_secret.description": "Bruk en av dine 8-sifrede backupkoder for \xE5 autentisere",
|
|
3047
|
+
"identities.messages.1010020": "",
|
|
3048
|
+
"input.placeholder": "Skriv inn din {placeholder}",
|
|
3049
|
+
"card.header.parts.oidc": "en sosial leverand\xF8r",
|
|
3050
|
+
"card.header.parts.password.registration": "din {identifierLabel} og et passord",
|
|
3051
|
+
"card.header.parts.password.login": "din {identifierLabel} og passord",
|
|
3052
|
+
"card.header.parts.code": "en kode sendt til deg",
|
|
3053
|
+
"card.header.parts.passkey": "en passkey",
|
|
3054
|
+
"card.header.parts.webauthn": "en sikkerhetsn\xF8kkel",
|
|
3055
|
+
"card.header.parts.totp": "din autentiseringsapp",
|
|
3056
|
+
"card.header.parts.lookup_secret": "en backup gjenopprettingskode",
|
|
3057
|
+
"card.header.parts.identifier-first": "din {identifierLabel}",
|
|
3058
|
+
"card.header.description.login": "Logg inn med {identifierLabel}",
|
|
3059
|
+
"card.header.description.registration": "Registrer deg med {identifierLabel}",
|
|
3060
|
+
"misc.or": "eller",
|
|
3061
|
+
"forms.label.recover-account": "Gjenopprett kontoen",
|
|
3062
|
+
"forms.label.forgot-password": "Glemt passord?",
|
|
3063
|
+
"settings.totp.title": "Autentiseringsapp",
|
|
3064
|
+
"settings.totp.description": "Legg til en TOTP-autentiseringsapp til kontoen din for \xE5 forbedre sikkerheten. Popul\xE6re autentiseringsapper er LastPass og Google Authenticator",
|
|
3065
|
+
"settings.totp.info.not-linked": "For \xE5 aktivere, skann QR-koden med autentiseringsappen og skriv inn koden.",
|
|
3066
|
+
"settings.totp.info.linked": "Du har for \xF8yeblikket en autentiseringsapp tilkoblet.",
|
|
3067
|
+
"settings.lookup_secret.title": "Backup gjenopprettingskoder (andre faktor)",
|
|
3068
|
+
"settings.lookup_secret.description": "Gjenopprettingskoder er en sikker backup for 2FA, slik at du kan f\xE5 tilgang til kontoen din hvis du mister 2FA-enheten.",
|
|
3069
|
+
"settings.oidc.title": "Tilkoblede kontoer",
|
|
3070
|
+
"settings.oidc.description": "Koble en sosial innloggingsleverand\xF8r til kontoen din.",
|
|
3071
|
+
"settings.oidc.info": "Tilkoblede kontoer fra disse leverand\xF8rene kan brukes til \xE5 logge inn p\xE5 kontoen din",
|
|
3072
|
+
"settings.webauthn.info": "Maskinvaretokener brukes for tofaktorautentisering eller som f\xF8rste faktor med passkeys",
|
|
3073
|
+
"settings.passkey.title": "Administrer passkeys",
|
|
3074
|
+
"settings.passkey.description": "Administrer innstillingene for passkeys",
|
|
3075
|
+
"settings.passkey.info": "Administrer innstillingene for passkeys",
|
|
3076
|
+
"card.footer.select-another-method": "Velg en annen metode",
|
|
3077
|
+
"account-linking.title": "Koble konto",
|
|
3078
|
+
"property.password": "passord",
|
|
3079
|
+
"property.email": "e-post",
|
|
3080
|
+
"property.phone": "telefon",
|
|
3081
|
+
"property.username": "brukernavn",
|
|
3082
|
+
"property.identifier": "identifikator",
|
|
3083
|
+
"property.code": "kode",
|
|
3084
|
+
"consent.title": "Autoriser {party}",
|
|
3085
|
+
"consent.subtitle": "En tredjepartsapplikasjon \xF8nsker \xE5 f\xE5 tilgang til informasjon tilknyttet kontoen din {identifier}.",
|
|
3086
|
+
"consent.scope.openid.title": "Identitet",
|
|
3087
|
+
"consent.scope.openid.description": "Lar applikasjonen verifisere identiteten din. Dette er n\xF8dvendig for autentisering og en trygg innloggingsopplevelse.",
|
|
3088
|
+
"consent.scope.offline_access.title": "Frakoblet tilgang",
|
|
3089
|
+
"consent.scope.offline_access.description": "Lar denne applikasjonen holde deg innlogget selv n\xE5r du ikke bruker den aktivt.",
|
|
3090
|
+
"consent.scope.profile.title": "Profilinformasjon",
|
|
3091
|
+
"consent.scope.profile.description": "Gir tilgang til grunnleggende profildetaljer, inkludert brukernavn, fornavn og etternavn.",
|
|
3092
|
+
"consent.scope.email.title": "E-postadresse",
|
|
3093
|
+
"consent.scope.email.description": "Hent e-postadressen din og dens verifiseringsstatus.",
|
|
3094
|
+
"consent.scope.address.title": "Postadresse",
|
|
3095
|
+
"consent.scope.address.description": "F\xE5 tilgang til postadressen din.",
|
|
3096
|
+
"consent.scope.phone.title": "Telefonnummer",
|
|
3097
|
+
"consent.scope.phone.description": "Hent telefonnummeret ditt og dets verifiseringsstatus.",
|
|
3098
|
+
"error.title.what-happened": "Hva skjedde?",
|
|
3099
|
+
"error.title.what-can-i-do": "Hva kan jeg gj\xF8re?",
|
|
3100
|
+
"error.instructions": "Vennligst pr\xF8v igjen om noen minutter eller kontakt nettstedets operat\xF8r.",
|
|
3101
|
+
"error.footer.text": "N\xE5r du rapporterer denne feilen, vennligst inkluder f\xF8lgende informasjon:",
|
|
3102
|
+
"error.footer.copy": "Kopier",
|
|
3103
|
+
"error.action.go-back": "G\xE5 tilbake",
|
|
3104
|
+
"settings.messages.toast-title.error": "Kunne ikke oppdatere innstillinger",
|
|
3105
|
+
"settings.messages.toast-title.success": "Innstillinger oppdatert",
|
|
3106
|
+
"two-step.passkey.description.error": "Kunne ikke laste de n\xF8dvendige bibliotekene for \xE5 bruke passordet ditt. \nVennligst pr\xF8v igjen senere."
|
|
3107
|
+
};
|
|
3108
|
+
|
|
2766
3109
|
// src/locales/index.ts
|
|
2767
3110
|
var OryLocales = {
|
|
2768
3111
|
en: en_default,
|
|
@@ -2772,7 +3115,8 @@ var OryLocales = {
|
|
|
2772
3115
|
nl: nl_default,
|
|
2773
3116
|
pl: pl_default,
|
|
2774
3117
|
pt: pt_default,
|
|
2775
|
-
sv: sv_default
|
|
3118
|
+
sv: sv_default,
|
|
3119
|
+
no: no_default
|
|
2776
3120
|
};
|
|
2777
3121
|
|
|
2778
3122
|
// src/context/intl-context.tsx
|
|
@@ -2788,7 +3132,11 @@ var IntlProvider = ({
|
|
|
2788
3132
|
locale,
|
|
2789
3133
|
customTranslations
|
|
2790
3134
|
}) => {
|
|
3135
|
+
const existingIntlContext = (0, import_react8.useContext)(import_react_intl8.IntlContext);
|
|
2791
3136
|
const messages = mergeTranslations(customTranslations != null ? customTranslations : {});
|
|
3137
|
+
if (existingIntlContext) {
|
|
3138
|
+
return children;
|
|
3139
|
+
}
|
|
2792
3140
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2793
3141
|
import_react_intl8.IntlProvider,
|
|
2794
3142
|
{
|
|
@@ -2819,12 +3167,15 @@ var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
|
2819
3167
|
// src/components/card/content.tsx
|
|
2820
3168
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
2821
3169
|
|
|
3170
|
+
// src/components/card/card-two-step.tsx
|
|
3171
|
+
var import_client_fetch26 = require("@ory/client-fetch");
|
|
3172
|
+
|
|
2822
3173
|
// src/components/card/two-step/state-method-active.tsx
|
|
2823
|
-
var
|
|
3174
|
+
var import_client_fetch24 = require("@ory/client-fetch");
|
|
2824
3175
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2825
3176
|
|
|
2826
3177
|
// src/components/card/two-step/state-provide-identifier.tsx
|
|
2827
|
-
var
|
|
3178
|
+
var import_client_fetch25 = require("@ory/client-fetch");
|
|
2828
3179
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2829
3180
|
|
|
2830
3181
|
// src/components/card/card-two-step.tsx
|
|
@@ -2871,11 +3222,11 @@ function findScreenSelectionButton(nodes) {
|
|
|
2871
3222
|
}
|
|
2872
3223
|
|
|
2873
3224
|
// src/theme/default/utils/logout.ts
|
|
2874
|
-
var
|
|
3225
|
+
var import_react9 = require("react");
|
|
2875
3226
|
function useClientLogout(config) {
|
|
2876
|
-
const [logoutFlow, setLogoutFlow] = (0,
|
|
2877
|
-
const [isLoading, setIsLoading] = (0,
|
|
2878
|
-
const fetchLogoutFlow = (0,
|
|
3227
|
+
const [logoutFlow, setLogoutFlow] = (0, import_react9.useState)();
|
|
3228
|
+
const [isLoading, setIsLoading] = (0, import_react9.useState)(true);
|
|
3229
|
+
const fetchLogoutFlow = (0, import_react9.useCallback)(async () => {
|
|
2879
3230
|
try {
|
|
2880
3231
|
const flow = await frontendClient(config.sdk.url).createBrowserLogoutFlow().catch((err) => {
|
|
2881
3232
|
var _a;
|
|
@@ -2889,7 +3240,7 @@ function useClientLogout(config) {
|
|
|
2889
3240
|
setIsLoading(false);
|
|
2890
3241
|
}
|
|
2891
3242
|
}, [config.sdk.url]);
|
|
2892
|
-
(0,
|
|
3243
|
+
(0, import_react9.useEffect)(() => {
|
|
2893
3244
|
void fetchLogoutFlow();
|
|
2894
3245
|
}, [fetchLogoutFlow]);
|
|
2895
3246
|
return { logoutFlow, didLoad: !isLoading };
|
|
@@ -2933,7 +3284,7 @@ function DefaultCardFooter() {
|
|
|
2933
3284
|
const oryFlow = (0, import_elements_react3.useOryFlow)();
|
|
2934
3285
|
switch (oryFlow.flowType) {
|
|
2935
3286
|
case import_client_fetch29.FlowType.Login:
|
|
2936
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, {});
|
|
3287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(LoginCardFooter, { flow: oryFlow.flow });
|
|
2937
3288
|
case import_client_fetch29.FlowType.Registration:
|
|
2938
3289
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(RegistrationCardFooter, {});
|
|
2939
3290
|
case import_client_fetch29.FlowType.Recovery:
|
|
@@ -2963,13 +3314,10 @@ function shouldShowLogoutButton(flow, formState, authMethods) {
|
|
|
2963
3314
|
}
|
|
2964
3315
|
return false;
|
|
2965
3316
|
}
|
|
2966
|
-
function LoginCardFooter() {
|
|
2967
|
-
const {
|
|
3317
|
+
function LoginCardFooter({ flow }) {
|
|
3318
|
+
const { dispatchFormState, formState } = (0, import_elements_react3.useOryFlow)();
|
|
2968
3319
|
const config = (0, import_elements_react3.useOryConfiguration)();
|
|
2969
3320
|
const intl = (0, import_react_intl10.useIntl)();
|
|
2970
|
-
if (flowType !== import_client_fetch29.FlowType.Login) {
|
|
2971
|
-
return null;
|
|
2972
|
-
}
|
|
2973
3321
|
const authMethods = nodesToAuthMethodGroups(flow.ui.nodes);
|
|
2974
3322
|
let returnTo = config.project.default_redirect_url;
|
|
2975
3323
|
if (flow.return_to) {
|
|
@@ -2978,7 +3326,7 @@ function LoginCardFooter() {
|
|
|
2978
3326
|
if (!returnTo) {
|
|
2979
3327
|
returnTo = restartFlowUrl(
|
|
2980
3328
|
flow,
|
|
2981
|
-
`${config.sdk.url}/self-service/${
|
|
3329
|
+
`${config.sdk.url}/self-service/${import_client_fetch29.FlowType.Login}/browser`
|
|
2982
3330
|
);
|
|
2983
3331
|
}
|
|
2984
3332
|
if (shouldShowLogoutButton(flow, formState, authMethods)) {
|
|
@@ -3059,7 +3407,7 @@ function LogoutButton({ returnTo }) {
|
|
|
3059
3407
|
}
|
|
3060
3408
|
function RegistrationCardFooter() {
|
|
3061
3409
|
const intl = (0, import_react_intl10.useIntl)();
|
|
3062
|
-
const { flow, formState } = (0, import_elements_react3.useOryFlow)();
|
|
3410
|
+
const { flow, formState, dispatchFormState } = (0, import_elements_react3.useOryFlow)();
|
|
3063
3411
|
const config = (0, import_elements_react3.useOryConfiguration)();
|
|
3064
3412
|
const visibleGroups = useNodeGroupsWithVisibleNodes(flow.ui.nodes);
|
|
3065
3413
|
const authMethodBlocks = toAuthMethodPickerOptions(visibleGroups);
|
|
@@ -3069,12 +3417,17 @@ function RegistrationCardFooter() {
|
|
|
3069
3417
|
if (!screenSelectionNode || Object.entries(authMethodBlocks).length < 2) {
|
|
3070
3418
|
return null;
|
|
3071
3419
|
}
|
|
3072
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3073
|
-
"
|
|
3420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-normal leading-normal antialiased text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3421
|
+
"button",
|
|
3074
3422
|
{
|
|
3075
|
-
className: "
|
|
3076
|
-
|
|
3423
|
+
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
3424
|
+
onClick: () => {
|
|
3425
|
+
dispatchFormState({
|
|
3426
|
+
type: "action_clear_active_method"
|
|
3427
|
+
});
|
|
3428
|
+
},
|
|
3077
3429
|
"data-testid": "ory/screen/registration/action/selectMethod",
|
|
3430
|
+
type: "button",
|
|
3078
3431
|
children: intl.formatMessage({
|
|
3079
3432
|
id: "card.footer.select-another-method",
|
|
3080
3433
|
defaultMessage: "Select another method"
|
|
@@ -3146,13 +3499,11 @@ function ConsentCardFooter({ flow }) {
|
|
|
3146
3499
|
attributes.value
|
|
3147
3500
|
);
|
|
3148
3501
|
}) }),
|
|
3149
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
" "
|
|
3153
|
-
] }),
|
|
3502
|
+
/* @__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: [
|
|
3503
|
+
"Authorizing will redirect to",
|
|
3504
|
+
" ",
|
|
3154
3505
|
(_b = flow.consent_request.client) == null ? void 0 : _b.client_name
|
|
3155
|
-
] })
|
|
3506
|
+
] }) })
|
|
3156
3507
|
] });
|
|
3157
3508
|
}
|
|
3158
3509
|
|
|
@@ -3173,7 +3524,7 @@ function joinWithCommaOr(list, orText = "or") {
|
|
|
3173
3524
|
}
|
|
3174
3525
|
}
|
|
3175
3526
|
function useCardHeaderText(container, opts) {
|
|
3176
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3527
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
3177
3528
|
const nodes = container.nodes;
|
|
3178
3529
|
const intl = (0, import_react_intl11.useIntl)();
|
|
3179
3530
|
switch (opts.flowType) {
|
|
@@ -3311,6 +3662,23 @@ function useCardHeaderText(container, opts) {
|
|
|
3311
3662
|
);
|
|
3312
3663
|
}
|
|
3313
3664
|
}
|
|
3665
|
+
if (nodes.some((node) => node.group === "profile")) {
|
|
3666
|
+
const identifier = nodes.find(
|
|
3667
|
+
(node) => (0, import_client_fetch30.isUiNodeInputAttributes)(node.attributes) && node.attributes.name.startsWith("traits.") && node.attributes.type !== "hidden"
|
|
3668
|
+
);
|
|
3669
|
+
if (identifier) {
|
|
3670
|
+
parts.push(
|
|
3671
|
+
intl.formatMessage(
|
|
3672
|
+
{
|
|
3673
|
+
id: "card.header.parts.identifier-first"
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
identifierLabel: (_c = identifier.meta.label) == null ? void 0 : _c.text
|
|
3677
|
+
}
|
|
3678
|
+
)
|
|
3679
|
+
);
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3314
3682
|
switch (opts.flowType) {
|
|
3315
3683
|
case import_client_fetch30.FlowType.Login:
|
|
3316
3684
|
if (opts.flow.refresh) {
|
|
@@ -3333,7 +3701,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3333
3701
|
id: "login.title-aal2"
|
|
3334
3702
|
}),
|
|
3335
3703
|
description: intl.formatMessage({
|
|
3336
|
-
id: ((
|
|
3704
|
+
id: ((_d = opts.formState) == null ? void 0 : _d.current) === "method_active" ? `login.${opts.formState.method}.subtitle` : "login.subtitle-aal2"
|
|
3337
3705
|
})
|
|
3338
3706
|
};
|
|
3339
3707
|
}
|
|
@@ -3377,7 +3745,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3377
3745
|
id: "consent.title"
|
|
3378
3746
|
},
|
|
3379
3747
|
{
|
|
3380
|
-
party: (
|
|
3748
|
+
party: (_e = opts.flow.consent_request.client) == null ? void 0 : _e.client_name
|
|
3381
3749
|
}
|
|
3382
3750
|
),
|
|
3383
3751
|
description: intl.formatMessage(
|
|
@@ -3385,7 +3753,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3385
3753
|
id: "consent.subtitle"
|
|
3386
3754
|
},
|
|
3387
3755
|
{
|
|
3388
|
-
identifier: (
|
|
3756
|
+
identifier: (_g = (_f = opts.flow.session.identity) == null ? void 0 : _f.traits.email) != null ? _g : ""
|
|
3389
3757
|
}
|
|
3390
3758
|
)
|
|
3391
3759
|
};
|
|
@@ -3399,7 +3767,7 @@ function useCardHeaderText(container, opts) {
|
|
|
3399
3767
|
// src/theme/default/components/card/current-identifier-button.tsx
|
|
3400
3768
|
var import_client_fetch31 = require("@ory/client-fetch");
|
|
3401
3769
|
var import_elements_react4 = require("@ory/elements-react");
|
|
3402
|
-
var
|
|
3770
|
+
var import_react10 = require("react");
|
|
3403
3771
|
var import_react_hook_form13 = require("react-hook-form");
|
|
3404
3772
|
|
|
3405
3773
|
// src/theme/default/utils/attributes.ts
|
|
@@ -3442,11 +3810,11 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3442
3810
|
var _a;
|
|
3443
3811
|
const { flow, flowType, formState } = (0, import_elements_react4.useOryFlow)();
|
|
3444
3812
|
const { setValue, getValues, watch } = (0, import_react_hook_form13.useFormContext)();
|
|
3445
|
-
const [turnstileResponse, setTurnstileResponse] = (0,
|
|
3813
|
+
const [turnstileResponse, setTurnstileResponse] = (0, import_react10.useState)();
|
|
3446
3814
|
const config = (0, import_elements_react4.useOryConfiguration)();
|
|
3447
3815
|
const ui = flow.ui;
|
|
3448
3816
|
const captchaVerificationValue = (_a = watch("transient_payload")) == null ? void 0 : _a.captcha_turnstile_response;
|
|
3449
|
-
(0,
|
|
3817
|
+
(0, import_react10.useEffect)(() => {
|
|
3450
3818
|
if (captchaVerificationValue) {
|
|
3451
3819
|
setTurnstileResponse(captchaVerificationValue);
|
|
3452
3820
|
}
|
|
@@ -3454,7 +3822,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3454
3822
|
if (formState.current === "provide_identifier") {
|
|
3455
3823
|
return null;
|
|
3456
3824
|
}
|
|
3457
|
-
if (flowType === import_client_fetch31.FlowType.Login && flow.requested_aal === "aal2") {
|
|
3825
|
+
if (flowType === import_client_fetch31.FlowType.Login && (flow.requested_aal === "aal2" || flow.refresh)) {
|
|
3458
3826
|
return null;
|
|
3459
3827
|
}
|
|
3460
3828
|
const nodeBackButton = getBackButtonNodeAttributes(flowType, ui.nodes);
|
|
@@ -3470,7 +3838,7 @@ function DefaultCurrentIdentifierButton() {
|
|
|
3470
3838
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("form", { action: flow.ui.action, method: flow.ui.method, children: [
|
|
3471
3839
|
flow.ui.nodes.filter((n) => {
|
|
3472
3840
|
if ((0, import_client_fetch31.isUiNodeInputAttributes)(n.attributes)) {
|
|
3473
|
-
return n.attributes.type === "hidden";
|
|
3841
|
+
return n.attributes.type === "hidden" && ["default", "captcha"].includes(n.group);
|
|
3474
3842
|
}
|
|
3475
3843
|
return false;
|
|
3476
3844
|
}).map((n) => {
|
|
@@ -3622,8 +3990,7 @@ function DefaultCardLogo() {
|
|
|
3622
3990
|
"img",
|
|
3623
3991
|
{
|
|
3624
3992
|
src: config.project.logo_light_url,
|
|
3625
|
-
|
|
3626
|
-
height: 36,
|
|
3993
|
+
className: "h-full max-h-9 self-start",
|
|
3627
3994
|
alt: "Logo"
|
|
3628
3995
|
}
|
|
3629
3996
|
);
|
|
@@ -3631,18 +3998,12 @@ function DefaultCardLogo() {
|
|
|
3631
3998
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.project.name });
|
|
3632
3999
|
}
|
|
3633
4000
|
|
|
3634
|
-
// src/theme/default/components/card/layout.tsx
|
|
3635
|
-
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3636
|
-
function DefaultCardLayout({ children }) {
|
|
3637
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("main", { className: "p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen", children });
|
|
3638
|
-
}
|
|
3639
|
-
|
|
3640
4001
|
// src/theme/default/components/card/index.tsx
|
|
3641
|
-
var
|
|
4002
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3642
4003
|
function DefaultCard({ children }) {
|
|
3643
|
-
return /* @__PURE__ */ (0,
|
|
4004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-1 sm:items-center justify-center font-sans items-start w-full sm:w-[480px] sm:max-w-[480px]", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative grid grid-cols-1 gap-8 sm:rounded-cards sm:border border-form-border-default bg-form-background-default px-8 py-12 sm:px-12 sm:py-14 border-b w-full", children: [
|
|
3644
4005
|
children,
|
|
3645
|
-
/* @__PURE__ */ (0,
|
|
4006
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, {})
|
|
3646
4007
|
] }) });
|
|
3647
4008
|
}
|
|
3648
4009
|
|
|
@@ -3658,54 +4019,54 @@ var import_react_intl13 = require("react-intl");
|
|
|
3658
4019
|
var import_elements_react8 = require("@ory/elements-react");
|
|
3659
4020
|
var import_client_fetch33 = require("@ory/client-fetch");
|
|
3660
4021
|
|
|
3661
|
-
// src/theme/default/components/form/
|
|
4022
|
+
// src/theme/default/components/form/sso.tsx
|
|
3662
4023
|
var import_elements_react7 = require("@ory/elements-react");
|
|
3663
|
-
var
|
|
4024
|
+
var import_react11 = require("react");
|
|
3664
4025
|
var import_react_hook_form14 = require("react-hook-form");
|
|
3665
4026
|
var import_react_intl12 = require("react-intl");
|
|
3666
4027
|
var import_usehooks_ts = require("usehooks-ts");
|
|
3667
4028
|
|
|
3668
4029
|
// src/theme/default/provider-logos/apple.svg
|
|
3669
4030
|
var React4 = __toESM(require("react"));
|
|
3670
|
-
var
|
|
4031
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3671
4032
|
var SvgApple = (props) => {
|
|
3672
4033
|
var _a, _b;
|
|
3673
|
-
return /* @__PURE__ */ (0,
|
|
4034
|
+
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" }) });
|
|
3674
4035
|
};
|
|
3675
4036
|
var apple_default = SvgApple;
|
|
3676
4037
|
|
|
3677
4038
|
// src/theme/default/provider-logos/auth0.svg
|
|
3678
4039
|
var React5 = __toESM(require("react"));
|
|
3679
|
-
var
|
|
4040
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3680
4041
|
var SvgAuth0 = (props) => {
|
|
3681
4042
|
var _a, _b;
|
|
3682
|
-
return /* @__PURE__ */ (0,
|
|
4043
|
+
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" }) });
|
|
3683
4044
|
};
|
|
3684
4045
|
var auth0_default = SvgAuth0;
|
|
3685
4046
|
|
|
3686
4047
|
// src/theme/default/provider-logos/discord.svg
|
|
3687
4048
|
var React6 = __toESM(require("react"));
|
|
3688
|
-
var
|
|
4049
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3689
4050
|
var SvgDiscord = (props) => {
|
|
3690
4051
|
var _a, _b;
|
|
3691
|
-
return /* @__PURE__ */ (0,
|
|
3692
|
-
/* @__PURE__ */ (0,
|
|
3693
|
-
/* @__PURE__ */ (0,
|
|
4052
|
+
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: [
|
|
4053
|
+
/* @__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" }),
|
|
4054
|
+
/* @__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" })
|
|
3694
4055
|
] });
|
|
3695
4056
|
};
|
|
3696
4057
|
var discord_default = SvgDiscord;
|
|
3697
4058
|
|
|
3698
4059
|
// src/theme/default/provider-logos/facebook.svg
|
|
3699
4060
|
var React7 = __toESM(require("react"));
|
|
3700
|
-
var
|
|
4061
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3701
4062
|
var SvgFacebook = (props) => {
|
|
3702
4063
|
var _a, _b;
|
|
3703
|
-
return /* @__PURE__ */ (0,
|
|
3704
|
-
/* @__PURE__ */ (0,
|
|
3705
|
-
/* @__PURE__ */ (0,
|
|
3706
|
-
/* @__PURE__ */ (0,
|
|
3707
|
-
/* @__PURE__ */ (0,
|
|
3708
|
-
/* @__PURE__ */ (0,
|
|
4064
|
+
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: [
|
|
4065
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "url(#facebook_svg__a)" }),
|
|
4066
|
+
/* @__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" }),
|
|
4067
|
+
/* @__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: [
|
|
4068
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { stopColor: "#18ACFE" }),
|
|
4069
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("stop", { offset: 1, stopColor: "#0163E0" })
|
|
3709
4070
|
] }) })
|
|
3710
4071
|
] });
|
|
3711
4072
|
};
|
|
@@ -3713,111 +4074,111 @@ var facebook_default = SvgFacebook;
|
|
|
3713
4074
|
|
|
3714
4075
|
// src/theme/default/provider-logos/github.svg
|
|
3715
4076
|
var React8 = __toESM(require("react"));
|
|
3716
|
-
var
|
|
4077
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3717
4078
|
var SvgGithub = (props) => {
|
|
3718
4079
|
var _a, _b;
|
|
3719
|
-
return /* @__PURE__ */ (0,
|
|
4080
|
+
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" }) });
|
|
3720
4081
|
};
|
|
3721
4082
|
var github_default = SvgGithub;
|
|
3722
4083
|
|
|
3723
4084
|
// src/theme/default/provider-logos/gitlab.svg
|
|
3724
4085
|
var React9 = __toESM(require("react"));
|
|
3725
|
-
var
|
|
4086
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3726
4087
|
var SvgGitlab = (props) => {
|
|
3727
4088
|
var _a, _b;
|
|
3728
|
-
return /* @__PURE__ */ (0,
|
|
3729
|
-
/* @__PURE__ */ (0,
|
|
3730
|
-
/* @__PURE__ */ (0,
|
|
3731
|
-
/* @__PURE__ */ (0,
|
|
3732
|
-
/* @__PURE__ */ (0,
|
|
4089
|
+
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: [
|
|
4090
|
+
/* @__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" }),
|
|
4091
|
+
/* @__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" }),
|
|
4092
|
+
/* @__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" }),
|
|
4093
|
+
/* @__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" })
|
|
3733
4094
|
] });
|
|
3734
4095
|
};
|
|
3735
4096
|
var gitlab_default = SvgGitlab;
|
|
3736
4097
|
|
|
3737
4098
|
// src/theme/default/provider-logos/google.svg
|
|
3738
4099
|
var React10 = __toESM(require("react"));
|
|
3739
|
-
var
|
|
4100
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3740
4101
|
var SvgGoogle = (props) => {
|
|
3741
4102
|
var _a, _b;
|
|
3742
|
-
return /* @__PURE__ */ (0,
|
|
3743
|
-
/* @__PURE__ */ (0,
|
|
3744
|
-
/* @__PURE__ */ (0,
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3746
|
-
/* @__PURE__ */ (0,
|
|
4103
|
+
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: [
|
|
4104
|
+
/* @__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" }),
|
|
4105
|
+
/* @__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" }),
|
|
4106
|
+
/* @__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" }),
|
|
4107
|
+
/* @__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" })
|
|
3747
4108
|
] });
|
|
3748
4109
|
};
|
|
3749
4110
|
var google_default = SvgGoogle;
|
|
3750
4111
|
|
|
3751
4112
|
// src/theme/default/provider-logos/linkedin.svg
|
|
3752
4113
|
var React11 = __toESM(require("react"));
|
|
3753
|
-
var
|
|
4114
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3754
4115
|
var SvgLinkedin = (props) => {
|
|
3755
4116
|
var _a, _b;
|
|
3756
|
-
return /* @__PURE__ */ (0,
|
|
3757
|
-
/* @__PURE__ */ (0,
|
|
3758
|
-
/* @__PURE__ */ (0,
|
|
4117
|
+
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: [
|
|
4118
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("rect", { width: 28, height: 28, x: 2, y: 2, fill: "#1275B1", rx: 14 }),
|
|
4119
|
+
/* @__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" })
|
|
3759
4120
|
] });
|
|
3760
4121
|
};
|
|
3761
4122
|
var linkedin_default = SvgLinkedin;
|
|
3762
4123
|
|
|
3763
4124
|
// src/theme/default/provider-logos/microsoft.svg
|
|
3764
4125
|
var React12 = __toESM(require("react"));
|
|
3765
|
-
var
|
|
4126
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3766
4127
|
var SvgMicrosoft = (props) => {
|
|
3767
4128
|
var _a, _b;
|
|
3768
|
-
return /* @__PURE__ */ (0,
|
|
3769
|
-
/* @__PURE__ */ (0,
|
|
3770
|
-
/* @__PURE__ */ (0,
|
|
3771
|
-
/* @__PURE__ */ (0,
|
|
3772
|
-
/* @__PURE__ */ (0,
|
|
4129
|
+
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: [
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#F35325", d: "M1 1h10v10H1z" }),
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#81BC06", d: "M12 1h10v10H12z" }),
|
|
4132
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#05A6F0", d: "M1 12h10v10H1z" }),
|
|
4133
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { fill: "#FFBA08", d: "M12 12h10v10H12z" })
|
|
3773
4134
|
] });
|
|
3774
4135
|
};
|
|
3775
4136
|
var microsoft_default = SvgMicrosoft;
|
|
3776
4137
|
|
|
3777
4138
|
// src/theme/default/provider-logos/slack.svg
|
|
3778
4139
|
var React13 = __toESM(require("react"));
|
|
3779
|
-
var
|
|
4140
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3780
4141
|
var SvgSlack = (props) => {
|
|
3781
4142
|
var _a, _b;
|
|
3782
|
-
return /* @__PURE__ */ (0,
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3784
|
-
/* @__PURE__ */ (0,
|
|
3785
|
-
/* @__PURE__ */ (0,
|
|
3786
|
-
/* @__PURE__ */ (0,
|
|
4143
|
+
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: [
|
|
4144
|
+
/* @__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" }),
|
|
4145
|
+
/* @__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" }),
|
|
4146
|
+
/* @__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" }),
|
|
4147
|
+
/* @__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" })
|
|
3787
4148
|
] });
|
|
3788
4149
|
};
|
|
3789
4150
|
var slack_default = SvgSlack;
|
|
3790
4151
|
|
|
3791
4152
|
// src/theme/default/provider-logos/spotify.svg
|
|
3792
4153
|
var React14 = __toESM(require("react"));
|
|
3793
|
-
var
|
|
4154
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3794
4155
|
var SvgSpotify = (props) => {
|
|
3795
4156
|
var _a, _b;
|
|
3796
|
-
return /* @__PURE__ */ (0,
|
|
3797
|
-
/* @__PURE__ */ (0,
|
|
3798
|
-
/* @__PURE__ */ (0,
|
|
4157
|
+
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: [
|
|
4158
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#1ED760" }),
|
|
4159
|
+
/* @__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" })
|
|
3799
4160
|
] });
|
|
3800
4161
|
};
|
|
3801
4162
|
var spotify_default = SvgSpotify;
|
|
3802
4163
|
|
|
3803
4164
|
// src/theme/default/provider-logos/yandex.svg
|
|
3804
4165
|
var React15 = __toESM(require("react"));
|
|
3805
|
-
var
|
|
4166
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3806
4167
|
var SvgYandex = (props) => {
|
|
3807
4168
|
var _a, _b;
|
|
3808
|
-
return /* @__PURE__ */ (0,
|
|
3809
|
-
/* @__PURE__ */ (0,
|
|
3810
|
-
/* @__PURE__ */ (0,
|
|
4169
|
+
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: [
|
|
4170
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("circle", { cx: 16, cy: 16, r: 14, fill: "#fff" }),
|
|
4171
|
+
/* @__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" })
|
|
3811
4172
|
] });
|
|
3812
4173
|
};
|
|
3813
4174
|
var yandex_default = SvgYandex;
|
|
3814
4175
|
|
|
3815
4176
|
// src/theme/default/provider-logos/x.svg
|
|
3816
4177
|
var React16 = __toESM(require("react"));
|
|
3817
|
-
var
|
|
4178
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3818
4179
|
var SvgX = (props) => {
|
|
3819
4180
|
var _a, _b;
|
|
3820
|
-
return /* @__PURE__ */ (0,
|
|
4181
|
+
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" }) });
|
|
3821
4182
|
};
|
|
3822
4183
|
var x_default = SvgX;
|
|
3823
4184
|
|
|
@@ -3840,9 +4201,9 @@ var logos = {
|
|
|
3840
4201
|
var provider_logos_default = logos;
|
|
3841
4202
|
|
|
3842
4203
|
// src/theme/default/components/form/spinner.tsx
|
|
3843
|
-
var
|
|
4204
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3844
4205
|
function Spinner({ className }) {
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
4206
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3846
4207
|
"svg",
|
|
3847
4208
|
{
|
|
3848
4209
|
"aria-hidden": "true",
|
|
@@ -3855,7 +4216,7 @@ function Spinner({ className }) {
|
|
|
3855
4216
|
fill: "none",
|
|
3856
4217
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3857
4218
|
children: [
|
|
3858
|
-
/* @__PURE__ */ (0,
|
|
4219
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("g", { clipPath: "url(#clip0_2572_1748)", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3859
4220
|
"path",
|
|
3860
4221
|
{
|
|
3861
4222
|
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",
|
|
@@ -3864,7 +4225,7 @@ function Spinner({ className }) {
|
|
|
3864
4225
|
strokeLinejoin: "round"
|
|
3865
4226
|
}
|
|
3866
4227
|
) }),
|
|
3867
|
-
/* @__PURE__ */ (0,
|
|
4228
|
+
/* @__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)(
|
|
3868
4229
|
"rect",
|
|
3869
4230
|
{
|
|
3870
4231
|
width: "24",
|
|
@@ -3878,9 +4239,9 @@ function Spinner({ className }) {
|
|
|
3878
4239
|
);
|
|
3879
4240
|
}
|
|
3880
4241
|
|
|
3881
|
-
// src/theme/default/components/form/
|
|
4242
|
+
// src/theme/default/components/form/sso.tsx
|
|
3882
4243
|
var import_client_fetch32 = require("@ory/client-fetch");
|
|
3883
|
-
var
|
|
4244
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3884
4245
|
function extractProvider(context) {
|
|
3885
4246
|
if (context && typeof context === "object" && "provider" in context && typeof context.provider === "string") {
|
|
3886
4247
|
return context.provider;
|
|
@@ -3905,23 +4266,23 @@ function DefaultButtonSocial({
|
|
|
3905
4266
|
const {
|
|
3906
4267
|
formState: { isSubmitting }
|
|
3907
4268
|
} = (0, import_react_hook_form14.useFormContext)();
|
|
3908
|
-
const
|
|
4269
|
+
const ssoNodeCount = (_a = ui.nodes.filter(
|
|
3909
4270
|
(node2) => node2.group === import_client_fetch32.UiNodeGroupEnum.Oidc || node2.group === import_client_fetch32.UiNodeGroupEnum.Saml
|
|
3910
4271
|
).length) != null ? _a : 0;
|
|
3911
4272
|
const Logo = logos2[attributes.value.split("-")[0]];
|
|
3912
|
-
const showLabel = _showLabel != null ? _showLabel :
|
|
4273
|
+
const showLabel = _showLabel != null ? _showLabel : ssoNodeCount % 3 !== 0 && ssoNodeCount % 4 !== 0;
|
|
3913
4274
|
const provider = (_c = extractProvider((_b = node.meta.label) == null ? void 0 : _b.context)) != null ? _c : "";
|
|
3914
4275
|
const localOnClick = () => {
|
|
3915
4276
|
onClick == null ? void 0 : onClick();
|
|
3916
4277
|
setClicked(true);
|
|
3917
4278
|
};
|
|
3918
|
-
(0,
|
|
4279
|
+
(0, import_react11.useEffect)(() => {
|
|
3919
4280
|
if (!isSubmitting) {
|
|
3920
4281
|
setClicked(false);
|
|
3921
4282
|
}
|
|
3922
4283
|
}, [isSubmitting, setClicked]);
|
|
3923
4284
|
const label = node.meta.label ? (0, import_elements_react7.uiTextToFormattedMessage)(node.meta.label, intl) : "";
|
|
3924
|
-
return /* @__PURE__ */ (0,
|
|
4285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
3925
4286
|
"button",
|
|
3926
4287
|
{
|
|
3927
4288
|
className: "gap-3 border border-button-social-border-default bg-button-social-background-default hover:bg-button-social-background-hover transition-colors rounded-buttons flex items-center justify-center px-4 py-[13px] loading:bg-button-social-background-disabled loading:border-button-social-border-disabled loading:text-button-social-foreground-disabled hover:text-button-social-foreground-hover",
|
|
@@ -3935,21 +4296,21 @@ function DefaultButtonSocial({
|
|
|
3935
4296
|
"aria-label": label,
|
|
3936
4297
|
...omitInputAttributes(rest),
|
|
3937
4298
|
children: [
|
|
3938
|
-
/* @__PURE__ */ (0,
|
|
3939
|
-
showLabel && node.meta.label ? /* @__PURE__ */ (0,
|
|
3940
|
-
/* @__PURE__ */ (0,
|
|
3941
|
-
/* @__PURE__ */ (0,
|
|
4299
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 relative", 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" }) }),
|
|
4300
|
+
showLabel && node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
4301
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "grow text-center font-medium leading-none text-button-social-foreground-default", children: label }),
|
|
4302
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "size-5 block" })
|
|
3942
4303
|
] }) : null
|
|
3943
4304
|
]
|
|
3944
4305
|
}
|
|
3945
4306
|
);
|
|
3946
4307
|
}
|
|
3947
|
-
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0,
|
|
4308
|
+
DefaultButtonSocial.WithLogos = (logos2) => (props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(DefaultButtonSocial, { ...props, logos: logos2 });
|
|
3948
4309
|
function DefaultSocialButtonContainer({
|
|
3949
4310
|
children,
|
|
3950
4311
|
nodes
|
|
3951
4312
|
}) {
|
|
3952
|
-
return /* @__PURE__ */ (0,
|
|
4313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3953
4314
|
"div",
|
|
3954
4315
|
{
|
|
3955
4316
|
className: cn("grid gap-3", {
|
|
@@ -3963,22 +4324,20 @@ function DefaultSocialButtonContainer({
|
|
|
3963
4324
|
);
|
|
3964
4325
|
}
|
|
3965
4326
|
function GenericLogo({ label }) {
|
|
3966
|
-
return /* @__PURE__ */ (0,
|
|
4327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "flex rounded-buttons bg-button-social-background-generic-provider text-button-social-foreground-generic-provider border-button-social-border-generic-provider text-xs size-full items-center justify-center", children: label });
|
|
3967
4328
|
}
|
|
3968
4329
|
|
|
3969
4330
|
// src/theme/default/components/form/index.tsx
|
|
3970
|
-
var
|
|
4331
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3971
4332
|
function DefaultFormContainer({
|
|
3972
4333
|
children,
|
|
3973
4334
|
onSubmit,
|
|
3974
4335
|
action,
|
|
3975
|
-
method
|
|
3976
|
-
"data-testid": dataTestId
|
|
4336
|
+
method
|
|
3977
4337
|
}) {
|
|
3978
|
-
return /* @__PURE__ */ (0,
|
|
4338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3979
4339
|
"form",
|
|
3980
4340
|
{
|
|
3981
|
-
"data-testid": dataTestId,
|
|
3982
4341
|
onSubmit,
|
|
3983
4342
|
noValidate: true,
|
|
3984
4343
|
action,
|
|
@@ -3993,7 +4352,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
3993
4352
|
if (!children || Array.isArray(children) && children.length === 0) {
|
|
3994
4353
|
return null;
|
|
3995
4354
|
}
|
|
3996
|
-
return /* @__PURE__ */ (0,
|
|
4355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3997
4356
|
"section",
|
|
3998
4357
|
{
|
|
3999
4358
|
className: cn(
|
|
@@ -4005,7 +4364,7 @@ function DefaultMessageContainer({ children }) {
|
|
|
4005
4364
|
}
|
|
4006
4365
|
function DefaultMessage({ message }) {
|
|
4007
4366
|
const intl = (0, import_react_intl13.useIntl)();
|
|
4008
|
-
return /* @__PURE__ */ (0,
|
|
4367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4009
4368
|
"span",
|
|
4010
4369
|
{
|
|
4011
4370
|
className: cn(
|
|
@@ -4021,46 +4380,58 @@ function DefaultMessage({ message }) {
|
|
|
4021
4380
|
}
|
|
4022
4381
|
|
|
4023
4382
|
// src/theme/default/components/card/auth-method-list-item.tsx
|
|
4383
|
+
var import_elements_react9 = require("@ory/elements-react");
|
|
4384
|
+
var import_react12 = require("react");
|
|
4024
4385
|
var import_react_intl14 = require("react-intl");
|
|
4386
|
+
var import_usehooks_ts2 = require("usehooks-ts");
|
|
4025
4387
|
|
|
4026
|
-
// src/theme/default/assets/icons/
|
|
4388
|
+
// src/theme/default/assets/icons/alert-triangle.svg
|
|
4027
4389
|
var React17 = __toESM(require("react"));
|
|
4390
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4391
|
+
var SvgAlertTriangle = (props) => {
|
|
4392
|
+
var _a, _b;
|
|
4393
|
+
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" }) });
|
|
4394
|
+
};
|
|
4395
|
+
var alert_triangle_default = SvgAlertTriangle;
|
|
4396
|
+
|
|
4397
|
+
// src/theme/default/assets/icons/code-asterix.svg
|
|
4398
|
+
var React18 = __toESM(require("react"));
|
|
4028
4399
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4400
|
+
var SvgCodeAsterix = (props) => {
|
|
4401
|
+
var _a, _b;
|
|
4402
|
+
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" }) });
|
|
4403
|
+
};
|
|
4404
|
+
var code_asterix_default = SvgCodeAsterix;
|
|
4405
|
+
|
|
4406
|
+
// src/theme/default/assets/icons/code.svg
|
|
4407
|
+
var React19 = __toESM(require("react"));
|
|
4408
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4029
4409
|
var SvgCode = (props) => {
|
|
4030
4410
|
var _a, _b;
|
|
4031
|
-
return /* @__PURE__ */ (0,
|
|
4411
|
+
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" }) });
|
|
4032
4412
|
};
|
|
4033
4413
|
var code_default = SvgCode;
|
|
4034
4414
|
|
|
4035
4415
|
// src/theme/default/assets/icons/passkey.svg
|
|
4036
|
-
var
|
|
4037
|
-
var
|
|
4416
|
+
var React20 = __toESM(require("react"));
|
|
4417
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4038
4418
|
var SvgPasskey = (props) => {
|
|
4039
4419
|
var _a, _b;
|
|
4040
|
-
return /* @__PURE__ */ (0,
|
|
4420
|
+
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" }) });
|
|
4041
4421
|
};
|
|
4042
4422
|
var passkey_default = SvgPasskey;
|
|
4043
4423
|
|
|
4044
4424
|
// src/theme/default/assets/icons/password.svg
|
|
4045
|
-
var
|
|
4046
|
-
var
|
|
4425
|
+
var React21 = __toESM(require("react"));
|
|
4426
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4047
4427
|
var SvgPassword = (props) => {
|
|
4048
4428
|
var _a, _b;
|
|
4049
|
-
return /* @__PURE__ */ (0,
|
|
4429
|
+
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" }) });
|
|
4050
4430
|
};
|
|
4051
4431
|
var password_default = SvgPassword;
|
|
4052
4432
|
|
|
4053
|
-
// src/theme/default/assets/icons/webauthn.svg
|
|
4054
|
-
var React20 = __toESM(require("react"));
|
|
4055
|
-
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4056
|
-
var SvgWebauthn = (props) => {
|
|
4057
|
-
var _a, _b;
|
|
4058
|
-
return /* @__PURE__ */ (0, import_jsx_runtime61.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_runtime61.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" }) });
|
|
4059
|
-
};
|
|
4060
|
-
var webauthn_default = SvgWebauthn;
|
|
4061
|
-
|
|
4062
4433
|
// src/theme/default/assets/icons/totp.svg
|
|
4063
|
-
var
|
|
4434
|
+
var React22 = __toESM(require("react"));
|
|
4064
4435
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4065
4436
|
var SvgTotp = (props) => {
|
|
4066
4437
|
var _a, _b;
|
|
@@ -4068,14 +4439,14 @@ var SvgTotp = (props) => {
|
|
|
4068
4439
|
};
|
|
4069
4440
|
var totp_default = SvgTotp;
|
|
4070
4441
|
|
|
4071
|
-
// src/theme/default/assets/icons/
|
|
4072
|
-
var
|
|
4442
|
+
// src/theme/default/assets/icons/webauthn.svg
|
|
4443
|
+
var React23 = __toESM(require("react"));
|
|
4073
4444
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4074
|
-
var
|
|
4445
|
+
var SvgWebauthn = (props) => {
|
|
4075
4446
|
var _a, _b;
|
|
4076
|
-
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0
|
|
4447
|
+
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" }) });
|
|
4077
4448
|
};
|
|
4078
|
-
var
|
|
4449
|
+
var webauthn_default = SvgWebauthn;
|
|
4079
4450
|
|
|
4080
4451
|
// src/theme/default/components/card/list-item.tsx
|
|
4081
4452
|
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
@@ -4095,6 +4466,7 @@ function ListItem({
|
|
|
4095
4466
|
...props,
|
|
4096
4467
|
className: cn(
|
|
4097
4468
|
"flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
|
|
4469
|
+
"disabled:hover:bg-ui-transparent disabled:cursor-default disabled:opacity-50",
|
|
4098
4470
|
className
|
|
4099
4471
|
),
|
|
4100
4472
|
children: [
|
|
@@ -4110,6 +4482,7 @@ function ListItem({
|
|
|
4110
4482
|
}
|
|
4111
4483
|
|
|
4112
4484
|
// src/theme/default/components/card/auth-method-list-item.tsx
|
|
4485
|
+
var import_react_hook_form15 = require("react-hook-form");
|
|
4113
4486
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4114
4487
|
var iconsMap = {
|
|
4115
4488
|
code: code_default,
|
|
@@ -4129,6 +4502,16 @@ function DefaultAuthMethodListItem({
|
|
|
4129
4502
|
var _a;
|
|
4130
4503
|
const intl = (0, import_react_intl14.useIntl)();
|
|
4131
4504
|
const Icon = iconsMap[group] || null;
|
|
4505
|
+
const { flow } = (0, import_elements_react9.useOryFlow)();
|
|
4506
|
+
const { formState } = (0, import_react_hook_form15.useFormContext)();
|
|
4507
|
+
if (group === "passkey") {
|
|
4508
|
+
const passkeyNode = findPasskeyNode(flow);
|
|
4509
|
+
if (!passkeyNode) {
|
|
4510
|
+
console.error("Passkey node not found");
|
|
4511
|
+
return null;
|
|
4512
|
+
}
|
|
4513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(PasskeyListItem, { passkeyNode, group, title });
|
|
4514
|
+
}
|
|
4132
4515
|
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4133
4516
|
ListItem,
|
|
4134
4517
|
{
|
|
@@ -4143,6 +4526,93 @@ function DefaultAuthMethodListItem({
|
|
|
4143
4526
|
}),
|
|
4144
4527
|
onClick,
|
|
4145
4528
|
type: isGroupImmediateSubmit(group) ? "submit" : "button",
|
|
4529
|
+
"data-testid": `ory/form/auth-picker/${group}`,
|
|
4530
|
+
disabled: !formState.isReady
|
|
4531
|
+
}
|
|
4532
|
+
);
|
|
4533
|
+
}
|
|
4534
|
+
function findPasskeyNode(flow) {
|
|
4535
|
+
const passkeyTriggerNode = flow.ui.nodes.find(
|
|
4536
|
+
(node) => node.attributes.node_type === "input" && ["passkey_login_trigger", "passkey_register_trigger"].includes(
|
|
4537
|
+
node.attributes.name
|
|
4538
|
+
)
|
|
4539
|
+
);
|
|
4540
|
+
if (!passkeyTriggerNode) {
|
|
4541
|
+
return void 0;
|
|
4542
|
+
}
|
|
4543
|
+
return passkeyTriggerNode;
|
|
4544
|
+
}
|
|
4545
|
+
function PasskeyListItem({ group, title, passkeyNode }) {
|
|
4546
|
+
var _a, _b;
|
|
4547
|
+
const intl = (0, import_react_intl14.useIntl)();
|
|
4548
|
+
const Icon = iconsMap[group] || null;
|
|
4549
|
+
const { formState } = (0, import_react_hook_form15.useFormContext)();
|
|
4550
|
+
const [isPasskeyScriptInitalized, setPasskeyScriptInitalized] = (0, import_react12.useState)(false);
|
|
4551
|
+
const [failedToLoad, setFailedToLoad] = (0, import_react12.useState)(false);
|
|
4552
|
+
const clickHandler = () => {
|
|
4553
|
+
if (!passkeyNode.attributes.onclickTrigger) {
|
|
4554
|
+
console.error("Passkey node not found");
|
|
4555
|
+
return;
|
|
4556
|
+
}
|
|
4557
|
+
const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
|
|
4558
|
+
if (fn) {
|
|
4559
|
+
fn();
|
|
4560
|
+
} else {
|
|
4561
|
+
console.error("Passkey node trigger function not found");
|
|
4562
|
+
}
|
|
4563
|
+
};
|
|
4564
|
+
(0, import_react12.useEffect)(() => {
|
|
4565
|
+
if (!passkeyNode.attributes.onclickTrigger) {
|
|
4566
|
+
console.error("Passkey node not found");
|
|
4567
|
+
return;
|
|
4568
|
+
}
|
|
4569
|
+
const fn = triggerToFunction(passkeyNode.attributes.onclickTrigger);
|
|
4570
|
+
setPasskeyScriptInitalized(typeof fn === "function");
|
|
4571
|
+
}, [passkeyNode]);
|
|
4572
|
+
(0, import_usehooks_ts2.useEventListener)("oryWebAuthnInitialized", () => {
|
|
4573
|
+
setPasskeyScriptInitalized(true);
|
|
4574
|
+
});
|
|
4575
|
+
(0, import_usehooks_ts2.useTimeout)(() => {
|
|
4576
|
+
if (!isPasskeyScriptInitalized) {
|
|
4577
|
+
setFailedToLoad(true);
|
|
4578
|
+
}
|
|
4579
|
+
}, 5e3);
|
|
4580
|
+
if (failedToLoad) {
|
|
4581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4582
|
+
ListItem,
|
|
4583
|
+
{
|
|
4584
|
+
as: "button",
|
|
4585
|
+
icon: Icon,
|
|
4586
|
+
disabled: true,
|
|
4587
|
+
title: intl.formatMessage(
|
|
4588
|
+
{ id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
|
|
4589
|
+
title == null ? void 0 : title.values
|
|
4590
|
+
),
|
|
4591
|
+
description: intl.formatMessage({
|
|
4592
|
+
id: "two-step.passkey.description.error"
|
|
4593
|
+
}),
|
|
4594
|
+
type: "button",
|
|
4595
|
+
"data-testid": `ory/form/auth-picker/${group}`,
|
|
4596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(alert_triangle_default, {})
|
|
4597
|
+
}
|
|
4598
|
+
);
|
|
4599
|
+
}
|
|
4600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4601
|
+
ListItem,
|
|
4602
|
+
{
|
|
4603
|
+
as: "button",
|
|
4604
|
+
icon: Icon,
|
|
4605
|
+
disabled: !isPasskeyScriptInitalized || !formState.isReady,
|
|
4606
|
+
name: passkeyNode.attributes.name,
|
|
4607
|
+
title: intl.formatMessage(
|
|
4608
|
+
{ id: (_b = title == null ? void 0 : title.id) != null ? _b : `two-step.${group}.title` },
|
|
4609
|
+
title == null ? void 0 : title.values
|
|
4610
|
+
),
|
|
4611
|
+
description: intl.formatMessage({
|
|
4612
|
+
id: `two-step.${group}.description`
|
|
4613
|
+
}),
|
|
4614
|
+
onClick: clickHandler,
|
|
4615
|
+
type: "button",
|
|
4146
4616
|
"data-testid": `ory/form/auth-picker/${group}`
|
|
4147
4617
|
}
|
|
4148
4618
|
);
|
|
@@ -4150,11 +4620,11 @@ function DefaultAuthMethodListItem({
|
|
|
4150
4620
|
|
|
4151
4621
|
// src/theme/default/components/form/button.tsx
|
|
4152
4622
|
var import_client_fetch34 = require("@ory/client-fetch");
|
|
4153
|
-
var
|
|
4623
|
+
var import_elements_react10 = require("@ory/elements-react");
|
|
4154
4624
|
var import_class_variance_authority = require("class-variance-authority");
|
|
4155
|
-
var
|
|
4625
|
+
var import_react_hook_form16 = require("react-hook-form");
|
|
4156
4626
|
var import_react_intl15 = require("react-intl");
|
|
4157
|
-
var
|
|
4627
|
+
var import_react13 = require("react");
|
|
4158
4628
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4159
4629
|
var buttonStyles = (0, import_class_variance_authority.cva)(
|
|
4160
4630
|
[
|
|
@@ -4195,14 +4665,14 @@ var DefaultButton = ({
|
|
|
4195
4665
|
}) => {
|
|
4196
4666
|
var _a;
|
|
4197
4667
|
const { type, name, value, ...rest } = attributes;
|
|
4198
|
-
const [clicked, setClicked] = (0,
|
|
4668
|
+
const [clicked, setClicked] = (0, import_react13.useState)(false);
|
|
4199
4669
|
const intl = (0, import_react_intl15.useIntl)();
|
|
4200
4670
|
const label = (0, import_client_fetch34.getNodeLabel)(node);
|
|
4201
4671
|
const {
|
|
4202
|
-
formState: { isSubmitting },
|
|
4672
|
+
formState: { isSubmitting, isReady },
|
|
4203
4673
|
setValue
|
|
4204
|
-
} = (0,
|
|
4205
|
-
(0,
|
|
4674
|
+
} = (0, import_react_hook_form16.useFormContext)();
|
|
4675
|
+
(0, import_react13.useEffect)(() => {
|
|
4206
4676
|
if (!isSubmitting) {
|
|
4207
4677
|
setClicked(false);
|
|
4208
4678
|
}
|
|
@@ -4225,11 +4695,11 @@ var DefaultButton = ({
|
|
|
4225
4695
|
className: buttonStyles({
|
|
4226
4696
|
intent: isPrimary ? "primary" : "secondary"
|
|
4227
4697
|
}),
|
|
4228
|
-
disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
|
|
4698
|
+
disabled: !isReady && ((_a = rest.disabled) != null ? _a : isSubmitting),
|
|
4229
4699
|
"data-loading": clicked,
|
|
4230
4700
|
children: [
|
|
4231
4701
|
clicked ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, {}) : null,
|
|
4232
|
-
label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0,
|
|
4702
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl) }) : ""
|
|
4233
4703
|
]
|
|
4234
4704
|
}
|
|
4235
4705
|
);
|
|
@@ -4238,8 +4708,8 @@ DefaultButton.displayName = "DefaultButton";
|
|
|
4238
4708
|
|
|
4239
4709
|
// src/theme/default/components/form/checkbox.tsx
|
|
4240
4710
|
var import_client_fetch35 = require("@ory/client-fetch");
|
|
4241
|
-
var
|
|
4242
|
-
var
|
|
4711
|
+
var import_elements_react11 = require("@ory/elements-react");
|
|
4712
|
+
var import_react_hook_form17 = require("react-hook-form");
|
|
4243
4713
|
var import_react_intl17 = require("react-intl");
|
|
4244
4714
|
|
|
4245
4715
|
// src/theme/default/components/ui/checkbox-label.tsx
|
|
@@ -4318,7 +4788,7 @@ var DefaultCheckbox = ({
|
|
|
4318
4788
|
const { value, name, ...attributes } = initialAttributes;
|
|
4319
4789
|
const intl = (0, import_react_intl17.useIntl)();
|
|
4320
4790
|
const label = (0, import_client_fetch35.getNodeLabel)(node);
|
|
4321
|
-
const { register } = (0,
|
|
4791
|
+
const { register } = (0, import_react_hook_form17.useFormContext)();
|
|
4322
4792
|
const hasError = node.messages.some((m) => m.type === "error");
|
|
4323
4793
|
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
|
|
4324
4794
|
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "flex h-5 items-center", children: [
|
|
@@ -4347,8 +4817,8 @@ var DefaultCheckbox = ({
|
|
|
4347
4817
|
"mt-1",
|
|
4348
4818
|
message.type === "error" ? "text-interface-foreground-validation-danger" : "text-interface-foreground-default-secondary"
|
|
4349
4819
|
),
|
|
4350
|
-
...(0,
|
|
4351
|
-
children: (0,
|
|
4820
|
+
...(0, import_elements_react11.messageTestId)(message),
|
|
4821
|
+
children: (0, import_elements_react11.uiTextToFormattedMessage)(message, intl)
|
|
4352
4822
|
},
|
|
4353
4823
|
message.id
|
|
4354
4824
|
))
|
|
@@ -4357,14 +4827,14 @@ var DefaultCheckbox = ({
|
|
|
4357
4827
|
};
|
|
4358
4828
|
|
|
4359
4829
|
// src/theme/default/components/form/group-container.tsx
|
|
4360
|
-
var
|
|
4830
|
+
var import_elements_react12 = require("@ory/elements-react");
|
|
4361
4831
|
var import_client_fetch36 = require("@ory/client-fetch");
|
|
4362
4832
|
|
|
4363
4833
|
// src/util/childCounter.ts
|
|
4364
|
-
var
|
|
4834
|
+
var import_react14 = require("react");
|
|
4365
4835
|
function countRenderableChildren(children) {
|
|
4366
|
-
return
|
|
4367
|
-
if ((0,
|
|
4836
|
+
return import_react14.Children.toArray(children).filter((c) => {
|
|
4837
|
+
if ((0, import_react14.isValidElement)(c)) {
|
|
4368
4838
|
return true;
|
|
4369
4839
|
}
|
|
4370
4840
|
return false;
|
|
@@ -4374,7 +4844,7 @@ function countRenderableChildren(children) {
|
|
|
4374
4844
|
// src/theme/default/components/form/group-container.tsx
|
|
4375
4845
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4376
4846
|
function DefaultGroupContainer({ children }) {
|
|
4377
|
-
const { flowType } = (0,
|
|
4847
|
+
const { flowType } = (0, import_elements_react12.useOryFlow)();
|
|
4378
4848
|
const count = countRenderableChildren(children);
|
|
4379
4849
|
if (count === 0) {
|
|
4380
4850
|
return null;
|
|
@@ -4412,13 +4882,13 @@ function DefaultImage({ attributes, node }) {
|
|
|
4412
4882
|
|
|
4413
4883
|
// src/theme/default/components/form/input.tsx
|
|
4414
4884
|
var import_client_fetch37 = require("@ory/client-fetch");
|
|
4415
|
-
var
|
|
4416
|
-
var
|
|
4417
|
-
var
|
|
4885
|
+
var import_elements_react13 = require("@ory/elements-react");
|
|
4886
|
+
var import_react15 = require("react");
|
|
4887
|
+
var import_react_hook_form18 = require("react-hook-form");
|
|
4418
4888
|
var import_react_intl18 = require("react-intl");
|
|
4419
4889
|
|
|
4420
4890
|
// src/theme/default/assets/icons/eye-off.svg
|
|
4421
|
-
var
|
|
4891
|
+
var React24 = __toESM(require("react"));
|
|
4422
4892
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4423
4893
|
var SvgEyeOff = (props) => {
|
|
4424
4894
|
var _a, _b;
|
|
@@ -4427,7 +4897,7 @@ var SvgEyeOff = (props) => {
|
|
|
4427
4897
|
var eye_off_default = SvgEyeOff;
|
|
4428
4898
|
|
|
4429
4899
|
// src/theme/default/assets/icons/eye.svg
|
|
4430
|
-
var
|
|
4900
|
+
var React25 = __toESM(require("react"));
|
|
4431
4901
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4432
4902
|
var SvgEye = (props) => {
|
|
4433
4903
|
var _a, _b;
|
|
@@ -4454,18 +4924,18 @@ var DefaultInput = ({
|
|
|
4454
4924
|
onClick
|
|
4455
4925
|
}) => {
|
|
4456
4926
|
const label = (0, import_client_fetch37.getNodeLabel)(node);
|
|
4457
|
-
const { register } = (0,
|
|
4927
|
+
const { register } = (0, import_react_hook_form18.useFormContext)();
|
|
4458
4928
|
const { value, autocomplete, name, maxlength, ...rest } = attributes;
|
|
4459
4929
|
const intl = (0, import_react_intl18.useIntl)();
|
|
4460
|
-
const { flowType } = (0,
|
|
4461
|
-
const inputRef = (0,
|
|
4930
|
+
const { flowType } = (0, import_elements_react13.useOryFlow)();
|
|
4931
|
+
const inputRef = (0, import_react15.useRef)(null);
|
|
4462
4932
|
const formattedLabel = label ? intl.formatMessage(
|
|
4463
4933
|
{
|
|
4464
4934
|
id: "input.placeholder",
|
|
4465
4935
|
defaultMessage: "Enter your {placeholder}"
|
|
4466
4936
|
},
|
|
4467
4937
|
{
|
|
4468
|
-
placeholder: (0,
|
|
4938
|
+
placeholder: (0, import_elements_react13.uiTextToFormattedMessage)(label, intl)
|
|
4469
4939
|
}
|
|
4470
4940
|
) : "";
|
|
4471
4941
|
if (rest.type === "hidden") {
|
|
@@ -4473,10 +4943,6 @@ var DefaultInput = ({
|
|
|
4473
4943
|
"input",
|
|
4474
4944
|
{
|
|
4475
4945
|
...omitInputAttributes(rest),
|
|
4476
|
-
onClick,
|
|
4477
|
-
maxLength: maxlength,
|
|
4478
|
-
autoComplete: autocomplete,
|
|
4479
|
-
placeholder: formattedLabel,
|
|
4480
4946
|
"data-testid": `ory/form/node/input/${name}`,
|
|
4481
4947
|
...register(name, { value })
|
|
4482
4948
|
}
|
|
@@ -4517,7 +4983,7 @@ var DefaultInput = ({
|
|
|
4517
4983
|
function PasswordToggle({
|
|
4518
4984
|
inputRef
|
|
4519
4985
|
}) {
|
|
4520
|
-
const [shown, setShown] = (0,
|
|
4986
|
+
const [shown, setShown] = (0, import_react15.useState)(false);
|
|
4521
4987
|
const handleClick = () => {
|
|
4522
4988
|
setShown(!shown);
|
|
4523
4989
|
if (inputRef.current) {
|
|
@@ -4528,7 +4994,7 @@ function PasswordToggle({
|
|
|
4528
4994
|
"button",
|
|
4529
4995
|
{
|
|
4530
4996
|
onClick: handleClick,
|
|
4531
|
-
className: "absolute right-0 h-full w-12 flex items-center justify-center",
|
|
4997
|
+
className: "absolute right-0 h-full w-12 flex items-center justify-center text-input-foreground-primary",
|
|
4532
4998
|
type: "button",
|
|
4533
4999
|
"aria-label": "Toggle password visibility",
|
|
4534
5000
|
children: shown ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(eye_default, {})
|
|
@@ -4538,9 +5004,10 @@ function PasswordToggle({
|
|
|
4538
5004
|
|
|
4539
5005
|
// src/theme/default/components/form/label.tsx
|
|
4540
5006
|
var import_client_fetch38 = require("@ory/client-fetch");
|
|
4541
|
-
var
|
|
4542
|
-
var
|
|
5007
|
+
var import_elements_react14 = require("@ory/elements-react");
|
|
5008
|
+
var import_react_hook_form19 = require("react-hook-form");
|
|
4543
5009
|
var import_react_intl19 = require("react-intl");
|
|
5010
|
+
var import_react16 = require("react");
|
|
4544
5011
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4545
5012
|
function findResendNode(nodes) {
|
|
4546
5013
|
return nodes.find(
|
|
@@ -4555,11 +5022,9 @@ function DefaultLabel({
|
|
|
4555
5022
|
}) {
|
|
4556
5023
|
const intl = (0, import_react_intl19.useIntl)();
|
|
4557
5024
|
const label = (0, import_client_fetch38.getNodeLabel)(node);
|
|
4558
|
-
const { Message } = (0,
|
|
4559
|
-
const {
|
|
4560
|
-
const
|
|
4561
|
-
const { setValue, formState } = (0, import_react_hook_form18.useFormContext)();
|
|
4562
|
-
const isPassword = attributes.type === "password";
|
|
5025
|
+
const { Message } = (0, import_elements_react14.useComponents)();
|
|
5026
|
+
const { flow } = (0, import_elements_react14.useOryFlow)();
|
|
5027
|
+
const { setValue, formState } = (0, import_react_hook_form19.useFormContext)();
|
|
4563
5028
|
const resendNode = findResendNode(flow.ui.nodes);
|
|
4564
5029
|
const handleResend = () => {
|
|
4565
5030
|
if ((resendNode == null ? void 0 : resendNode.attributes) && "name" in resendNode.attributes) {
|
|
@@ -4572,26 +5037,15 @@ function DefaultLabel({
|
|
|
4572
5037
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4573
5038
|
"label",
|
|
4574
5039
|
{
|
|
4575
|
-
...(0,
|
|
5040
|
+
...(0, import_elements_react14.messageTestId)(label),
|
|
4576
5041
|
className: "leading-normal text-input-foreground-primary",
|
|
4577
5042
|
htmlFor: attributes.name,
|
|
4578
5043
|
"data-testid": `ory/form/node/input/label/${attributes.name}`,
|
|
4579
5044
|
...rest,
|
|
4580
|
-
children: (0,
|
|
4581
|
-
}
|
|
4582
|
-
),
|
|
4583
|
-
isPassword && config.project.recovery_enabled && flowType === import_client_fetch38.FlowType.Login && // TODO: make it possible to override with a custom component
|
|
4584
|
-
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4585
|
-
"a",
|
|
4586
|
-
{
|
|
4587
|
-
href: initFlowUrl(config.sdk.url, "recovery", flow),
|
|
4588
|
-
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
4589
|
-
children: intl.formatMessage({
|
|
4590
|
-
id: "forms.label.forgot-password",
|
|
4591
|
-
defaultMessage: "Forgot password?"
|
|
4592
|
-
})
|
|
5045
|
+
children: (0, import_elements_react14.uiTextToFormattedMessage)(label, intl)
|
|
4593
5046
|
}
|
|
4594
5047
|
),
|
|
5048
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(LabelAction, { attributes }),
|
|
4595
5049
|
(resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4596
5050
|
"button",
|
|
4597
5051
|
{
|
|
@@ -4609,14 +5063,58 @@ function DefaultLabel({
|
|
|
4609
5063
|
fieldError && (0, import_client_fetch38.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Message.Content, { message: fieldError })
|
|
4610
5064
|
] });
|
|
4611
5065
|
}
|
|
5066
|
+
function LabelAction({ attributes }) {
|
|
5067
|
+
const intl = (0, import_react_intl19.useIntl)();
|
|
5068
|
+
const { flowType, flow, formState } = (0, import_elements_react14.useOryFlow)();
|
|
5069
|
+
const config = (0, import_elements_react14.useOryConfiguration)();
|
|
5070
|
+
const action = (0, import_react16.useMemo)(() => {
|
|
5071
|
+
if (flowType === import_client_fetch38.FlowType.Login && config.project.recovery_enabled) {
|
|
5072
|
+
if (formState.current === "provide_identifier" && !flow.refresh) {
|
|
5073
|
+
if (attributes.name === "identifier") {
|
|
5074
|
+
return {
|
|
5075
|
+
message: intl.formatMessage({
|
|
5076
|
+
id: "forms.label.recover-account",
|
|
5077
|
+
defaultMessage: "Recover Account"
|
|
5078
|
+
}),
|
|
5079
|
+
href: initFlowUrl(config.sdk.url, "recovery", flow)
|
|
5080
|
+
};
|
|
5081
|
+
}
|
|
5082
|
+
} else if (attributes.type === "password") {
|
|
5083
|
+
return {
|
|
5084
|
+
message: intl.formatMessage({
|
|
5085
|
+
id: "forms.label.forgot-password",
|
|
5086
|
+
defaultMessage: "Forgot password?"
|
|
5087
|
+
}),
|
|
5088
|
+
href: initFlowUrl(config.sdk.url, "recovery", flow)
|
|
5089
|
+
};
|
|
5090
|
+
}
|
|
5091
|
+
}
|
|
5092
|
+
}, [
|
|
5093
|
+
attributes,
|
|
5094
|
+
config.project.recovery_enabled,
|
|
5095
|
+
flow,
|
|
5096
|
+
flowType,
|
|
5097
|
+
intl,
|
|
5098
|
+
config.sdk.url,
|
|
5099
|
+
formState
|
|
5100
|
+
]);
|
|
5101
|
+
return action ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
5102
|
+
"a",
|
|
5103
|
+
{
|
|
5104
|
+
href: action.href,
|
|
5105
|
+
className: "text-button-link-brand-brand transition-colors hover:text-button-link-brand-brand-hover underline",
|
|
5106
|
+
children: action.message
|
|
5107
|
+
}
|
|
5108
|
+
) : null;
|
|
5109
|
+
}
|
|
4612
5110
|
|
|
4613
5111
|
// src/theme/default/components/form/link-button.tsx
|
|
4614
5112
|
var import_client_fetch39 = require("@ory/client-fetch");
|
|
4615
|
-
var
|
|
4616
|
-
var
|
|
5113
|
+
var import_elements_react15 = require("@ory/elements-react");
|
|
5114
|
+
var import_react17 = require("react");
|
|
4617
5115
|
var import_react_intl20 = require("react-intl");
|
|
4618
5116
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4619
|
-
var DefaultLinkButton = (0,
|
|
5117
|
+
var DefaultLinkButton = (0, import_react17.forwardRef)(({ attributes, node }, ref) => {
|
|
4620
5118
|
const intl = (0, import_react_intl20.useIntl)();
|
|
4621
5119
|
const label = (0, import_client_fetch39.getNodeLabel)(node);
|
|
4622
5120
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
@@ -4624,25 +5122,25 @@ var DefaultLinkButton = (0, import_react13.forwardRef)(({ attributes, node }, re
|
|
|
4624
5122
|
{
|
|
4625
5123
|
...omitInputAttributes(attributes),
|
|
4626
5124
|
ref,
|
|
4627
|
-
title: label ? (0,
|
|
5125
|
+
title: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : "",
|
|
4628
5126
|
"data-testid": `ory/form/node/link/${attributes.id}`,
|
|
4629
5127
|
className: cn(
|
|
4630
5128
|
"antialiased rounded cursor-pointer text-center border gap-3 leading-none bg-button-primary-background-default hover:bg-button-primary-background-hover transition-colors text-button-primary-foreground-default hover:text-button-primary-foreground-hover p-4 font-medium"
|
|
4631
5129
|
),
|
|
4632
|
-
children: label ? (0,
|
|
5130
|
+
children: label ? (0, import_elements_react15.uiTextToFormattedMessage)(label, intl) : ""
|
|
4633
5131
|
}
|
|
4634
5132
|
);
|
|
4635
5133
|
});
|
|
4636
5134
|
DefaultLinkButton.displayName = "DefaultLinkButton";
|
|
4637
5135
|
|
|
4638
5136
|
// src/theme/default/components/form/pin-code-input.tsx
|
|
4639
|
-
var
|
|
5137
|
+
var import_react_hook_form20 = require("react-hook-form");
|
|
4640
5138
|
|
|
4641
5139
|
// src/theme/default/components/form/shadcn/otp-input.tsx
|
|
4642
5140
|
var import_input_otp = require("input-otp");
|
|
4643
|
-
var
|
|
5141
|
+
var React26 = __toESM(require("react"));
|
|
4644
5142
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4645
|
-
var InputOTP =
|
|
5143
|
+
var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4646
5144
|
import_input_otp.OTPInput,
|
|
4647
5145
|
{
|
|
4648
5146
|
ref,
|
|
@@ -4655,17 +5153,17 @@ var InputOTP = React25.forwardRef(({ className, containerClassName, ...props },
|
|
|
4655
5153
|
}
|
|
4656
5154
|
));
|
|
4657
5155
|
InputOTP.displayName = "InputOTP";
|
|
4658
|
-
var InputOTPGroup =
|
|
5156
|
+
var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
4659
5157
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
4660
|
-
var InputOTPSlot =
|
|
4661
|
-
const inputOTPContext =
|
|
5158
|
+
var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
|
|
5159
|
+
const inputOTPContext = React26.useContext(import_input_otp.OTPInputContext);
|
|
4662
5160
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
4663
5161
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
4664
5162
|
"div",
|
|
4665
5163
|
{
|
|
4666
5164
|
ref,
|
|
4667
5165
|
className: cn(
|
|
4668
|
-
"rounded-forms border border-solid bg-input-background-default py-[15px] text-center focus-visible:outline-none w-full",
|
|
5166
|
+
"rounded-forms border border-solid bg-input-background-default text-input-foreground-primary py-[15px] text-center focus-visible:outline-none w-full",
|
|
4669
5167
|
"relative flex items-center justify-center transition-all leading-none",
|
|
4670
5168
|
isActive ? "border-input-border-focus" : "border-input-border-default",
|
|
4671
5169
|
className
|
|
@@ -4681,14 +5179,14 @@ var InputOTPSlot = React25.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
4681
5179
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
4682
5180
|
|
|
4683
5181
|
// src/theme/default/components/form/pin-code-input.tsx
|
|
4684
|
-
var
|
|
5182
|
+
var import_elements_react16 = require("@ory/elements-react");
|
|
4685
5183
|
var import_client_fetch40 = require("@ory/client-fetch");
|
|
4686
5184
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4687
5185
|
var DefaultPinCodeInput = ({ attributes }) => {
|
|
4688
|
-
const { setValue, watch } = (0,
|
|
5186
|
+
const { setValue, watch } = (0, import_react_hook_form20.useFormContext)();
|
|
4689
5187
|
const { maxlength, name } = attributes;
|
|
4690
5188
|
const elements = maxlength != null ? maxlength : 6;
|
|
4691
|
-
const { flowType } = (0,
|
|
5189
|
+
const { flowType } = (0, import_elements_react16.useOryFlow)();
|
|
4692
5190
|
const handleInputChange = (v) => {
|
|
4693
5191
|
setValue(name, v);
|
|
4694
5192
|
};
|
|
@@ -4763,7 +5261,7 @@ var DefaultFormSectionFooter = ({
|
|
|
4763
5261
|
};
|
|
4764
5262
|
|
|
4765
5263
|
// src/theme/default/components/form/text.tsx
|
|
4766
|
-
var
|
|
5264
|
+
var import_elements_react17 = require("@ory/elements-react");
|
|
4767
5265
|
var import_react_intl21 = require("react-intl");
|
|
4768
5266
|
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4769
5267
|
function DefaultText({ node, attributes }) {
|
|
@@ -4772,12 +5270,12 @@ function DefaultText({ node, attributes }) {
|
|
|
4772
5270
|
const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
|
|
4773
5271
|
if (lookup) {
|
|
4774
5272
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
|
|
4775
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0,
|
|
5273
|
+
/* @__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) : "" }),
|
|
4776
5274
|
lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4777
5275
|
"pre",
|
|
4778
5276
|
{
|
|
4779
5277
|
"data-testid": `ory/form/node/text/lookup_secret_codes/text`,
|
|
4780
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0,
|
|
5278
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("code", { children: text ? (0, import_elements_react17.uiTextToFormattedMessage)(text, intl) : "" })
|
|
4781
5279
|
},
|
|
4782
5280
|
index
|
|
4783
5281
|
))
|
|
@@ -4789,22 +5287,22 @@ function DefaultText({ node, attributes }) {
|
|
|
4789
5287
|
"data-testid": `ory/form/node/text/${attributes.id}/label`,
|
|
4790
5288
|
id: attributes.id,
|
|
4791
5289
|
children: [
|
|
4792
|
-
node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0,
|
|
4793
|
-
attributes.text ? (0,
|
|
5290
|
+
node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { children: (0, import_elements_react17.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
|
|
5291
|
+
attributes.text ? (0, import_elements_react17.uiTextToFormattedMessage)(attributes.text, intl) : ""
|
|
4794
5292
|
]
|
|
4795
5293
|
}
|
|
4796
5294
|
) });
|
|
4797
5295
|
}
|
|
4798
5296
|
|
|
4799
5297
|
// src/theme/default/components/generic/page-header.tsx
|
|
4800
|
-
var
|
|
5298
|
+
var import_elements_react19 = require("@ory/elements-react");
|
|
4801
5299
|
|
|
4802
5300
|
// src/theme/default/components/ui/user-menu.tsx
|
|
4803
|
-
var
|
|
5301
|
+
var import_elements_react18 = require("@ory/elements-react");
|
|
4804
5302
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
4805
5303
|
|
|
4806
5304
|
// src/theme/default/assets/icons/logout.svg
|
|
4807
|
-
var
|
|
5305
|
+
var React27 = __toESM(require("react"));
|
|
4808
5306
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4809
5307
|
var SvgLogout = (props) => {
|
|
4810
5308
|
var _a, _b;
|
|
@@ -4813,7 +5311,7 @@ var SvgLogout = (props) => {
|
|
|
4813
5311
|
var logout_default = SvgLogout;
|
|
4814
5312
|
|
|
4815
5313
|
// src/theme/default/assets/icons/settings.svg
|
|
4816
|
-
var
|
|
5314
|
+
var React28 = __toESM(require("react"));
|
|
4817
5315
|
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
4818
5316
|
var SvgSettings = (props) => {
|
|
4819
5317
|
var _a, _b;
|
|
@@ -4864,12 +5362,12 @@ var getUserInitials = (session) => {
|
|
|
4864
5362
|
};
|
|
4865
5363
|
|
|
4866
5364
|
// src/theme/default/components/ui/dropdown-menu.tsx
|
|
4867
|
-
var
|
|
5365
|
+
var import_react18 = require("react");
|
|
4868
5366
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
4869
5367
|
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
4870
5368
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
4871
5369
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
4872
|
-
var DropdownMenuContent = (0,
|
|
5370
|
+
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)(
|
|
4873
5371
|
DropdownMenuPrimitive.Content,
|
|
4874
5372
|
{
|
|
4875
5373
|
ref,
|
|
@@ -4884,7 +5382,7 @@ var DropdownMenuContent = (0, import_react14.forwardRef)(({ className, sideOffse
|
|
|
4884
5382
|
}
|
|
4885
5383
|
) }));
|
|
4886
5384
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
4887
|
-
var DropdownMenuItem = (0,
|
|
5385
|
+
var DropdownMenuItem = (0, import_react18.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
4888
5386
|
DropdownMenuPrimitive.Item,
|
|
4889
5387
|
{
|
|
4890
5388
|
ref,
|
|
@@ -4902,7 +5400,7 @@ var DropdownMenuItem = (0, import_react14.forwardRef)(({ className, inset, ...pr
|
|
|
4902
5400
|
}
|
|
4903
5401
|
));
|
|
4904
5402
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
4905
|
-
var DropdownMenuLabel = (0,
|
|
5403
|
+
var DropdownMenuLabel = (0, import_react18.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
4906
5404
|
DropdownMenuPrimitive.Label,
|
|
4907
5405
|
{
|
|
4908
5406
|
ref,
|
|
@@ -4917,10 +5415,10 @@ var DropdownMenuLabel = (0, import_react14.forwardRef)(({ className, inset, ...p
|
|
|
4917
5415
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
4918
5416
|
|
|
4919
5417
|
// src/theme/default/components/ui/user-avater.tsx
|
|
4920
|
-
var
|
|
5418
|
+
var import_react19 = require("react");
|
|
4921
5419
|
|
|
4922
5420
|
// src/theme/default/assets/icons/user.svg
|
|
4923
|
-
var
|
|
5421
|
+
var React29 = __toESM(require("react"));
|
|
4924
5422
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
4925
5423
|
var SvgUser = (props) => {
|
|
4926
5424
|
var _a, _b;
|
|
@@ -4930,7 +5428,7 @@ var user_default = SvgUser;
|
|
|
4930
5428
|
|
|
4931
5429
|
// src/theme/default/components/ui/user-avater.tsx
|
|
4932
5430
|
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
4933
|
-
var UserAvatar = (0,
|
|
5431
|
+
var UserAvatar = (0, import_react19.forwardRef)(
|
|
4934
5432
|
({ initials, ...rest }, ref) => {
|
|
4935
5433
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
4936
5434
|
"button",
|
|
@@ -4961,7 +5459,7 @@ UserAvatar.displayName = "UserAvatar";
|
|
|
4961
5459
|
// src/theme/default/components/ui/user-menu.tsx
|
|
4962
5460
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
4963
5461
|
var UserMenu = ({ session }) => {
|
|
4964
|
-
const config = (0,
|
|
5462
|
+
const config = (0, import_elements_react18.useOryConfiguration)();
|
|
4965
5463
|
const initials = getUserInitials(session);
|
|
4966
5464
|
const { logoutFlow } = useClientLogout(config);
|
|
4967
5465
|
return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(DropdownMenu, { children: [
|
|
@@ -4992,15 +5490,15 @@ var import_react_intl22 = require("react-intl");
|
|
|
4992
5490
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
4993
5491
|
var DefaultPageHeader = (_props) => {
|
|
4994
5492
|
var _a;
|
|
4995
|
-
const { Card } = (0,
|
|
5493
|
+
const { Card } = (0, import_elements_react19.useComponents)();
|
|
4996
5494
|
const { session } = (0, import_client4.useSession)();
|
|
4997
5495
|
const intl = (0, import_react_intl22.useIntl)();
|
|
4998
|
-
const { flow } = (0,
|
|
4999
|
-
const config = (0,
|
|
5496
|
+
const { flow } = (0, import_elements_react19.useOryFlow)();
|
|
5497
|
+
const config = (0, import_elements_react19.useOryConfiguration)();
|
|
5000
5498
|
const returnUrl = (_a = flow.return_to) != null ? _a : config.project.default_redirect_url;
|
|
5001
5499
|
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "mt-16 flex max-w-screen-sm w-full md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] flex-col gap-3 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-12", children: [
|
|
5002
5500
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2 items-center", children: [
|
|
5003
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}),
|
|
5501
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "h-9", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card.Logo, {}) }),
|
|
5004
5502
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(UserMenu, { session })
|
|
5005
5503
|
] }),
|
|
5006
5504
|
returnUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
@@ -5008,7 +5506,7 @@ var DefaultPageHeader = (_props) => {
|
|
|
5008
5506
|
{
|
|
5009
5507
|
"data-testid": "ory/screen/settings/back-button",
|
|
5010
5508
|
href: returnUrl,
|
|
5011
|
-
className: "inline-flex gap-2 items-center",
|
|
5509
|
+
className: "inline-flex gap-2 items-center text-button-link-default-primary hover:text-button-link-default-primary-hover",
|
|
5012
5510
|
children: [
|
|
5013
5511
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(arrow_left_default, {}),
|
|
5014
5512
|
" ",
|
|
@@ -5023,12 +5521,12 @@ var DefaultPageHeader = (_props) => {
|
|
|
5023
5521
|
};
|
|
5024
5522
|
|
|
5025
5523
|
// src/theme/default/components/settings/settings-oidc.tsx
|
|
5026
|
-
var
|
|
5027
|
-
var
|
|
5028
|
-
var
|
|
5524
|
+
var import_react20 = require("react");
|
|
5525
|
+
var import_react_hook_form21 = require("react-hook-form");
|
|
5526
|
+
var import_usehooks_ts3 = require("usehooks-ts");
|
|
5029
5527
|
|
|
5030
5528
|
// src/theme/default/assets/icons/trash.svg
|
|
5031
|
-
var
|
|
5529
|
+
var React30 = __toESM(require("react"));
|
|
5032
5530
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5033
5531
|
var SvgTrash = (props) => {
|
|
5034
5532
|
var _a, _b;
|
|
@@ -5068,11 +5566,11 @@ function DefaultSettingsOidc({
|
|
|
5068
5566
|
] });
|
|
5069
5567
|
}
|
|
5070
5568
|
function UnlinkRow({ button }) {
|
|
5071
|
-
var _a, _b
|
|
5072
|
-
const [clicked, setClicked] = (0,
|
|
5569
|
+
var _a, _b;
|
|
5570
|
+
const [clicked, setClicked] = (0, import_usehooks_ts3.useDebounceValue)(false, 100);
|
|
5073
5571
|
const {
|
|
5074
5572
|
formState: { isSubmitting }
|
|
5075
|
-
} = (0,
|
|
5573
|
+
} = (0, import_react_hook_form21.useFormContext)();
|
|
5076
5574
|
const attrs = button.attributes;
|
|
5077
5575
|
const provider = (_b = extractProvider((_a = button.meta.label) == null ? void 0 : _a.context)) != null ? _b : "";
|
|
5078
5576
|
const Logo = provider_logos_default[attrs.value.split("-")[0]];
|
|
@@ -5080,12 +5578,11 @@ function UnlinkRow({ button }) {
|
|
|
5080
5578
|
button.onClick();
|
|
5081
5579
|
setClicked(true);
|
|
5082
5580
|
};
|
|
5083
|
-
(0,
|
|
5581
|
+
(0, import_react20.useEffect)(() => {
|
|
5084
5582
|
if (!isSubmitting) {
|
|
5085
5583
|
setClicked(false);
|
|
5086
5584
|
}
|
|
5087
5585
|
}, [isSubmitting, setClicked]);
|
|
5088
|
-
console.log((_c = button.meta.label) == null ? void 0 : _c.context);
|
|
5089
5586
|
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-between", children: [
|
|
5090
5587
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-6", children: [
|
|
5091
5588
|
Logo ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(GenericLogo, { label: provider.slice(0, 1) }),
|
|
@@ -5113,8 +5610,8 @@ function UnlinkRow({ button }) {
|
|
|
5113
5610
|
}
|
|
5114
5611
|
|
|
5115
5612
|
// src/theme/default/components/settings/settings-passkey.tsx
|
|
5116
|
-
var
|
|
5117
|
-
var
|
|
5613
|
+
var import_elements_react20 = require("@ory/elements-react");
|
|
5614
|
+
var import_react_hook_form22 = require("react-hook-form");
|
|
5118
5615
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5119
5616
|
function DefaultSettingsPasskey({
|
|
5120
5617
|
triggerButton,
|
|
@@ -5122,8 +5619,8 @@ function DefaultSettingsPasskey({
|
|
|
5122
5619
|
}) {
|
|
5123
5620
|
const {
|
|
5124
5621
|
formState: { isSubmitting }
|
|
5125
|
-
} = (0,
|
|
5126
|
-
const { Node: Node2 } = (0,
|
|
5622
|
+
} = (0, import_react_hook_form22.useFormContext)();
|
|
5623
|
+
const { Node: Node2 } = (0, import_elements_react20.useComponents)();
|
|
5127
5624
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
5128
5625
|
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
5129
5626
|
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
@@ -5192,7 +5689,7 @@ function DefaultSettingsPasskey({
|
|
|
5192
5689
|
}
|
|
5193
5690
|
|
|
5194
5691
|
// src/theme/default/assets/icons/download.svg
|
|
5195
|
-
var
|
|
5692
|
+
var React31 = __toESM(require("react"));
|
|
5196
5693
|
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
5197
5694
|
var SvgDownload = (props) => {
|
|
5198
5695
|
var _a, _b;
|
|
@@ -5201,7 +5698,7 @@ var SvgDownload = (props) => {
|
|
|
5201
5698
|
var download_default = SvgDownload;
|
|
5202
5699
|
|
|
5203
5700
|
// src/theme/default/assets/icons/refresh.svg
|
|
5204
|
-
var
|
|
5701
|
+
var React32 = __toESM(require("react"));
|
|
5205
5702
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
5206
5703
|
var SvgRefresh = (props) => {
|
|
5207
5704
|
var _a, _b;
|
|
@@ -5210,7 +5707,7 @@ var SvgRefresh = (props) => {
|
|
|
5210
5707
|
var refresh_default = SvgRefresh;
|
|
5211
5708
|
|
|
5212
5709
|
// src/theme/default/components/settings/settings-recovery-codes.tsx
|
|
5213
|
-
var
|
|
5710
|
+
var import_react_hook_form23 = require("react-hook-form");
|
|
5214
5711
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
5215
5712
|
function DefaultSettingsRecoveryCodes({
|
|
5216
5713
|
codes,
|
|
@@ -5221,7 +5718,7 @@ function DefaultSettingsRecoveryCodes({
|
|
|
5221
5718
|
}) {
|
|
5222
5719
|
const {
|
|
5223
5720
|
formState: { isSubmitting }
|
|
5224
|
-
} = (0,
|
|
5721
|
+
} = (0, import_react_hook_form23.useFormContext)();
|
|
5225
5722
|
const onDownload = () => {
|
|
5226
5723
|
const element = document.createElement("a");
|
|
5227
5724
|
const file = new Blob([codes.join("\n")], {
|
|
@@ -5304,10 +5801,10 @@ function DefaultSettingsRecoveryCodes({
|
|
|
5304
5801
|
}
|
|
5305
5802
|
|
|
5306
5803
|
// src/theme/default/components/settings/settings-totp.tsx
|
|
5307
|
-
var
|
|
5804
|
+
var import_elements_react21 = require("@ory/elements-react");
|
|
5308
5805
|
|
|
5309
5806
|
// src/theme/default/assets/icons/qrcode.svg
|
|
5310
|
-
var
|
|
5807
|
+
var React33 = __toESM(require("react"));
|
|
5311
5808
|
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
5312
5809
|
var SvgQrcode = (props) => {
|
|
5313
5810
|
var _a, _b;
|
|
@@ -5316,7 +5813,7 @@ var SvgQrcode = (props) => {
|
|
|
5316
5813
|
var qrcode_default = SvgQrcode;
|
|
5317
5814
|
|
|
5318
5815
|
// src/theme/default/components/settings/settings-totp.tsx
|
|
5319
|
-
var
|
|
5816
|
+
var import_react_hook_form24 = require("react-hook-form");
|
|
5320
5817
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
5321
5818
|
function DefaultSettingsTotp({
|
|
5322
5819
|
totpImage,
|
|
@@ -5325,10 +5822,10 @@ function DefaultSettingsTotp({
|
|
|
5325
5822
|
totpUnlink,
|
|
5326
5823
|
onUnlink
|
|
5327
5824
|
}) {
|
|
5328
|
-
const { Node: Node2, Card } = (0,
|
|
5825
|
+
const { Node: Node2, Card } = (0, import_elements_react21.useComponents)();
|
|
5329
5826
|
const {
|
|
5330
5827
|
formState: { isSubmitting }
|
|
5331
|
-
} = (0,
|
|
5828
|
+
} = (0, import_react_hook_form24.useFormContext)();
|
|
5332
5829
|
if (totpUnlink) {
|
|
5333
5830
|
const {
|
|
5334
5831
|
type,
|
|
@@ -5412,10 +5909,10 @@ function DefaultSettingsTotp({
|
|
|
5412
5909
|
}
|
|
5413
5910
|
|
|
5414
5911
|
// src/theme/default/components/settings/settings-webauthn.tsx
|
|
5415
|
-
var
|
|
5912
|
+
var import_elements_react22 = require("@ory/elements-react");
|
|
5416
5913
|
|
|
5417
5914
|
// src/theme/default/assets/icons/key.svg
|
|
5418
|
-
var
|
|
5915
|
+
var React34 = __toESM(require("react"));
|
|
5419
5916
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
5420
5917
|
var SvgKey = (props) => {
|
|
5421
5918
|
var _a, _b;
|
|
@@ -5424,7 +5921,7 @@ var SvgKey = (props) => {
|
|
|
5424
5921
|
var key_default = SvgKey;
|
|
5425
5922
|
|
|
5426
5923
|
// src/theme/default/components/settings/settings-webauthn.tsx
|
|
5427
|
-
var
|
|
5924
|
+
var import_react_hook_form25 = require("react-hook-form");
|
|
5428
5925
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
5429
5926
|
function DefaultSettingsWebauthn({
|
|
5430
5927
|
nameInput,
|
|
@@ -5433,8 +5930,8 @@ function DefaultSettingsWebauthn({
|
|
|
5433
5930
|
}) {
|
|
5434
5931
|
const {
|
|
5435
5932
|
formState: { isSubmitting }
|
|
5436
|
-
} = (0,
|
|
5437
|
-
const { Node: Node2, Card } = (0,
|
|
5933
|
+
} = (0, import_react_hook_form25.useFormContext)();
|
|
5934
|
+
const { Node: Node2, Card } = (0, import_elements_react22.useComponents)();
|
|
5438
5935
|
const hasRemoveButtons = removeButtons.length > 0;
|
|
5439
5936
|
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-8", children: [
|
|
5440
5937
|
/* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
|
|
@@ -5529,14 +6026,14 @@ function DefaultAuthMethodListContainer({
|
|
|
5529
6026
|
// src/theme/default/components/form/captcha.tsx
|
|
5530
6027
|
var import_client_fetch41 = require("@ory/client-fetch");
|
|
5531
6028
|
var import_react_turnstile = require("@marsidev/react-turnstile");
|
|
5532
|
-
var
|
|
5533
|
-
var
|
|
6029
|
+
var import_react21 = require("react");
|
|
6030
|
+
var import_react_hook_form26 = require("react-hook-form");
|
|
5534
6031
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
5535
6032
|
var DefaultCaptcha = ({ node }) => {
|
|
5536
|
-
const { setValue, formState } = (0,
|
|
5537
|
-
const ref = (0,
|
|
5538
|
-
const prevSubmitCount = (0,
|
|
5539
|
-
(0,
|
|
6033
|
+
const { setValue, formState } = (0, import_react_hook_form26.useFormContext)();
|
|
6034
|
+
const ref = (0, import_react21.useRef)();
|
|
6035
|
+
const prevSubmitCount = (0, import_react21.useRef)(formState.submitCount);
|
|
6036
|
+
(0, import_react21.useEffect)(() => {
|
|
5540
6037
|
if (formState.submitCount > prevSubmitCount.current && formState.isSubmitSuccessful) {
|
|
5541
6038
|
prevSubmitCount.current = formState.submitCount;
|
|
5542
6039
|
setTimeout(() => {
|
|
@@ -5579,25 +6076,25 @@ var DefaultCaptcha = ({ node }) => {
|
|
|
5579
6076
|
};
|
|
5580
6077
|
|
|
5581
6078
|
// src/theme/default/assets/icons/personal.svg
|
|
5582
|
-
var
|
|
6079
|
+
var React35 = __toESM(require("react"));
|
|
5583
6080
|
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
5584
6081
|
var SvgPersonal = (props) => {
|
|
5585
6082
|
var _a, _b;
|
|
5586
|
-
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: "
|
|
6083
|
+
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" }) });
|
|
5587
6084
|
};
|
|
5588
6085
|
var personal_default = SvgPersonal;
|
|
5589
6086
|
|
|
5590
6087
|
// src/theme/default/assets/icons/message.svg
|
|
5591
|
-
var
|
|
6088
|
+
var React36 = __toESM(require("react"));
|
|
5592
6089
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
5593
6090
|
var SvgMessage = (props) => {
|
|
5594
6091
|
var _a, _b;
|
|
5595
|
-
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: "
|
|
6092
|
+
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" }) });
|
|
5596
6093
|
};
|
|
5597
6094
|
var message_default = SvgMessage;
|
|
5598
6095
|
|
|
5599
6096
|
// src/theme/default/assets/icons/phone.svg
|
|
5600
|
-
var
|
|
6097
|
+
var React37 = __toESM(require("react"));
|
|
5601
6098
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
5602
6099
|
var SvgPhone = (props) => {
|
|
5603
6100
|
var _a, _b;
|
|
@@ -5653,9 +6150,47 @@ function DefaultConsentScopeCheckbox({
|
|
|
5653
6150
|
);
|
|
5654
6151
|
}
|
|
5655
6152
|
|
|
6153
|
+
// src/theme/default/components/generic/toast.tsx
|
|
6154
|
+
var import_elements_react23 = require("@ory/elements-react");
|
|
6155
|
+
var import_react_intl24 = require("react-intl");
|
|
6156
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
6157
|
+
function DefaultToast({
|
|
6158
|
+
message,
|
|
6159
|
+
// Id can be used to close the toast later, but we don't use it here
|
|
6160
|
+
id: _
|
|
6161
|
+
}) {
|
|
6162
|
+
const intl = (0, import_react_intl24.useIntl)();
|
|
6163
|
+
const title = message.type === "error" ? intl.formatMessage({ id: "settings.messages.toast-title.error" }) : intl.formatMessage({ id: "settings.messages.toast-title.success" });
|
|
6164
|
+
const messageText = (0, import_elements_react23.uiTextToFormattedMessage)(message, intl);
|
|
6165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
6166
|
+
"div",
|
|
6167
|
+
{
|
|
6168
|
+
className: "rounded-cards bg-interface-background-default-inverted border border-interface-border-default-primary p-5 flex-col",
|
|
6169
|
+
...(0, import_elements_react23.messageTestId)(message),
|
|
6170
|
+
children: [
|
|
6171
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6172
|
+
"p",
|
|
6173
|
+
{
|
|
6174
|
+
className: cn("font-medium", {
|
|
6175
|
+
"text-interface-foreground-validation-success": message.type === "success",
|
|
6176
|
+
"text-interface-foreground-validation-danger": message.type === "error",
|
|
6177
|
+
"text-interface-foreground-validation-warning": (
|
|
6178
|
+
// Currently unused from Kratos, but kept for future use
|
|
6179
|
+
message.type === "warning"
|
|
6180
|
+
)
|
|
6181
|
+
}),
|
|
6182
|
+
children: title
|
|
6183
|
+
}
|
|
6184
|
+
),
|
|
6185
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "text-interface-foreground-default-inverted", children: messageText })
|
|
6186
|
+
]
|
|
6187
|
+
}
|
|
6188
|
+
);
|
|
6189
|
+
}
|
|
6190
|
+
|
|
5656
6191
|
// src/theme/default/components/default-components.tsx
|
|
5657
6192
|
function getOryComponents(overrides) {
|
|
5658
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la;
|
|
6193
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na;
|
|
5659
6194
|
return {
|
|
5660
6195
|
Card: {
|
|
5661
6196
|
Root: (_b = (_a = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _a.Root) != null ? _b : DefaultCard,
|
|
@@ -5672,7 +6207,7 @@ function getOryComponents(overrides) {
|
|
|
5672
6207
|
},
|
|
5673
6208
|
Node: {
|
|
5674
6209
|
Button: (_x = (_w = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _w.Button) != null ? _x : DefaultButton,
|
|
5675
|
-
|
|
6210
|
+
SsoButton: (_z = (_y = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _y.SsoButton) != null ? _z : DefaultButtonSocial,
|
|
5676
6211
|
Input: (_B = (_A = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _A.Input) != null ? _B : DefaultInput,
|
|
5677
6212
|
CodeInput: (_D = (_C = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _C.CodeInput) != null ? _D : DefaultPinCodeInput,
|
|
5678
6213
|
Image: (_F = (_E = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _E.Image) != null ? _F : DefaultImage,
|
|
@@ -5686,29 +6221,30 @@ function getOryComponents(overrides) {
|
|
|
5686
6221
|
Form: {
|
|
5687
6222
|
Root: (_T = (_S = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _S.Root) != null ? _T : DefaultFormContainer,
|
|
5688
6223
|
Group: (_V = (_U = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _U.Group) != null ? _V : DefaultGroupContainer,
|
|
5689
|
-
|
|
6224
|
+
SsoRoot: (_X = (_W = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _W.SsoRoot) != null ? _X : DefaultSocialButtonContainer,
|
|
5690
6225
|
RecoveryCodesSettings: (_Z = (_Y = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Y.RecoveryCodesSettings) != null ? _Z : DefaultSettingsRecoveryCodes,
|
|
5691
6226
|
TotpSettings: (_$ = (__ = overrides == null ? void 0 : overrides.Form) == null ? void 0 : __.TotpSettings) != null ? _$ : DefaultSettingsTotp,
|
|
5692
|
-
|
|
6227
|
+
SsoSettings: (_ba = (_aa = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _aa.SsoSettings) != null ? _ba : DefaultSettingsOidc,
|
|
5693
6228
|
WebauthnSettings: (_da = (_ca = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _ca.WebauthnSettings) != null ? _da : DefaultSettingsWebauthn,
|
|
5694
6229
|
PasskeySettings: (_fa = (_ea = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _ea.PasskeySettings) != null ? _fa : DefaultSettingsPasskey
|
|
5695
6230
|
},
|
|
5696
6231
|
Message: {
|
|
5697
6232
|
Root: (_ha = (_ga = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ga.Root) != null ? _ha : DefaultMessageContainer,
|
|
5698
|
-
Content: (_ja = (_ia = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ia.Content) != null ? _ja : DefaultMessage
|
|
6233
|
+
Content: (_ja = (_ia = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ia.Content) != null ? _ja : DefaultMessage,
|
|
6234
|
+
Toast: (_la = (_ka = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ka.Toast) != null ? _la : DefaultToast
|
|
5699
6235
|
},
|
|
5700
6236
|
Page: {
|
|
5701
|
-
Header: (
|
|
6237
|
+
Header: (_na = (_ma = overrides == null ? void 0 : overrides.Page) == null ? void 0 : _ma.Header) != null ? _na : DefaultPageHeader
|
|
5702
6238
|
}
|
|
5703
6239
|
};
|
|
5704
6240
|
}
|
|
5705
6241
|
|
|
5706
6242
|
// src/theme/default/flows/error.tsx
|
|
5707
6243
|
var import_client_fetch42 = require("@ory/client-fetch");
|
|
5708
|
-
var
|
|
5709
|
-
var
|
|
5710
|
-
var
|
|
5711
|
-
var
|
|
6244
|
+
var import_elements_react24 = require("@ory/elements-react");
|
|
6245
|
+
var import_react22 = require("react");
|
|
6246
|
+
var import_react_intl25 = require("react-intl");
|
|
6247
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
5712
6248
|
function isOAuth2Error(error) {
|
|
5713
6249
|
return !!error && typeof error === "object" && "error" in error && "error_description" in error;
|
|
5714
6250
|
}
|
|
@@ -5717,7 +6253,7 @@ var errorDescriptions = {
|
|
|
5717
6253
|
5: "The server encountered an error and could not complete your request"
|
|
5718
6254
|
};
|
|
5719
6255
|
function useStandardize(error) {
|
|
5720
|
-
return (0,
|
|
6256
|
+
return (0, import_react22.useMemo)(() => {
|
|
5721
6257
|
var _a;
|
|
5722
6258
|
if (isOAuth2Error(error)) {
|
|
5723
6259
|
return {
|
|
@@ -5761,47 +6297,47 @@ function Error2({
|
|
|
5761
6297
|
const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
|
|
5762
6298
|
const parsed = useStandardize(error);
|
|
5763
6299
|
const description = errorDescriptions[Math.floor(parsed.code / 100)];
|
|
5764
|
-
return /* @__PURE__ */ (0,
|
|
6300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react24.OryConfigurationProvider, { sdk: config.sdk, project: config.project, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
5765
6301
|
IntlProvider,
|
|
5766
6302
|
{
|
|
5767
6303
|
locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
|
|
5768
6304
|
customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
|
|
5769
|
-
children: /* @__PURE__ */ (0,
|
|
6305
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
|
|
5770
6306
|
"div",
|
|
5771
6307
|
{
|
|
5772
6308
|
className: "flex flex-col gap-6 antialiased",
|
|
5773
6309
|
"data-testid": "ory/screen/error",
|
|
5774
6310
|
children: [
|
|
5775
|
-
/* @__PURE__ */ (0,
|
|
5776
|
-
/* @__PURE__ */ (0,
|
|
5777
|
-
/* @__PURE__ */ (0,
|
|
5778
|
-
/* @__PURE__ */ (0,
|
|
5779
|
-
/* @__PURE__ */ (0,
|
|
5780
|
-
parsed.reason && /* @__PURE__ */ (0,
|
|
6311
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
|
|
6312
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "max-h-9 self-start", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ErrorLogo, {}) }),
|
|
6313
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
6314
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-happened" }) }),
|
|
6315
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
|
|
6316
|
+
parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
|
|
5781
6317
|
] })
|
|
5782
6318
|
] }),
|
|
5783
|
-
/* @__PURE__ */ (0,
|
|
5784
|
-
/* @__PURE__ */ (0,
|
|
5785
|
-
/* @__PURE__ */ (0,
|
|
5786
|
-
/* @__PURE__ */ (0,
|
|
5787
|
-
/* @__PURE__ */ (0,
|
|
6319
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
|
|
6320
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-2", children: [
|
|
6321
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
|
|
6322
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.instructions" }) }),
|
|
6323
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(LoggedInActions, {}) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(GoBackButton, {}) })
|
|
5788
6324
|
] }),
|
|
5789
|
-
/* @__PURE__ */ (0,
|
|
5790
|
-
/* @__PURE__ */ (0,
|
|
5791
|
-
/* @__PURE__ */ (0,
|
|
5792
|
-
parsed.id && /* @__PURE__ */ (0,
|
|
6325
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Divider, {}),
|
|
6326
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.text" }) }),
|
|
6328
|
+
parsed.id && /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
|
|
5793
6329
|
"ID: ",
|
|
5794
|
-
/* @__PURE__ */ (0,
|
|
6330
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.id })
|
|
5795
6331
|
] }),
|
|
5796
|
-
/* @__PURE__ */ (0,
|
|
6332
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
|
|
5797
6333
|
"Time: ",
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
6334
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
|
|
5799
6335
|
] }),
|
|
5800
|
-
/* @__PURE__ */ (0,
|
|
6336
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
|
|
5801
6337
|
"Message: ",
|
|
5802
|
-
/* @__PURE__ */ (0,
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("code", { children: parsed.reason })
|
|
5803
6339
|
] }),
|
|
5804
|
-
/* @__PURE__ */ (0,
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
5805
6341
|
"button",
|
|
5806
6342
|
{
|
|
5807
6343
|
className: "text-interface-foreground-default-primary underline",
|
|
@@ -5813,7 +6349,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
|
|
|
5813
6349
|
`;
|
|
5814
6350
|
void navigator.clipboard.writeText(text);
|
|
5815
6351
|
},
|
|
5816
|
-
children: /* @__PURE__ */ (0,
|
|
6352
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.footer.copy" })
|
|
5817
6353
|
}
|
|
5818
6354
|
) })
|
|
5819
6355
|
] })
|
|
@@ -5824,43 +6360,43 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
|
|
|
5824
6360
|
) });
|
|
5825
6361
|
}
|
|
5826
6362
|
function LoggedInActions() {
|
|
5827
|
-
const config = (0,
|
|
6363
|
+
const config = (0, import_elements_react24.useOryConfiguration)();
|
|
5828
6364
|
const { logoutFlow } = useClientLogout(config);
|
|
5829
|
-
return /* @__PURE__ */ (0,
|
|
6365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
5830
6366
|
"a",
|
|
5831
6367
|
{
|
|
5832
6368
|
href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
|
|
5833
6369
|
className: "text-interface-foreground-default-primary underline",
|
|
5834
|
-
children: /* @__PURE__ */ (0,
|
|
6370
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "login.logout-button" })
|
|
5835
6371
|
}
|
|
5836
6372
|
);
|
|
5837
6373
|
}
|
|
5838
6374
|
function GoBackButton() {
|
|
5839
|
-
const config = (0,
|
|
6375
|
+
const config = (0, import_elements_react24.useOryConfiguration)();
|
|
5840
6376
|
if ("default_redirect_url" in config.project) {
|
|
5841
|
-
return /* @__PURE__ */ (0,
|
|
6377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
5842
6378
|
"a",
|
|
5843
6379
|
{
|
|
5844
6380
|
className: "text-interface-foreground-default-primary underline",
|
|
5845
6381
|
href: config.project.default_redirect_url,
|
|
5846
|
-
children: /* @__PURE__ */ (0,
|
|
6382
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_react_intl25.FormattedMessage, { id: "error.action.go-back" })
|
|
5847
6383
|
}
|
|
5848
6384
|
);
|
|
5849
6385
|
}
|
|
5850
6386
|
return null;
|
|
5851
6387
|
}
|
|
5852
6388
|
function ErrorLogo() {
|
|
5853
|
-
const { project } = (0,
|
|
6389
|
+
const { project } = (0, import_elements_react24.useOryConfiguration)();
|
|
5854
6390
|
if (project.logo_light_url) {
|
|
5855
|
-
return /* @__PURE__ */ (0,
|
|
6391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("img", { src: project.logo_light_url, className: "h-full", alt: "Logo" });
|
|
5856
6392
|
}
|
|
5857
|
-
return /* @__PURE__ */ (0,
|
|
6393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: project.name });
|
|
5858
6394
|
}
|
|
5859
6395
|
|
|
5860
6396
|
// src/theme/default/flows/login.tsx
|
|
5861
6397
|
var import_client_fetch43 = require("@ory/client-fetch");
|
|
5862
|
-
var
|
|
5863
|
-
var
|
|
6398
|
+
var import_elements_react25 = require("@ory/elements-react");
|
|
6399
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
5864
6400
|
function Login({
|
|
5865
6401
|
flow,
|
|
5866
6402
|
config,
|
|
@@ -5868,22 +6404,22 @@ function Login({
|
|
|
5868
6404
|
components: flowOverrideComponents
|
|
5869
6405
|
}) {
|
|
5870
6406
|
const components = getOryComponents(flowOverrideComponents);
|
|
5871
|
-
return /* @__PURE__ */ (0,
|
|
5872
|
-
|
|
6407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6408
|
+
import_elements_react25.OryProvider,
|
|
5873
6409
|
{
|
|
5874
6410
|
config,
|
|
5875
6411
|
flow,
|
|
5876
6412
|
flowType: import_client_fetch43.FlowType.Login,
|
|
5877
6413
|
components,
|
|
5878
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
6414
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react25.OrySelfServiceFlowCard, {})
|
|
5879
6415
|
}
|
|
5880
6416
|
);
|
|
5881
6417
|
}
|
|
5882
6418
|
|
|
5883
6419
|
// src/theme/default/flows/recovery.tsx
|
|
5884
6420
|
var import_client_fetch44 = require("@ory/client-fetch");
|
|
5885
|
-
var
|
|
5886
|
-
var
|
|
6421
|
+
var import_elements_react26 = require("@ory/elements-react");
|
|
6422
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
5887
6423
|
function Recovery({
|
|
5888
6424
|
flow,
|
|
5889
6425
|
config,
|
|
@@ -5891,22 +6427,22 @@ function Recovery({
|
|
|
5891
6427
|
components: flowOverrideComponents
|
|
5892
6428
|
}) {
|
|
5893
6429
|
const components = getOryComponents(flowOverrideComponents);
|
|
5894
|
-
return /* @__PURE__ */ (0,
|
|
5895
|
-
|
|
6430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6431
|
+
import_elements_react26.OryProvider,
|
|
5896
6432
|
{
|
|
5897
6433
|
config,
|
|
5898
6434
|
flow,
|
|
5899
6435
|
flowType: import_client_fetch44.FlowType.Recovery,
|
|
5900
6436
|
components,
|
|
5901
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
6437
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_elements_react26.OrySelfServiceFlowCard, {})
|
|
5902
6438
|
}
|
|
5903
6439
|
);
|
|
5904
6440
|
}
|
|
5905
6441
|
|
|
5906
6442
|
// src/theme/default/flows/registration.tsx
|
|
5907
6443
|
var import_client_fetch45 = require("@ory/client-fetch");
|
|
5908
|
-
var
|
|
5909
|
-
var
|
|
6444
|
+
var import_elements_react27 = require("@ory/elements-react");
|
|
6445
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
5910
6446
|
function Registration({
|
|
5911
6447
|
flow,
|
|
5912
6448
|
children,
|
|
@@ -5914,22 +6450,22 @@ function Registration({
|
|
|
5914
6450
|
config
|
|
5915
6451
|
}) {
|
|
5916
6452
|
const components = getOryComponents(flowOverrideComponents);
|
|
5917
|
-
return /* @__PURE__ */ (0,
|
|
5918
|
-
|
|
6453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6454
|
+
import_elements_react27.OryProvider,
|
|
5919
6455
|
{
|
|
5920
6456
|
config,
|
|
5921
6457
|
flow,
|
|
5922
6458
|
flowType: import_client_fetch45.FlowType.Registration,
|
|
5923
6459
|
components,
|
|
5924
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
6460
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_elements_react27.OrySelfServiceFlowCard, {})
|
|
5925
6461
|
}
|
|
5926
6462
|
);
|
|
5927
6463
|
}
|
|
5928
6464
|
|
|
5929
6465
|
// src/theme/default/flows/settings.tsx
|
|
5930
6466
|
var import_client_fetch46 = require("@ory/client-fetch");
|
|
5931
|
-
var
|
|
5932
|
-
var
|
|
6467
|
+
var import_elements_react28 = require("@ory/elements-react");
|
|
6468
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
5933
6469
|
function Settings({
|
|
5934
6470
|
flow,
|
|
5935
6471
|
config,
|
|
@@ -5937,16 +6473,16 @@ function Settings({
|
|
|
5937
6473
|
components: flowOverrideComponents
|
|
5938
6474
|
}) {
|
|
5939
6475
|
const components = getOryComponents(flowOverrideComponents);
|
|
5940
|
-
return /* @__PURE__ */ (0,
|
|
5941
|
-
|
|
6476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
6477
|
+
import_elements_react28.OryProvider,
|
|
5942
6478
|
{
|
|
5943
6479
|
config,
|
|
5944
6480
|
flow,
|
|
5945
6481
|
flowType: import_client_fetch46.FlowType.Settings,
|
|
5946
6482
|
components,
|
|
5947
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
5948
|
-
/* @__PURE__ */ (0,
|
|
5949
|
-
/* @__PURE__ */ (0,
|
|
6483
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
|
|
6484
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react28.OryPageHeader, {}),
|
|
6485
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_elements_react28.OrySettingsCard, {})
|
|
5950
6486
|
] })
|
|
5951
6487
|
}
|
|
5952
6488
|
);
|
|
@@ -5954,8 +6490,8 @@ function Settings({
|
|
|
5954
6490
|
|
|
5955
6491
|
// src/theme/default/flows/verification.tsx
|
|
5956
6492
|
var import_client_fetch47 = require("@ory/client-fetch");
|
|
5957
|
-
var
|
|
5958
|
-
var
|
|
6493
|
+
var import_elements_react29 = require("@ory/elements-react");
|
|
6494
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
5959
6495
|
function Verification({
|
|
5960
6496
|
flow,
|
|
5961
6497
|
config,
|
|
@@ -5963,21 +6499,21 @@ function Verification({
|
|
|
5963
6499
|
components: flowOverrideComponents
|
|
5964
6500
|
}) {
|
|
5965
6501
|
const components = getOryComponents(flowOverrideComponents);
|
|
5966
|
-
return /* @__PURE__ */ (0,
|
|
5967
|
-
|
|
6502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
6503
|
+
import_elements_react29.OryProvider,
|
|
5968
6504
|
{
|
|
5969
6505
|
config,
|
|
5970
6506
|
flow,
|
|
5971
6507
|
flowType: import_client_fetch47.FlowType.Verification,
|
|
5972
6508
|
components,
|
|
5973
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
6509
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_elements_react29.OrySelfServiceFlowCard, {})
|
|
5974
6510
|
}
|
|
5975
6511
|
);
|
|
5976
6512
|
}
|
|
5977
6513
|
|
|
5978
6514
|
// src/theme/default/flows/consent.tsx
|
|
5979
6515
|
var import_client_fetch49 = require("@ory/client-fetch");
|
|
5980
|
-
var
|
|
6516
|
+
var import_elements_react30 = require("@ory/elements-react");
|
|
5981
6517
|
|
|
5982
6518
|
// src/theme/default/utils/oauth2.ts
|
|
5983
6519
|
var import_client_fetch48 = require("@ory/client-fetch");
|
|
@@ -6118,7 +6654,7 @@ function challengeNode(challenge) {
|
|
|
6118
6654
|
}
|
|
6119
6655
|
|
|
6120
6656
|
// src/theme/default/flows/consent.tsx
|
|
6121
|
-
var
|
|
6657
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
6122
6658
|
function Consent({
|
|
6123
6659
|
consentChallenge,
|
|
6124
6660
|
session,
|
|
@@ -6135,14 +6671,14 @@ function Consent({
|
|
|
6135
6671
|
formActionUrl,
|
|
6136
6672
|
session
|
|
6137
6673
|
);
|
|
6138
|
-
return /* @__PURE__ */ (0,
|
|
6139
|
-
|
|
6674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
6675
|
+
import_elements_react30.OryProvider,
|
|
6140
6676
|
{
|
|
6141
6677
|
config,
|
|
6142
6678
|
flow,
|
|
6143
6679
|
flowType: import_client_fetch49.FlowType.OAuth2Consent,
|
|
6144
6680
|
components,
|
|
6145
|
-
children: children != null ? children : /* @__PURE__ */ (0,
|
|
6681
|
+
children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_elements_react30.OryConsentCard, {})
|
|
6146
6682
|
}
|
|
6147
6683
|
);
|
|
6148
6684
|
}
|
|
@@ -6154,7 +6690,6 @@ function Consent({
|
|
|
6154
6690
|
DefaultCardContent,
|
|
6155
6691
|
DefaultCardFooter,
|
|
6156
6692
|
DefaultCardHeader,
|
|
6157
|
-
DefaultCardLayout,
|
|
6158
6693
|
DefaultCardLogo,
|
|
6159
6694
|
DefaultCurrentIdentifierButton,
|
|
6160
6695
|
DefaultFormContainer,
|