@ory/elements-react 1.0.0-next.39 → 1.0.0-next.40

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.
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/theme/default/index.ts
32
32
  var default_exports = {};
33
33
  __export(default_exports, {
34
+ Consent: () => Consent,
34
35
  DefaultButtonSocial: () => DefaultButtonSocial,
35
36
  DefaultCard: () => DefaultCard,
36
37
  DefaultCardContent: () => DefaultCardContent,
@@ -191,12 +192,15 @@ function nodesToAuthMethodGroups(nodes, excludeAuthMethods = []) {
191
192
  ].includes(group)
192
193
  );
193
194
  }
195
+ var findNode = (nodes, opt) => nodes.find((n) => {
196
+ return n.attributes.node_type === opt.node_type && (opt.group instanceof RegExp ? n.group.match(opt.group) : n.group === opt.group) && (opt.name && n.attributes.node_type === "input" ? opt.name instanceof RegExp ? n.attributes.name.match(opt.name) : n.attributes.name === opt.name : !opt.name);
197
+ });
194
198
 
195
199
  // src/theme/default/components/card/footer.tsx
196
200
  var import_jsx_runtime5 = require("react/jsx-runtime");
197
201
  function DefaultCardFooter() {
198
- const { flowType } = (0, import_elements_react.useOryFlow)();
199
- switch (flowType) {
202
+ const oryFlow = (0, import_elements_react.useOryFlow)();
203
+ switch (oryFlow.flowType) {
200
204
  case import_client_fetch3.FlowType.Login:
201
205
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LoginCardFooter, {});
202
206
  case import_client_fetch3.FlowType.Registration:
@@ -205,6 +209,8 @@ function DefaultCardFooter() {
205
209
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(RecoveryCardFooter, {});
206
210
  case import_client_fetch3.FlowType.Verification:
207
211
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(VerificationCardFooter, {});
212
+ case import_client_fetch3.FlowType.OAuth2Consent:
213
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ConsentCardFooter, { flow: oryFlow.flow });
208
214
  default:
209
215
  return null;
210
216
  }
@@ -344,6 +350,51 @@ function RecoveryCardFooter() {
344
350
  function VerificationCardFooter() {
345
351
  return null;
346
352
  }
353
+ function ConsentCardFooter({ flow }) {
354
+ var _a, _b;
355
+ const { Node: Node2 } = (0, import_elements_react.useComponents)();
356
+ const rememberNode = findNode(flow.ui.nodes, {
357
+ group: "oauth2_consent",
358
+ node_type: "input",
359
+ name: "remember"
360
+ });
361
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-8 flex-col", children: [
362
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
363
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { className: "text-interface-foreground-default-secondary leading-normal font-medium", children: [
364
+ "Make sure you trust ",
365
+ (_a = flow.consent_request.client) == null ? void 0 : _a.client_name
366
+ ] }),
367
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-interface-foreground-default-secondary leading-normal", children: "You may be sharing sensitive information with this site or application." })
368
+ ] }),
369
+ rememberNode && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
370
+ Node2.Checkbox,
371
+ {
372
+ attributes: rememberNode.attributes,
373
+ node: rememberNode
374
+ }
375
+ ),
376
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-2", children: flow.ui.nodes.filter(
377
+ (n) => n.attributes.node_type === "input" && n.attributes.type === "submit"
378
+ ).map((n) => {
379
+ const attributes = n.attributes;
380
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
381
+ Node2.Button,
382
+ {
383
+ node: n,
384
+ attributes
385
+ },
386
+ attributes.value
387
+ );
388
+ }) }),
389
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("p", { className: "text-sm", children: [
390
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "text-interface-foreground-default-tertiary", children: [
391
+ "Authorizing will redirect to",
392
+ " "
393
+ ] }),
394
+ (_b = flow.consent_request.client) == null ? void 0 : _b.client_name
395
+ ] })
396
+ ] });
397
+ }
347
398
 
348
399
  // src/theme/default/components/card/header.tsx
349
400
  var import_elements_react3 = require("@ory/elements-react");
@@ -362,7 +413,7 @@ function joinWithCommaOr(list, orText = "or") {
362
413
  }
363
414
  }
364
415
  function useCardHeaderText(container, opts) {
365
- var _a, _b, _c;
416
+ var _a, _b, _c, _d, _e, _f;
366
417
  const nodes = container.nodes;
367
418
  const intl = (0, import_react_intl2.useIntl)();
368
419
  switch (opts.flowType) {
@@ -550,6 +601,25 @@ function useCardHeaderText(container, opts) {
550
601
  }
551
602
  ) : ""
552
603
  };
604
+ case import_client_fetch4.FlowType.OAuth2Consent:
605
+ return {
606
+ title: intl.formatMessage(
607
+ {
608
+ id: "consent.title"
609
+ },
610
+ {
611
+ party: (_d = opts.flow.consent_request.client) == null ? void 0 : _d.client_name
612
+ }
613
+ ),
614
+ description: intl.formatMessage(
615
+ {
616
+ id: "consent.subtitle"
617
+ },
618
+ {
619
+ identifier: (_f = (_e = opts.flow.session.identity) == null ? void 0 : _e.traits.email) != null ? _f : ""
620
+ }
621
+ )
622
+ };
553
623
  }
554
624
  return {
555
625
  title: "Error",
@@ -1149,8 +1219,40 @@ function isGroupImmediateSubmit(group) {
1149
1219
  return group === "code";
1150
1220
  }
1151
1221
 
1152
- // src/theme/default/components/card/auth-method-list-item.tsx
1222
+ // src/theme/default/components/card/list-item.tsx
1153
1223
  var import_jsx_runtime35 = require("react/jsx-runtime");
1224
+ function ListItem({
1225
+ icon: Icon,
1226
+ as,
1227
+ title,
1228
+ description,
1229
+ children,
1230
+ className,
1231
+ ...props
1232
+ }) {
1233
+ const Comp = as || "div";
1234
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1235
+ Comp,
1236
+ {
1237
+ ...props,
1238
+ className: cn(
1239
+ "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
1240
+ className
1241
+ ),
1242
+ children: [
1243
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
1244
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col max-w-full min-w-1", children: [
1245
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-interface-foreground-default-primary break-words", children: title }),
1246
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
1247
+ ] }),
1248
+ children
1249
+ ]
1250
+ }
1251
+ );
1252
+ }
1253
+
1254
+ // src/theme/default/components/card/auth-method-list-item.tsx
1255
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1154
1256
  var iconsMap = {
1155
1257
  code: code_default,
1156
1258
  passkey: passkey_default,
@@ -1169,28 +1271,21 @@ function DefaultAuthMethodListItem({
1169
1271
  var _a;
1170
1272
  const intl = (0, import_react_intl5.useIntl)();
1171
1273
  const Icon = iconsMap[group] || null;
1172
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
1173
- "button",
1274
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1275
+ ListItem,
1174
1276
  {
1175
- className: "flex cursor-pointer gap-3 text-left items-start w-full rounded-buttons p-2 hover:bg-interface-background-default-primary-hover",
1277
+ as: "button",
1278
+ icon: Icon,
1279
+ title: intl.formatMessage(
1280
+ { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
1281
+ title == null ? void 0 : title.values
1282
+ ),
1283
+ description: intl.formatMessage({
1284
+ id: `two-step.${group}.description`
1285
+ }),
1176
1286
  onClick,
1177
1287
  type: isGroupImmediateSubmit(group) ? "submit" : "button",
1178
- "data-testid": `ory/form/auth-picker/${group}`,
1179
- children: [
1180
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "mt-1", children: Icon && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon, { size: 16, className: "text-interface-foreground-brand-primary" }) }),
1181
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "flex-1 leading-normal inline-flex flex-col w-full", children: [
1182
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "text-interface-foreground-default-primary truncate mr-6", children: [
1183
- intl.formatMessage(
1184
- { id: (_a = title == null ? void 0 : title.id) != null ? _a : `two-step.${group}.title` },
1185
- title == null ? void 0 : title.values
1186
- ),
1187
- " "
1188
- ] }),
1189
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-interface-foreground-default-secondary", children: intl.formatMessage({
1190
- id: `two-step.${group}.description`
1191
- }) })
1192
- ] })
1193
- ]
1288
+ "data-testid": `ory/form/auth-picker/${group}`
1194
1289
  }
1195
1290
  );
1196
1291
  }
@@ -1202,7 +1297,7 @@ var import_class_variance_authority = require("class-variance-authority");
1202
1297
  var import_react_hook_form3 = require("react-hook-form");
1203
1298
  var import_react_intl6 = require("react-intl");
1204
1299
  var import_react4 = require("react");
1205
- var import_jsx_runtime36 = require("react/jsx-runtime");
1300
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1206
1301
  var buttonStyles = (0, import_class_variance_authority.cva)(
1207
1302
  [
1208
1303
  "relative flex justify-center gap-3 overflow-hidden rounded-buttons leading-none ring-1 ring-inset font-medium",
@@ -1265,8 +1360,8 @@ var DefaultButton = ({
1265
1360
  setClicked(false);
1266
1361
  }
1267
1362
  }, [isSubmitting]);
1268
- const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret");
1269
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
1363
+ const isPrimary = attributes.name === "method" || attributes.name.includes("passkey") || attributes.name.includes("webauthn") || attributes.name.includes("lookup_secret") || attributes.name.includes("action") && attributes.value === "accept";
1364
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
1270
1365
  "button",
1271
1366
  {
1272
1367
  ...rest,
@@ -1286,8 +1381,8 @@ var DefaultButton = ({
1286
1381
  disabled: (_a = rest.disabled) != null ? _a : isSubmitting,
1287
1382
  "data-loading": clicked,
1288
1383
  children: [
1289
- clicked ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Spinner, {}) : null,
1290
- label ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: (0, import_elements_react7.uiTextToFormattedMessage)(label, intl) }) : ""
1384
+ clicked ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Spinner, {}) : null,
1385
+ label ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: (0, import_elements_react7.uiTextToFormattedMessage)(label, intl) }) : ""
1291
1386
  ]
1292
1387
  }
1293
1388
  );
@@ -1360,7 +1455,7 @@ var uiTextToFormattedMessage4 = ({ id, context = {}, text }, intl) => {
1360
1455
  };
1361
1456
 
1362
1457
  // src/theme/default/components/ui/checkbox-label.tsx
1363
- var import_jsx_runtime37 = require("react/jsx-runtime");
1458
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1364
1459
  var linkRegex = /\[([^\]]+)\]\(([^)]+)\)/g;
1365
1460
  function computeLabelElements(labelText) {
1366
1461
  const elements = [];
@@ -1376,7 +1471,7 @@ function computeLabelElements(labelText) {
1376
1471
  elements.push(labelText.slice(lastIndex, matchStart));
1377
1472
  }
1378
1473
  elements.push(
1379
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
1474
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1380
1475
  "a",
1381
1476
  {
1382
1477
  href: url,
@@ -1401,13 +1496,13 @@ function CheckboxLabel({ label }) {
1401
1496
  return null;
1402
1497
  }
1403
1498
  const labelText = uiTextToFormattedMessage4(label, intl);
1404
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, { children: computeLabelElements(labelText) });
1499
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: computeLabelElements(labelText) });
1405
1500
  }
1406
1501
 
1407
1502
  // src/theme/default/components/form/checkbox.tsx
1408
- var import_jsx_runtime38 = require("react/jsx-runtime");
1503
+ var import_jsx_runtime39 = require("react/jsx-runtime");
1409
1504
  function CheckboxSVG() {
1410
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1505
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1411
1506
  "svg",
1412
1507
  {
1413
1508
  className: "absolute hidden size-4 peer-checked:block fill-checkbox-foreground-checked",
@@ -1416,7 +1511,7 @@ function CheckboxSVG() {
1416
1511
  height: "16",
1417
1512
  viewBox: "0 0 16 16",
1418
1513
  fill: "none",
1419
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1514
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1420
1515
  "path",
1421
1516
  {
1422
1517
  fillRule: "evenodd",
@@ -1443,29 +1538,28 @@ var DefaultCheckbox = ({
1443
1538
  } = initialAttributes;
1444
1539
  const intl = (0, import_react_intl8.useIntl)();
1445
1540
  const label = (0, import_client_fetch9.getNodeLabel)(node);
1446
- const { register } = (0, import_react_hook_form4.useForm)();
1541
+ const { register } = (0, import_react_hook_form4.useFormContext)();
1447
1542
  const hasError = node.messages.some((m) => m.type === "error");
1448
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
1449
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "flex h-5 items-center", children: [
1450
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1543
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("label", { className: "flex items-start gap-3 self-stretch antialiased", children: [
1544
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "flex h-5 items-center", children: [
1545
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1451
1546
  "input",
1452
1547
  {
1453
1548
  ...attributes,
1454
- value: 1,
1455
1549
  defaultChecked: Boolean(value),
1456
1550
  type: "checkbox",
1457
1551
  className: cn(
1458
1552
  "peer size-4 border appearance-none rounded-forms bg-checkbox-background-default border-checkbox-border-checkbox-border-default checked:bg-checkbox-background-checked checked:border-checkbox-border-checkbox-border-checked",
1459
1553
  hasError && "border-interface-border-validation-danger"
1460
1554
  ),
1461
- ...register(name, { value })
1555
+ ...register(name)
1462
1556
  }
1463
1557
  ),
1464
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CheckboxSVG, {})
1558
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CheckboxSVG, {})
1465
1559
  ] }),
1466
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("span", { className: "flex flex-col", children: [
1467
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CheckboxLabel, { label }) }),
1468
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1560
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "flex flex-col", children: [
1561
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "font-normal leading-tight text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CheckboxLabel, { label }) }),
1562
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
1469
1563
  "span",
1470
1564
  {
1471
1565
  className: cn(
@@ -1482,59 +1576,71 @@ var DefaultCheckbox = ({
1482
1576
  };
1483
1577
 
1484
1578
  // src/theme/default/components/form/group-container.tsx
1485
- var import_jsx_runtime39 = require("react/jsx-runtime");
1579
+ var import_elements_react9 = require("@ory/elements-react");
1580
+ var import_client_fetch10 = require("@ory/client-fetch");
1581
+ var import_jsx_runtime40 = require("react/jsx-runtime");
1486
1582
  function DefaultGroupContainer({ children }) {
1487
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "grid grid-cols-1 gap-8", children });
1583
+ const { flowType } = (0, import_elements_react9.useOryFlow)();
1584
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
1585
+ "div",
1586
+ {
1587
+ className: cn(
1588
+ "grid",
1589
+ flowType === import_client_fetch10.FlowType.OAuth2Consent ? "grid-cols-2 gap-2" : "grid-cols-1 gap-8"
1590
+ ),
1591
+ children
1592
+ }
1593
+ );
1488
1594
  }
1489
1595
 
1490
1596
  // src/theme/default/components/form/horizontal-divider.tsx
1491
- var import_jsx_runtime40 = require("react/jsx-runtime");
1597
+ var import_jsx_runtime41 = require("react/jsx-runtime");
1492
1598
  function DefaultHorizontalDivider() {
1493
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("hr", { className: "border-interface-border-default-primary" });
1599
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("hr", { className: "border-interface-border-default-primary" });
1494
1600
  }
1495
1601
 
1496
1602
  // src/theme/default/components/form/image.tsx
1497
- var import_jsx_runtime41 = require("react/jsx-runtime");
1603
+ var import_jsx_runtime42 = require("react/jsx-runtime");
1498
1604
  function DefaultImage({ attributes }) {
1499
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("img", { ...attributes }) });
1605
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("img", { ...attributes }) });
1500
1606
  }
1501
1607
 
1502
1608
  // src/theme/default/components/form/input.tsx
1503
- var import_client_fetch10 = require("@ory/client-fetch");
1504
- var import_elements_react9 = require("@ory/elements-react");
1609
+ var import_client_fetch11 = require("@ory/client-fetch");
1610
+ var import_elements_react10 = require("@ory/elements-react");
1505
1611
  var import_react5 = require("react");
1506
1612
  var import_react_hook_form5 = require("react-hook-form");
1507
1613
  var import_react_intl9 = require("react-intl");
1508
1614
 
1509
1615
  // src/theme/default/assets/icons/eye-off.svg
1510
1616
  var React24 = __toESM(require("react"));
1511
- var import_jsx_runtime42 = require("react/jsx-runtime");
1617
+ var import_jsx_runtime43 = require("react/jsx-runtime");
1512
1618
  var SvgEyeOff = (props) => {
1513
1619
  var _a, _b;
1514
- return /* @__PURE__ */ (0, import_jsx_runtime42.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_runtime42.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
1620
+ return /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsx)("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.585 10.587a2 2 0 0 0 2.829 2.828m3.267 3.258A8.7 8.7 0 0 1 12 18q-5.4 0-9-6 1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6-1 1.665-2.138 2.87M3 3l18 18" }) });
1515
1621
  };
1516
1622
  var eye_off_default = SvgEyeOff;
1517
1623
 
1518
1624
  // src/theme/default/assets/icons/eye.svg
1519
1625
  var React25 = __toESM(require("react"));
1520
- var import_jsx_runtime43 = require("react/jsx-runtime");
1626
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1521
1627
  var SvgEye = (props) => {
1522
1628
  var _a, _b;
1523
- return /* @__PURE__ */ (0, import_jsx_runtime43.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_runtime43.jsxs)("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1524
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1525
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1629
+ return /* @__PURE__ */ (0, import_jsx_runtime44.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_runtime44.jsxs)("g", { strokeLinecap: "round", strokeLinejoin: "round", children: [
1630
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { stroke: "currentColor", d: "M10 12a2 2 0 1 0 4 0 2 2 0 0 0-4 0" }),
1631
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("path", { stroke: "#64748B", d: "M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6" })
1526
1632
  ] }) });
1527
1633
  };
1528
1634
  var eye_default = SvgEye;
1529
1635
 
1530
1636
  // src/theme/default/components/form/input.tsx
1531
- var import_jsx_runtime44 = require("react/jsx-runtime");
1637
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1532
1638
  var DefaultInput = ({
1533
1639
  node,
1534
1640
  attributes,
1535
1641
  onClick
1536
1642
  }) => {
1537
- const label = (0, import_client_fetch10.getNodeLabel)(node);
1643
+ const label = (0, import_client_fetch11.getNodeLabel)(node);
1538
1644
  const { register } = (0, import_react_hook_form5.useFormContext)();
1539
1645
  const {
1540
1646
  value,
@@ -1545,7 +1651,7 @@ var DefaultInput = ({
1545
1651
  ...rest
1546
1652
  } = attributes;
1547
1653
  const intl = (0, import_react_intl9.useIntl)();
1548
- const { flowType } = (0, import_elements_react9.useOryFlow)();
1654
+ const { flowType } = (0, import_elements_react10.useOryFlow)();
1549
1655
  const inputRef = (0, import_react5.useRef)(null);
1550
1656
  const formattedLabel = label ? intl.formatMessage(
1551
1657
  {
@@ -1553,11 +1659,11 @@ var DefaultInput = ({
1553
1659
  defaultMessage: "Enter your {placeholder}"
1554
1660
  },
1555
1661
  {
1556
- placeholder: (0, import_elements_react9.uiTextToFormattedMessage)(label, intl)
1662
+ placeholder: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl)
1557
1663
  }
1558
1664
  ) : "";
1559
1665
  if (rest.type === "hidden") {
1560
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1666
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1561
1667
  "input",
1562
1668
  {
1563
1669
  ...rest,
@@ -1571,16 +1677,16 @@ var DefaultInput = ({
1571
1677
  );
1572
1678
  }
1573
1679
  const { ref, ...restRegister } = register(name, { value });
1574
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
1680
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
1575
1681
  "div",
1576
1682
  {
1577
1683
  className: cn(
1578
1684
  "relative flex justify-stretch",
1579
1685
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1580
- flowType === import_client_fetch10.FlowType.Settings && "max-w-[488px]"
1686
+ flowType === import_client_fetch11.FlowType.Settings && "max-w-[488px]"
1581
1687
  ),
1582
1688
  children: [
1583
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1689
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1584
1690
  "input",
1585
1691
  {
1586
1692
  ...rest,
@@ -1604,7 +1710,7 @@ var DefaultInput = ({
1604
1710
  ...restRegister
1605
1711
  }
1606
1712
  ),
1607
- rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(PasswordToggle, { inputRef })
1713
+ rest.type === "password" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(PasswordToggle, { inputRef })
1608
1714
  ]
1609
1715
  }
1610
1716
  );
@@ -1619,23 +1725,23 @@ function PasswordToggle({
1619
1725
  inputRef.current.type = shown ? "password" : "text";
1620
1726
  }
1621
1727
  };
1622
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1728
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1623
1729
  "button",
1624
1730
  {
1625
1731
  onClick: handleClick,
1626
1732
  className: "absolute right-0 h-full w-12 flex items-center justify-center",
1627
1733
  type: "button",
1628
- children: shown ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(eye_default, {})
1734
+ children: shown ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(eye_off_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(eye_default, {})
1629
1735
  }
1630
1736
  );
1631
1737
  }
1632
1738
 
1633
1739
  // src/theme/default/components/form/label.tsx
1634
- var import_client_fetch11 = require("@ory/client-fetch");
1635
- var import_elements_react10 = require("@ory/elements-react");
1740
+ var import_client_fetch12 = require("@ory/client-fetch");
1741
+ var import_elements_react11 = require("@ory/elements-react");
1636
1742
  var import_react_hook_form6 = require("react-hook-form");
1637
1743
  var import_react_intl10 = require("react-intl");
1638
- var import_jsx_runtime45 = require("react/jsx-runtime");
1744
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1639
1745
  function findResendNode(nodes) {
1640
1746
  return nodes.find(
1641
1747
  (n) => "name" in n.attributes && (n.attributes.name === "email" && n.attributes.type === "submit" || n.attributes.name === "resend")
@@ -1648,9 +1754,9 @@ function DefaultLabel({
1648
1754
  ...rest
1649
1755
  }) {
1650
1756
  const intl = (0, import_react_intl10.useIntl)();
1651
- const label = (0, import_client_fetch11.getNodeLabel)(node);
1652
- const { Message } = (0, import_elements_react10.useComponents)();
1653
- const { config, flowType, flow } = (0, import_elements_react10.useOryFlow)();
1757
+ const label = (0, import_client_fetch12.getNodeLabel)(node);
1758
+ const { Message } = (0, import_elements_react11.useComponents)();
1759
+ const { config, flowType, flow } = (0, import_elements_react11.useOryFlow)();
1654
1760
  const { setValue, formState } = (0, import_react_hook_form6.useFormContext)();
1655
1761
  const isPassword = attributes.type === "password";
1656
1762
  const resendNode = findResendNode(flow.ui.nodes);
@@ -1660,21 +1766,21 @@ function DefaultLabel({
1660
1766
  }
1661
1767
  };
1662
1768
  const fieldError = formState.errors[attributes.name];
1663
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
1664
- label && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "inline-flex justify-between", children: [
1665
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1769
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col gap-1 antialiased", children: [
1770
+ label && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("span", { className: "inline-flex justify-between", children: [
1771
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1666
1772
  "label",
1667
1773
  {
1668
- ...(0, import_elements_react10.messageTestId)(label),
1774
+ ...(0, import_elements_react11.messageTestId)(label),
1669
1775
  className: "leading-normal text-input-foreground-primary",
1670
1776
  htmlFor: attributes.name,
1671
1777
  "data-testid": `ory/form/node/input/label/${attributes.name}`,
1672
1778
  ...rest,
1673
- children: (0, import_elements_react10.uiTextToFormattedMessage)(label, intl)
1779
+ children: (0, import_elements_react11.uiTextToFormattedMessage)(label, intl)
1674
1780
  }
1675
1781
  ),
1676
- isPassword && config.project.recovery_enabled && flowType === import_client_fetch11.FlowType.Login && // TODO: make it possible to override with a custom component
1677
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1782
+ isPassword && config.project.recovery_enabled && flowType === import_client_fetch12.FlowType.Login && // TODO: make it possible to override with a custom component
1783
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1678
1784
  "a",
1679
1785
  {
1680
1786
  href: initFlowUrl(config.sdk.url, "recovery", flow),
@@ -1685,7 +1791,7 @@ function DefaultLabel({
1685
1791
  })
1686
1792
  }
1687
1793
  ),
1688
- (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1794
+ (resendNode == null ? void 0 : resendNode.attributes.node_type) === "input" && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1689
1795
  "button",
1690
1796
  {
1691
1797
  type: "submit",
@@ -1698,31 +1804,31 @@ function DefaultLabel({
1698
1804
  )
1699
1805
  ] }),
1700
1806
  children,
1701
- node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Message.Content, { message }, message.id)),
1702
- fieldError && (0, import_client_fetch11.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Message.Content, { message: fieldError })
1807
+ node.messages.map((message) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Message.Content, { message }, message.id)),
1808
+ fieldError && (0, import_client_fetch12.instanceOfUiText)(fieldError) && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Message.Content, { message: fieldError })
1703
1809
  ] });
1704
1810
  }
1705
1811
 
1706
1812
  // src/theme/default/components/form/link-button.tsx
1707
- var import_client_fetch12 = require("@ory/client-fetch");
1708
- var import_elements_react11 = require("@ory/elements-react");
1813
+ var import_client_fetch13 = require("@ory/client-fetch");
1814
+ var import_elements_react12 = require("@ory/elements-react");
1709
1815
  var import_react6 = require("react");
1710
1816
  var import_react_intl11 = require("react-intl");
1711
- var import_jsx_runtime46 = require("react/jsx-runtime");
1817
+ var import_jsx_runtime47 = require("react/jsx-runtime");
1712
1818
  var DefaultLinkButton = (0, import_react6.forwardRef)(({ attributes, node }, ref) => {
1713
1819
  const intl = (0, import_react_intl11.useIntl)();
1714
- const label = (0, import_client_fetch12.getNodeLabel)(node);
1715
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1820
+ const label = (0, import_client_fetch13.getNodeLabel)(node);
1821
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1716
1822
  "a",
1717
1823
  {
1718
1824
  ...attributes,
1719
1825
  ref,
1720
- title: label ? (0, import_elements_react11.uiTextToFormattedMessage)(label, intl) : "",
1826
+ title: label ? (0, import_elements_react12.uiTextToFormattedMessage)(label, intl) : "",
1721
1827
  "data-testid": `ory/form/node/link/${attributes.id}`,
1722
1828
  className: cn(
1723
1829
  "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"
1724
1830
  ),
1725
- children: label ? (0, import_elements_react11.uiTextToFormattedMessage)(label, intl) : ""
1831
+ children: label ? (0, import_elements_react12.uiTextToFormattedMessage)(label, intl) : ""
1726
1832
  }
1727
1833
  );
1728
1834
  });
@@ -1734,8 +1840,8 @@ var import_react_hook_form7 = require("react-hook-form");
1734
1840
  // src/theme/default/components/form/shadcn/otp-input.tsx
1735
1841
  var import_input_otp = require("input-otp");
1736
1842
  var React26 = __toESM(require("react"));
1737
- var import_jsx_runtime47 = require("react/jsx-runtime");
1738
- var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
1843
+ var import_jsx_runtime48 = require("react/jsx-runtime");
1844
+ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1739
1845
  import_input_otp.OTPInput,
1740
1846
  {
1741
1847
  ref,
@@ -1748,12 +1854,12 @@ var InputOTP = React26.forwardRef(({ className, containerClassName, ...props },
1748
1854
  }
1749
1855
  ));
1750
1856
  InputOTP.displayName = "InputOTP";
1751
- var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
1857
+ var InputOTPGroup = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref, className: cn("flex items-center", className), ...props }));
1752
1858
  InputOTPGroup.displayName = "InputOTPGroup";
1753
1859
  var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
1754
1860
  const inputOTPContext = React26.useContext(import_input_otp.OTPInputContext);
1755
1861
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
1756
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
1862
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
1757
1863
  "div",
1758
1864
  {
1759
1865
  ref,
@@ -1765,8 +1871,8 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
1765
1871
  ),
1766
1872
  ...props,
1767
1873
  children: [
1768
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "inline-block size-4", children: char }),
1769
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1874
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "inline-block size-4", children: char }),
1875
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "h-4 w-px animate-caret-blink bg-interface-background-brand-primary duration-700" }) })
1770
1876
  ]
1771
1877
  }
1772
1878
  );
@@ -1774,34 +1880,34 @@ var InputOTPSlot = React26.forwardRef(({ index, className, ...props }, ref) => {
1774
1880
  InputOTPSlot.displayName = "InputOTPSlot";
1775
1881
 
1776
1882
  // src/theme/default/components/form/pin-code-input.tsx
1777
- var import_elements_react12 = require("@ory/elements-react");
1778
- var import_client_fetch13 = require("@ory/client-fetch");
1779
- var import_jsx_runtime48 = require("react/jsx-runtime");
1883
+ var import_elements_react13 = require("@ory/elements-react");
1884
+ var import_client_fetch14 = require("@ory/client-fetch");
1885
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1780
1886
  var DefaultPinCodeInput = ({ attributes }) => {
1781
1887
  const { setValue, watch } = (0, import_react_hook_form7.useFormContext)();
1782
1888
  const { maxlength, name } = attributes;
1783
1889
  const elements = maxlength != null ? maxlength : 6;
1784
- const { flowType } = (0, import_elements_react12.useOryFlow)();
1890
+ const { flowType } = (0, import_elements_react13.useOryFlow)();
1785
1891
  const handleInputChange = (v) => {
1786
1892
  setValue(name, v);
1787
1893
  };
1788
1894
  const value = watch(name);
1789
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1895
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1790
1896
  InputOTP,
1791
1897
  {
1792
1898
  maxLength: maxlength != null ? maxlength : 6,
1793
1899
  onChange: handleInputChange,
1794
1900
  name,
1795
1901
  value,
1796
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
1902
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1797
1903
  InputOTPGroup,
1798
1904
  {
1799
1905
  className: cn(
1800
1906
  "w-full flex gap-2 justify-stretch",
1801
1907
  // The settings flow input fields are supposed to be dense, so we don't need the extra padding we want on the user flows.
1802
- flowType === import_client_fetch13.FlowType.Settings && "max-w-[488px]"
1908
+ flowType === import_client_fetch14.FlowType.Settings && "max-w-[488px]"
1803
1909
  ),
1804
- children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(InputOTPSlot, { index }, index))
1910
+ children: [...Array(elements)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(InputOTPSlot, { index }, index))
1805
1911
  }
1806
1912
  )
1807
1913
  }
@@ -1809,13 +1915,13 @@ var DefaultPinCodeInput = ({ attributes }) => {
1809
1915
  };
1810
1916
 
1811
1917
  // src/theme/default/components/form/section.tsx
1812
- var import_jsx_runtime49 = require("react/jsx-runtime");
1918
+ var import_jsx_runtime50 = require("react/jsx-runtime");
1813
1919
  var DefaultFormSection = ({
1814
1920
  children,
1815
1921
  nodes: _nodes,
1816
1922
  ...rest
1817
1923
  }) => {
1818
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
1924
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1819
1925
  "form",
1820
1926
  {
1821
1927
  className: "flex w-full max-w-screen-sm flex-col md:max-w-[712px] lg:max-w-[802px] xl:max-w-[896px] px-4",
@@ -1829,10 +1935,10 @@ var DefaultFormSectionContent = ({
1829
1935
  description,
1830
1936
  children
1831
1937
  }) => {
1832
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1833
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-2", children: [
1834
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1835
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
1938
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-8 rounded-t-cards border border-b-0 border-interface-border-default-primary bg-interface-background-default-primary px-6 py-8", children: [
1939
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-2", children: [
1940
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h3", { className: "font-medium text-interface-foreground-default-primary", children: title }),
1941
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-interface-foreground-default-secondary", children: description })
1836
1942
  ] }),
1837
1943
  children
1838
1944
  ] });
@@ -1841,14 +1947,14 @@ var DefaultFormSectionFooter = ({
1841
1947
  children,
1842
1948
  text
1843
1949
  }) => {
1844
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
1950
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
1845
1951
  "div",
1846
1952
  {
1847
1953
  className: cn(
1848
1954
  "flex min-h-[72px] items-center justify-between gap-2 rounded-b-cards border border-interface-border-default-primary bg-interface-background-default-secondary px-6 py-4 text-interface-foreground-default-tertiary"
1849
1955
  ),
1850
1956
  children: [
1851
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: text }),
1957
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: text }),
1852
1958
  children
1853
1959
  ]
1854
1960
  }
@@ -1856,63 +1962,63 @@ var DefaultFormSectionFooter = ({
1856
1962
  };
1857
1963
 
1858
1964
  // src/theme/default/components/form/text.tsx
1859
- var import_elements_react13 = require("@ory/elements-react");
1965
+ var import_elements_react14 = require("@ory/elements-react");
1860
1966
  var import_react_intl12 = require("react-intl");
1861
- var import_jsx_runtime50 = require("react/jsx-runtime");
1967
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1862
1968
  function DefaultText({ node, attributes }) {
1863
1969
  var _a;
1864
1970
  const intl = (0, import_react_intl12.useIntl)();
1865
1971
  const lookup = (_a = attributes.text.context) == null ? void 0 : _a.secrets;
1866
1972
  if (lookup) {
1867
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
1868
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react13.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
1869
- lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
1973
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
1974
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { "data-testid": `ory/form/node/text/${attributes.id}/label`, children: node.meta.label ? (0, import_elements_react14.uiTextToFormattedMessage)(node.meta.label, intl) : "" }),
1975
+ lookup.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
1870
1976
  "pre",
1871
1977
  {
1872
1978
  "data-testid": `ory/form/node/text/lookup_secret_codes/text`,
1873
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("code", { children: text ? (0, import_elements_react13.uiTextToFormattedMessage)(text, intl) : "" })
1979
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("code", { children: text ? (0, import_elements_react14.uiTextToFormattedMessage)(text, intl) : "" })
1874
1980
  },
1875
1981
  index
1876
1982
  ))
1877
1983
  ] });
1878
1984
  }
1879
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
1985
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
1880
1986
  "p",
1881
1987
  {
1882
1988
  "data-testid": `ory/form/node/text/${attributes.id}/label`,
1883
1989
  id: attributes.id,
1884
1990
  children: [
1885
- node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("label", { children: (0, import_elements_react13.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
1886
- attributes.text ? (0, import_elements_react13.uiTextToFormattedMessage)(attributes.text, intl) : ""
1991
+ node.meta.label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { children: (0, import_elements_react14.uiTextToFormattedMessage)(node.meta.label, intl) }) : null,
1992
+ attributes.text ? (0, import_elements_react14.uiTextToFormattedMessage)(attributes.text, intl) : ""
1887
1993
  ]
1888
1994
  }
1889
1995
  ) });
1890
1996
  }
1891
1997
 
1892
1998
  // src/theme/default/components/generic/page-header.tsx
1893
- var import_elements_react15 = require("@ory/elements-react");
1999
+ var import_elements_react16 = require("@ory/elements-react");
1894
2000
 
1895
2001
  // src/theme/default/components/ui/user-menu.tsx
1896
- var import_elements_react14 = require("@ory/elements-react");
2002
+ var import_elements_react15 = require("@ory/elements-react");
1897
2003
  var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
1898
2004
 
1899
2005
  // src/theme/default/assets/icons/logout.svg
1900
2006
  var React27 = __toESM(require("react"));
1901
- var import_jsx_runtime51 = require("react/jsx-runtime");
2007
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1902
2008
  var SvgLogout = (props) => {
1903
2009
  var _a, _b;
1904
- return /* @__PURE__ */ (0, import_jsx_runtime51.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_runtime51.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
2010
+ return /* @__PURE__ */ (0, import_jsx_runtime52.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_runtime52.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 5.334V4A1.333 1.333 0 0 0 8 2.667H3.333A1.333 1.333 0 0 0 2 4v8a1.333 1.333 0 0 0 1.333 1.334H8A1.333 1.333 0 0 0 9.333 12v-1.333M4.667 8H14m0 0-2-2m2 2-2 2" }) });
1905
2011
  };
1906
2012
  var logout_default = SvgLogout;
1907
2013
 
1908
2014
  // src/theme/default/assets/icons/settings.svg
1909
2015
  var React28 = __toESM(require("react"));
1910
- var import_jsx_runtime52 = require("react/jsx-runtime");
2016
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1911
2017
  var SvgSettings = (props) => {
1912
2018
  var _a, _b;
1913
- return /* @__PURE__ */ (0, import_jsx_runtime52.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_runtime52.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
1914
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
1915
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
2019
+ return /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsxs)("g", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", children: [
2020
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M6.883 2.878c.284-1.17 1.95-1.17 2.234 0a1.15 1.15 0 0 0 1.715.71c1.029-.626 2.207.551 1.58 1.58a1.148 1.148 0 0 0 .71 1.715c1.17.284 1.17 1.95 0 2.234a1.15 1.15 0 0 0-.71 1.715c.626 1.029-.551 2.207-1.58 1.58a1.148 1.148 0 0 0-1.715.71c-.284 1.17-1.95 1.17-2.234 0a1.15 1.15 0 0 0-1.715-.71c-1.029.626-2.207-.551-1.58-1.58a1.15 1.15 0 0 0-.71-1.715c-1.17-.284-1.17-1.95 0-2.234a1.15 1.15 0 0 0 .71-1.715c-.626-1.029.551-2.207 1.58-1.58.667.405 1.531.047 1.715-.71" }),
2021
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0" })
1916
2022
  ] }) });
1917
2023
  };
1918
2024
  var settings_default = SvgSettings;
@@ -1921,9 +2027,9 @@ var settings_default = SvgSettings;
1921
2027
  var import_react7 = require("react");
1922
2028
 
1923
2029
  // src/util/client.ts
1924
- var import_client_fetch14 = require("@ory/client-fetch");
2030
+ var import_client_fetch15 = require("@ory/client-fetch");
1925
2031
  function frontendClient(sdkUrl, opts = {}) {
1926
- const config = new import_client_fetch14.Configuration({
2032
+ const config = new import_client_fetch15.Configuration({
1927
2033
  ...opts,
1928
2034
  basePath: sdkUrl,
1929
2035
  headers: {
@@ -1931,7 +2037,7 @@ function frontendClient(sdkUrl, opts = {}) {
1931
2037
  ...opts.headers
1932
2038
  }
1933
2039
  });
1934
- return new import_client_fetch14.FrontendApi(config);
2040
+ return new import_client_fetch15.FrontendApi(config);
1935
2041
  }
1936
2042
 
1937
2043
  // src/theme/default/utils/logout.ts
@@ -1989,10 +2095,10 @@ var getUserInitials = (session) => {
1989
2095
  // src/theme/default/components/ui/dropdown-menu.tsx
1990
2096
  var import_react8 = require("react");
1991
2097
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1992
- var import_jsx_runtime53 = require("react/jsx-runtime");
2098
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1993
2099
  var DropdownMenu = DropdownMenuPrimitive.Root;
1994
2100
  var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
1995
- var DropdownMenuContent = (0, import_react8.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2101
+ var DropdownMenuContent = (0, import_react8.forwardRef)(({ className, sideOffset = 16, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
1996
2102
  DropdownMenuPrimitive.Content,
1997
2103
  {
1998
2104
  ref,
@@ -2007,7 +2113,7 @@ var DropdownMenuContent = (0, import_react8.forwardRef)(({ className, sideOffset
2007
2113
  }
2008
2114
  ) }));
2009
2115
  DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
2010
- var DropdownMenuItem = (0, import_react8.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2116
+ var DropdownMenuItem = (0, import_react8.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2011
2117
  DropdownMenuPrimitive.Item,
2012
2118
  {
2013
2119
  ref,
@@ -2025,7 +2131,7 @@ var DropdownMenuItem = (0, import_react8.forwardRef)(({ className, inset, ...pro
2025
2131
  }
2026
2132
  ));
2027
2133
  DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
2028
- var DropdownMenuLabel = (0, import_react8.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
2134
+ var DropdownMenuLabel = (0, import_react8.forwardRef)(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
2029
2135
  DropdownMenuPrimitive.Label,
2030
2136
  {
2031
2137
  ref,
@@ -2044,31 +2150,31 @@ var import_react9 = require("react");
2044
2150
 
2045
2151
  // src/theme/default/assets/icons/user.svg
2046
2152
  var React29 = __toESM(require("react"));
2047
- var import_jsx_runtime54 = require("react/jsx-runtime");
2153
+ var import_jsx_runtime55 = require("react/jsx-runtime");
2048
2154
  var SvgUser = (props) => {
2049
2155
  var _a, _b;
2050
- return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
2156
+ return /* @__PURE__ */ (0, import_jsx_runtime55.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_runtime55.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M8 7a4 4 0 1 0 8 0 4 4 0 0 0-8 0" }) });
2051
2157
  };
2052
2158
  var user_default = SvgUser;
2053
2159
 
2054
2160
  // src/theme/default/components/ui/user-avater.tsx
2055
- var import_jsx_runtime55 = require("react/jsx-runtime");
2161
+ var import_jsx_runtime56 = require("react/jsx-runtime");
2056
2162
  var UserAvatar = (0, import_react9.forwardRef)(
2057
2163
  ({ initials, ...rest }, ref) => {
2058
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2164
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2059
2165
  "button",
2060
2166
  {
2061
2167
  ref,
2062
2168
  className: "relative flex size-10 items-center justify-center overflow-hidden rounded-[999px] bg-button-primary-background-default hover:bg-button-primary-background-hover",
2063
2169
  ...rest,
2064
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2170
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "relative flex size-full items-center justify-center", children: initials.avatar ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2065
2171
  "img",
2066
2172
  {
2067
2173
  src: initials.avatar,
2068
2174
  alt: initials.primary,
2069
2175
  className: "w-full object-contain"
2070
2176
  }
2071
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
2177
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
2072
2178
  user_default,
2073
2179
  {
2074
2180
  size: 24,
@@ -2082,27 +2188,27 @@ var UserAvatar = (0, import_react9.forwardRef)(
2082
2188
  UserAvatar.displayName = "UserAvatar";
2083
2189
 
2084
2190
  // src/theme/default/components/ui/user-menu.tsx
2085
- var import_jsx_runtime56 = require("react/jsx-runtime");
2191
+ var import_jsx_runtime57 = require("react/jsx-runtime");
2086
2192
  var UserMenu = ({ session }) => {
2087
- const { config } = (0, import_elements_react14.useOryFlow)();
2193
+ const { config } = (0, import_elements_react15.useOryFlow)();
2088
2194
  const initials = getUserInitials(session);
2089
2195
  const logoutFlow = useClientLogout(config);
2090
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(DropdownMenu, { children: [
2091
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UserAvatar, { initials }) }),
2092
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(DropdownMenuContent, { children: [
2093
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
2094
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(UserAvatar, { disabled: true, initials }),
2095
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
2096
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
2097
- initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
2196
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(DropdownMenu, { children: [
2197
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UserAvatar, { initials }) }),
2198
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(DropdownMenuContent, { children: [
2199
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react_dropdown_menu.DropdownMenuLabel, { className: "flex gap-3 px-5 py-4.5", children: [
2200
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UserAvatar, { disabled: true, initials }),
2201
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col justify-center text-sm leading-tight", children: [
2202
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-interface-foreground-default-primary leading-tight font-medium", children: initials.primary }),
2203
+ initials.secondary && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-interface-foreground-default-tertiary leading-tight", children: initials.secondary })
2098
2204
  ] })
2099
2205
  ] }),
2100
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("a", { href: "/settings", children: [
2101
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(settings_default, { size: 16 }),
2206
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DropdownMenuItem, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("a", { href: "/settings", children: [
2207
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(settings_default, { size: 16 }),
2102
2208
  " User settings"
2103
2209
  ] }) }),
2104
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
2105
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(logout_default, { size: 16 }),
2210
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DropdownMenuItem, { asChild: true, disabled: !(logoutFlow == null ? void 0 : logoutFlow.logout_url), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("a", { href: logoutFlow == null ? void 0 : logoutFlow.logout_url, children: [
2211
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(logout_default, { size: 16 }),
2106
2212
  " Logout"
2107
2213
  ] }) })
2108
2214
  ] })
@@ -2111,13 +2217,13 @@ var UserMenu = ({ session }) => {
2111
2217
 
2112
2218
  // src/theme/default/components/generic/page-header.tsx
2113
2219
  var import_client2 = require("@ory/elements-react/client");
2114
- var import_jsx_runtime57 = require("react/jsx-runtime");
2220
+ var import_jsx_runtime58 = require("react/jsx-runtime");
2115
2221
  var DefaultPageHeader = (_props) => {
2116
- const { Card } = (0, import_elements_react15.useComponents)();
2222
+ const { Card } = (0, import_elements_react16.useComponents)();
2117
2223
  const { session } = (0, import_client2.useSession)();
2118
- return /* @__PURE__ */ (0, import_jsx_runtime57.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_runtime57.jsx)("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
2119
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Card.Logo, {}) }),
2120
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(UserMenu, { session })
2224
+ return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("div", { className: "flex flex-col gap-12", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex max-h-10 flex-1 justify-between gap-2", children: [
2225
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "relative h-10 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Card.Logo, {}) }),
2226
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(UserMenu, { session })
2121
2227
  ] }) }) });
2122
2228
  };
2123
2229
 
@@ -2128,25 +2234,25 @@ var import_usehooks_ts2 = require("usehooks-ts");
2128
2234
 
2129
2235
  // src/theme/default/assets/icons/trash.svg
2130
2236
  var React30 = __toESM(require("react"));
2131
- var import_jsx_runtime58 = require("react/jsx-runtime");
2237
+ var import_jsx_runtime59 = require("react/jsx-runtime");
2132
2238
  var SvgTrash = (props) => {
2133
2239
  var _a, _b;
2134
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
2240
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 7h16m-10 4v6m4-6v6M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2l1-12M9 7V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3" }) });
2135
2241
  };
2136
2242
  var trash_default = SvgTrash;
2137
2243
 
2138
2244
  // src/theme/default/components/settings/settings-oidc.tsx
2139
- var import_jsx_runtime59 = require("react/jsx-runtime");
2245
+ var import_jsx_runtime60 = require("react/jsx-runtime");
2140
2246
  function DefaultSettingsOidc({
2141
2247
  linkButtons,
2142
2248
  unlinkButtons
2143
2249
  }) {
2144
2250
  const hasLinkButtons = linkButtons.length > 0;
2145
2251
  const hasUnlinkButtons = unlinkButtons.length > 0;
2146
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col gap-8", children: [
2147
- hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
2252
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-col gap-8", children: [
2253
+ hasLinkButtons && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "grid items-start gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3", children: linkButtons.map((button) => {
2148
2254
  const attrs = button.attributes;
2149
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2255
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2150
2256
  DefaultButtonSocial,
2151
2257
  {
2152
2258
  showLabel: true,
@@ -2157,12 +2263,12 @@ function DefaultSettingsOidc({
2157
2263
  attrs.value
2158
2264
  );
2159
2265
  }) }),
2160
- hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(DefaultHorizontalDivider, {}) : null,
2266
+ hasUnlinkButtons && hasLinkButtons ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DefaultHorizontalDivider, {}) : null,
2161
2267
  unlinkButtons.map((button) => {
2162
2268
  if (button.attributes.node_type !== "input") {
2163
2269
  return null;
2164
2270
  }
2165
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(UnlinkRow, { button }, button.attributes.value);
2271
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(UnlinkRow, { button }, button.attributes.value);
2166
2272
  })
2167
2273
  ] });
2168
2274
  }
@@ -2184,12 +2290,12 @@ function UnlinkRow({ button }) {
2184
2290
  setClicked(false);
2185
2291
  }
2186
2292
  }, [isSubmitting, setClicked]);
2187
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex justify-between", children: [
2188
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-6", children: [
2189
- Logo ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(provider_logos_default.generic, { size: 32 }),
2190
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
2293
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex justify-between", children: [
2294
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center gap-6", children: [
2295
+ Logo ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Logo, { size: 32 }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(provider_logos_default.generic, { size: 32 }),
2296
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary", children: provider })
2191
2297
  ] }),
2192
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2298
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2193
2299
  "button",
2194
2300
  {
2195
2301
  ...attrs,
@@ -2198,7 +2304,7 @@ function UnlinkRow({ button }) {
2198
2304
  disabled: isSubmitting,
2199
2305
  className: "relative",
2200
2306
  title: `Unlink ${provider}`,
2201
- children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
2307
+ children: clicked ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2202
2308
  trash_default,
2203
2309
  {
2204
2310
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2211,9 +2317,9 @@ function UnlinkRow({ button }) {
2211
2317
  }
2212
2318
 
2213
2319
  // src/theme/default/components/settings/settings-passkey.tsx
2214
- var import_elements_react16 = require("@ory/elements-react");
2320
+ var import_elements_react17 = require("@ory/elements-react");
2215
2321
  var import_react_hook_form9 = require("react-hook-form");
2216
- var import_jsx_runtime60 = require("react/jsx-runtime");
2322
+ var import_jsx_runtime61 = require("react/jsx-runtime");
2217
2323
  function DefaultSettingsPasskey({
2218
2324
  triggerButton,
2219
2325
  removeButtons
@@ -2221,10 +2327,10 @@ function DefaultSettingsPasskey({
2221
2327
  const {
2222
2328
  formState: { isSubmitting }
2223
2329
  } = (0, import_react_hook_form9.useFormContext)();
2224
- const { Node: Node2 } = (0, import_elements_react16.useComponents)();
2330
+ const { Node: Node2 } = (0, import_elements_react17.useComponents)();
2225
2331
  const hasRemoveButtons = removeButtons.length > 0;
2226
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-col gap-8", children: [
2227
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2332
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-8", children: [
2333
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex max-w-[60%] items-end gap-3", children: triggerButton && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2228
2334
  Node2.Button,
2229
2335
  {
2230
2336
  node: triggerButton,
@@ -2232,38 +2338,38 @@ function DefaultSettingsPasskey({
2232
2338
  onClick: triggerButton.onClick
2233
2339
  }
2234
2340
  ) }),
2235
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-col gap-8", children: [
2236
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DefaultHorizontalDivider, {}),
2237
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2341
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-col gap-8", children: [
2342
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(DefaultHorizontalDivider, {}),
2343
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "flex flex-col gap-2", children: removeButtons.map((node, i) => {
2238
2344
  var _a, _b;
2239
2345
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2240
2346
  const addedAt = "added_at" in context ? context.added_at : null;
2241
2347
  const displayName = "display_name" in context ? context.display_name : null;
2242
2348
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2243
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
2349
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
2244
2350
  "div",
2245
2351
  {
2246
2352
  className: "flex justify-between gap-6 md:items-center",
2247
2353
  children: [
2248
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2249
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2354
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2355
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2250
2356
  passkey_default,
2251
2357
  {
2252
2358
  size: 32,
2253
2359
  className: "text-interface-foreground-default-primary"
2254
2360
  }
2255
2361
  ),
2256
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2257
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
2258
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2259
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2362
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2363
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
2364
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2365
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2260
2366
  ] }),
2261
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2367
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2262
2368
  dateStyle: "long"
2263
2369
  }).format(new Date(addedAt)) })
2264
2370
  ] })
2265
2371
  ] }),
2266
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2372
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2267
2373
  "button",
2268
2374
  {
2269
2375
  ...node.attributes,
@@ -2271,7 +2377,7 @@ function DefaultSettingsPasskey({
2271
2377
  onClick: node.onClick,
2272
2378
  disabled: isSubmitting,
2273
2379
  className: "relative",
2274
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
2380
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
2275
2381
  trash_default,
2276
2382
  {
2277
2383
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2291,25 +2397,25 @@ function DefaultSettingsPasskey({
2291
2397
 
2292
2398
  // src/theme/default/assets/icons/download.svg
2293
2399
  var React31 = __toESM(require("react"));
2294
- var import_jsx_runtime61 = require("react/jsx-runtime");
2400
+ var import_jsx_runtime62 = require("react/jsx-runtime");
2295
2401
  var SvgDownload = (props) => {
2296
2402
  var _a, _b;
2297
- return /* @__PURE__ */ (0, import_jsx_runtime61.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_runtime61.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
2403
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5m0 0 5-5m-5 5V4" }) });
2298
2404
  };
2299
2405
  var download_default = SvgDownload;
2300
2406
 
2301
2407
  // src/theme/default/assets/icons/refresh.svg
2302
2408
  var React32 = __toESM(require("react"));
2303
- var import_jsx_runtime62 = require("react/jsx-runtime");
2409
+ var import_jsx_runtime63 = require("react/jsx-runtime");
2304
2410
  var SvgRefresh = (props) => {
2305
2411
  var _a, _b;
2306
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: (props == null ? void 0 : props.width) ? props.width : (_a = props == null ? void 0 : props.size) != null ? _a : 20, height: (props == null ? void 0 : props.height) ? props.height : (_b = props == null ? void 0 : props.size) != null ? _b : 20, fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
2412
+ return /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime63.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4m-4 4a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }) });
2307
2413
  };
2308
2414
  var refresh_default = SvgRefresh;
2309
2415
 
2310
2416
  // src/theme/default/components/settings/settings-recovery-codes.tsx
2311
2417
  var import_react_hook_form10 = require("react-hook-form");
2312
- var import_jsx_runtime63 = require("react/jsx-runtime");
2418
+ var import_jsx_runtime64 = require("react/jsx-runtime");
2313
2419
  function DefaultSettingsRecoveryCodes({
2314
2420
  codes,
2315
2421
  regnerateButton,
@@ -2331,12 +2437,12 @@ function DefaultSettingsRecoveryCodes({
2331
2437
  element.click();
2332
2438
  };
2333
2439
  const hasCodes = codes.length >= 1;
2334
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col gap-8", children: [
2335
- codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(DefaultHorizontalDivider, {}),
2336
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex gap-4 justify-between", children: [
2337
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2338
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex gap-2", children: [
2339
- regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2440
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col gap-8", children: [
2441
+ codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(DefaultHorizontalDivider, {}),
2442
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex gap-4 justify-between", children: [
2443
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-interface-foreground-default-tertiary", children: revealButton && "Reveal recovery codes" }),
2444
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex gap-2", children: [
2445
+ regnerateButton && codes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2340
2446
  "button",
2341
2447
  {
2342
2448
  ...regnerateButton.attributes,
@@ -2345,7 +2451,7 @@ function DefaultSettingsRecoveryCodes({
2345
2451
  onClick: onRegenerate,
2346
2452
  disabled: isSubmitting,
2347
2453
  "data-loading": isSubmitting,
2348
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2454
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2349
2455
  refresh_default,
2350
2456
  {
2351
2457
  size: 24,
@@ -2354,7 +2460,7 @@ function DefaultSettingsRecoveryCodes({
2354
2460
  )
2355
2461
  }
2356
2462
  ),
2357
- revealButton && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_jsx_runtime63.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2463
+ revealButton && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_jsx_runtime64.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2358
2464
  "button",
2359
2465
  {
2360
2466
  ...revealButton.attributes,
@@ -2362,7 +2468,7 @@ function DefaultSettingsRecoveryCodes({
2362
2468
  className: "ml-auto",
2363
2469
  onClick: onReveal,
2364
2470
  title: "Reveal recovery codes",
2365
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2471
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2366
2472
  eye_default,
2367
2473
  {
2368
2474
  size: 24,
@@ -2371,7 +2477,7 @@ function DefaultSettingsRecoveryCodes({
2371
2477
  )
2372
2478
  }
2373
2479
  ) }),
2374
- hasCodes && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2480
+ hasCodes && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2375
2481
  "button",
2376
2482
  {
2377
2483
  onClick: onDownload,
@@ -2379,7 +2485,7 @@ function DefaultSettingsRecoveryCodes({
2379
2485
  className: "ml-auto",
2380
2486
  "data-testid": "ory/screen/settings/group/recovery_code/download",
2381
2487
  title: "Download recovery codes",
2382
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2488
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2383
2489
  download_default,
2384
2490
  {
2385
2491
  size: 24,
@@ -2390,32 +2496,32 @@ function DefaultSettingsRecoveryCodes({
2390
2496
  )
2391
2497
  ] })
2392
2498
  ] }),
2393
- hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
2499
+ hasCodes ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "rounded-general p-6 bg-interface-background-default-secondary border-interface-border-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
2394
2500
  "div",
2395
2501
  {
2396
2502
  className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 flex-wrap gap-4 text-sm text-interface-foreground-default-primary",
2397
2503
  "data-testid": "ory/screen/settings/group/recovery_code/codes",
2398
- children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { children: code }, code))
2504
+ children: codes.map((code) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { children: code }, code))
2399
2505
  }
2400
2506
  ) }) : null
2401
2507
  ] });
2402
2508
  }
2403
2509
 
2404
2510
  // src/theme/default/components/settings/settings-totp.tsx
2405
- var import_elements_react17 = require("@ory/elements-react");
2511
+ var import_elements_react18 = require("@ory/elements-react");
2406
2512
 
2407
2513
  // src/theme/default/assets/icons/qrcode.svg
2408
2514
  var React33 = __toESM(require("react"));
2409
- var import_jsx_runtime64 = require("react/jsx-runtime");
2515
+ var import_jsx_runtime65 = require("react/jsx-runtime");
2410
2516
  var SvgQrcode = (props) => {
2411
2517
  var _a, _b;
2412
- return /* @__PURE__ */ (0, import_jsx_runtime64.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_runtime64.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
2518
+ return /* @__PURE__ */ (0, import_jsx_runtime65.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_runtime65.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M9.333 22.667v.013m0-13.346v.013m13.333-.013v.013m0 9.32h-4v4m8-4v.013m-8 7.987h4m0-4h4v4m-21.333-20a1.333 1.333 0 0 1 1.333-1.333H12a1.333 1.333 0 0 1 1.333 1.333V12A1.334 1.334 0 0 1 12 13.334H6.666A1.334 1.334 0 0 1 5.333 12zm13.333 0A1.333 1.333 0 0 1 20 5.334h5.333a1.333 1.333 0 0 1 1.333 1.333V12a1.333 1.333 0 0 1-1.333 1.334H20A1.333 1.333 0 0 1 18.666 12zM5.333 20a1.333 1.333 0 0 1 1.333-1.333H12A1.333 1.333 0 0 1 13.333 20v5.334A1.333 1.333 0 0 1 12 26.667H6.666a1.333 1.333 0 0 1-1.333-1.334z" }) });
2413
2519
  };
2414
2520
  var qrcode_default = SvgQrcode;
2415
2521
 
2416
2522
  // src/theme/default/components/settings/settings-totp.tsx
2417
2523
  var import_react_hook_form11 = require("react-hook-form");
2418
- var import_jsx_runtime65 = require("react/jsx-runtime");
2524
+ var import_jsx_runtime66 = require("react/jsx-runtime");
2419
2525
  function DefaultSettingsTotp({
2420
2526
  totpImage,
2421
2527
  totpInput,
@@ -2423,7 +2529,7 @@ function DefaultSettingsTotp({
2423
2529
  totpUnlink,
2424
2530
  onUnlink
2425
2531
  }) {
2426
- const { Node: Node2, Card } = (0, import_elements_react17.useComponents)();
2532
+ const { Node: Node2, Card } = (0, import_elements_react18.useComponents)();
2427
2533
  const {
2428
2534
  formState: { isSubmitting }
2429
2535
  } = (0, import_react_hook_form11.useFormContext)();
@@ -2435,19 +2541,19 @@ function DefaultSettingsTotp({
2435
2541
  node_type: _ignoredNodeType,
2436
2542
  ...buttonAttrs
2437
2543
  } = totpUnlink.attributes;
2438
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2439
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Card.Divider, {}) }),
2440
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
2441
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(qrcode_default, { size: 32 }) }),
2442
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2443
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2544
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2545
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Card.Divider, {}) }),
2546
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "col-span-full flex items-center gap-6", children: [
2547
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-square size-8 ", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(qrcode_default, { size: 32 }) }),
2548
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mr-auto flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-primary", children: "Authenticator app" }) }),
2549
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2444
2550
  "button",
2445
2551
  {
2446
2552
  type: type === "button" ? "button" : "submit",
2447
2553
  ...buttonAttrs,
2448
2554
  onClick: onUnlink,
2449
2555
  disabled: isSubmitting,
2450
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2556
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2451
2557
  trash_default,
2452
2558
  {
2453
2559
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2460,9 +2566,9 @@ function DefaultSettingsTotp({
2460
2566
  ] });
2461
2567
  }
2462
2568
  if (totpImage && totpSecret && totpInput) {
2463
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2464
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(DefaultHorizontalDivider, {}) }),
2465
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2569
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2", children: [
2570
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "col-span-full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(DefaultHorizontalDivider, {}) }),
2571
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex justify-center rounded-cards bg-interface-background-default-secondary p-8", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "aspect-square h-44 rounded bg-[white]", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "-m-3 antialiased mix-blend-multiply", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2466
2572
  Node2.Image,
2467
2573
  {
2468
2574
  node: totpImage,
@@ -2471,13 +2577,13 @@ function DefaultSettingsTotp({
2471
2577
  }
2472
2578
  }
2473
2579
  ) }) }) }),
2474
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-6", children: [
2475
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2580
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-6", children: [
2581
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2476
2582
  Node2.Label,
2477
2583
  {
2478
2584
  node: totpSecret,
2479
2585
  attributes: totpSecret.attributes,
2480
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2586
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2481
2587
  Node2.Input,
2482
2588
  {
2483
2589
  node: totpSecret,
@@ -2492,12 +2598,12 @@ function DefaultSettingsTotp({
2492
2598
  )
2493
2599
  }
2494
2600
  ),
2495
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2601
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2496
2602
  Node2.Label,
2497
2603
  {
2498
2604
  attributes: totpInput.attributes,
2499
2605
  node: totpInput,
2500
- children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
2606
+ children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
2501
2607
  Node2.CodeInput,
2502
2608
  {
2503
2609
  node: totpInput,
@@ -2512,20 +2618,20 @@ function DefaultSettingsTotp({
2512
2618
  }
2513
2619
 
2514
2620
  // src/theme/default/components/settings/settings-webauthn.tsx
2515
- var import_elements_react18 = require("@ory/elements-react");
2621
+ var import_elements_react19 = require("@ory/elements-react");
2516
2622
 
2517
2623
  // src/theme/default/assets/icons/key.svg
2518
2624
  var React34 = __toESM(require("react"));
2519
- var import_jsx_runtime66 = require("react/jsx-runtime");
2625
+ var import_jsx_runtime67 = require("react/jsx-runtime");
2520
2626
  var SvgKey = (props) => {
2521
2627
  var _a, _b;
2522
- return /* @__PURE__ */ (0, import_jsx_runtime66.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_runtime66.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2628
+ return /* @__PURE__ */ (0, import_jsx_runtime67.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_runtime67.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M20 12h.013m2.06-6.876 4.803 4.803a3.836 3.836 0 0 1 0 5.425l-3.524 3.524a3.835 3.835 0 0 1-5.425 0l-.402-.401-8.744 8.744a2.67 2.67 0 0 1-1.652.77L6.896 28H5.333a1.334 1.334 0 0 1-1.324-1.177L4 26.667v-1.563c0-.626.22-1.232.623-1.712l.158-.173.552-.552H8V20h2.667v-2.667l2.858-2.858-.401-.402a3.835 3.835 0 0 1 0-5.425l3.524-3.524a3.835 3.835 0 0 1 5.425 0" }) });
2523
2629
  };
2524
2630
  var key_default = SvgKey;
2525
2631
 
2526
2632
  // src/theme/default/components/settings/settings-webauthn.tsx
2527
2633
  var import_react_hook_form12 = require("react-hook-form");
2528
- var import_jsx_runtime67 = require("react/jsx-runtime");
2634
+ var import_jsx_runtime68 = require("react/jsx-runtime");
2529
2635
  function DefaultSettingsWebauthn({
2530
2636
  nameInput,
2531
2637
  triggerButton,
@@ -2534,16 +2640,16 @@ function DefaultSettingsWebauthn({
2534
2640
  const {
2535
2641
  formState: { isSubmitting }
2536
2642
  } = (0, import_react_hook_form12.useFormContext)();
2537
- const { Node: Node2, Card } = (0, import_elements_react18.useComponents)();
2643
+ const { Node: Node2, Card } = (0, import_elements_react19.useComponents)();
2538
2644
  const hasRemoveButtons = removeButtons.length > 0;
2539
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-8", children: [
2540
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2541
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2645
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-8", children: [
2646
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex md:max-w-96 sm:items-end gap-3 flex-col sm:flex-row", children: [
2647
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2542
2648
  Node2.Label,
2543
2649
  {
2544
2650
  node: nameInput,
2545
2651
  attributes: nameInput.attributes,
2546
- children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2652
+ children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2547
2653
  Node2.Input,
2548
2654
  {
2549
2655
  node: nameInput,
@@ -2552,7 +2658,7 @@ function DefaultSettingsWebauthn({
2552
2658
  )
2553
2659
  }
2554
2660
  ) }),
2555
- triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2661
+ triggerButton ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2556
2662
  Node2.Button,
2557
2663
  {
2558
2664
  node: triggerButton,
@@ -2561,38 +2667,38 @@ function DefaultSettingsWebauthn({
2561
2667
  }
2562
2668
  ) : null
2563
2669
  ] }),
2564
- hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-8", children: [
2565
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Card.Divider, {}),
2566
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2670
+ hasRemoveButtons ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-8", children: [
2671
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Card.Divider, {}),
2672
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex flex-col gap-4", children: removeButtons.map((node, i) => {
2567
2673
  var _a, _b;
2568
2674
  const context = (_b = (_a = node.meta.label) == null ? void 0 : _a.context) != null ? _b : {};
2569
2675
  const addedAt = "added_at" in context ? context.added_at : null;
2570
2676
  const displayName = "display_name" in context ? context.display_name : null;
2571
2677
  const keyId = "value" in node.attributes ? node.attributes.value : null;
2572
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
2678
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
2573
2679
  "div",
2574
2680
  {
2575
2681
  className: "flex justify-between gap-6 md:items-center",
2576
2682
  children: [
2577
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2578
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2683
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex gap-2 items-center flex-1 truncate", children: [
2684
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2579
2685
  key_default,
2580
2686
  {
2581
2687
  size: 32,
2582
2688
  className: "text-interface-foreground-default-primary"
2583
2689
  }
2584
2690
  ),
2585
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2586
- /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
2587
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2588
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2691
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex-1 flex-col md:flex-row md:items-center flex md:justify-between gap-4 truncate", children: [
2692
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex-1 flex-col truncate", children: [
2693
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-sm font-medium text-interface-foreground-default-secondary truncate", children: displayName }),
2694
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm text-interface-foreground-default-tertiary hidden sm:block truncate", children: keyId })
2589
2695
  ] }),
2590
- addedAt && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2696
+ addedAt && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "text-sm text-interface-foreground-default-tertiary", children: new Intl.DateTimeFormat(void 0, {
2591
2697
  dateStyle: "long"
2592
2698
  }).format(new Date(addedAt)) })
2593
2699
  ] })
2594
2700
  ] }),
2595
- /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2701
+ /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2596
2702
  "button",
2597
2703
  {
2598
2704
  ...node.attributes,
@@ -2600,7 +2706,7 @@ function DefaultSettingsWebauthn({
2600
2706
  onClick: node.onClick,
2601
2707
  disabled: isSubmitting,
2602
2708
  className: "relative",
2603
- children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
2709
+ children: isSubmitting ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Spinner, { className: "relative" }) : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
2604
2710
  trash_default,
2605
2711
  {
2606
2712
  className: "text-button-link-default-secondary hover:text-button-link-default-secondary-hover",
@@ -2619,34 +2725,34 @@ function DefaultSettingsWebauthn({
2619
2725
  }
2620
2726
 
2621
2727
  // src/theme/default/components/card/auth-method-list-container.tsx
2622
- var import_jsx_runtime68 = require("react/jsx-runtime");
2728
+ var import_jsx_runtime69 = require("react/jsx-runtime");
2623
2729
  function DefaultAuthMethodListContainer({
2624
2730
  children
2625
2731
  }) {
2626
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "grid grid-cols-1 gap-2", children });
2627
2733
  }
2628
2734
 
2629
2735
  // src/theme/default/components/form/captcha.tsx
2630
- var import_client_fetch15 = require("@ory/client-fetch");
2736
+ var import_client_fetch16 = require("@ory/client-fetch");
2631
2737
  var import_react_turnstile = require("@marsidev/react-turnstile");
2632
2738
  var import_react11 = require("react");
2633
2739
  var import_react_hook_form13 = require("react-hook-form");
2634
- var import_jsx_runtime69 = require("react/jsx-runtime");
2740
+ var import_jsx_runtime70 = require("react/jsx-runtime");
2635
2741
  var DefaultCaptcha = ({ node }) => {
2636
2742
  const { setValue } = (0, import_react_hook_form13.useFormContext)();
2637
2743
  const ref = (0, import_react11.useRef)();
2638
2744
  const nodes = [];
2639
- if ((0, import_client_fetch15.isUiNodeInputAttributes)(node.attributes)) {
2745
+ if ((0, import_client_fetch16.isUiNodeInputAttributes)(node.attributes)) {
2640
2746
  if (node.attributes.name === "transient_payload.captcha_turnstile_response") {
2641
2747
  nodes.push(
2642
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DefaultInput, { node, attributes: node.attributes }, 1)
2748
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(DefaultInput, { node, attributes: node.attributes }, 1)
2643
2749
  );
2644
2750
  }
2645
2751
  }
2646
- if ((0, import_client_fetch15.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
2752
+ if ((0, import_client_fetch16.isUiNodeInputAttributes)(node.attributes) && node.attributes.name === "captcha_turnstile_options") {
2647
2753
  const options = JSON.parse(node.attributes.value);
2648
2754
  nodes.push(
2649
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
2755
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
2650
2756
  import_react_turnstile.Turnstile,
2651
2757
  {
2652
2758
  ref,
@@ -2673,9 +2779,83 @@ var DefaultCaptcha = ({ node }) => {
2673
2779
  return nodes;
2674
2780
  };
2675
2781
 
2782
+ // src/theme/default/assets/icons/personal.svg
2783
+ var React35 = __toESM(require("react"));
2784
+ var import_jsx_runtime71 = require("react/jsx-runtime");
2785
+ var SvgPersonal = (props) => {
2786
+ var _a, _b;
2787
+ return /* @__PURE__ */ (0, import_jsx_runtime71.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_runtime71.jsx)("path", { stroke: "#0F172A", 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" }) });
2788
+ };
2789
+ var personal_default = SvgPersonal;
2790
+
2791
+ // src/theme/default/assets/icons/message.svg
2792
+ var React36 = __toESM(require("react"));
2793
+ var import_jsx_runtime72 = require("react/jsx-runtime");
2794
+ var SvgMessage = (props) => {
2795
+ var _a, _b;
2796
+ return /* @__PURE__ */ (0, import_jsx_runtime72.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_runtime72.jsx)("path", { stroke: "#000", 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" }) });
2797
+ };
2798
+ var message_default = SvgMessage;
2799
+
2800
+ // src/theme/default/assets/icons/phone.svg
2801
+ var React37 = __toESM(require("react"));
2802
+ var import_jsx_runtime73 = require("react/jsx-runtime");
2803
+ var SvgPhone = (props) => {
2804
+ var _a, _b;
2805
+ return /* @__PURE__ */ (0, import_jsx_runtime73.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_runtime73.jsx)("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", d: "M5 4.325h4l2 5-2.5 1.5a11 11 0 0 0 5 5l1.5-2.5 5 2v4a2 2 0 0 1-2 2 16 16 0 0 1-15-15 2 2 0 0 1 2-2" }) });
2806
+ };
2807
+ var phone_default = SvgPhone;
2808
+
2809
+ // src/theme/default/components/form/consent-scope-checkbox.tsx
2810
+ var import_react_intl13 = require("react-intl");
2811
+ var Switch = __toESM(require("@radix-ui/react-switch"));
2812
+ var import_jsx_runtime74 = require("react/jsx-runtime");
2813
+ var ScopeIcons = {
2814
+ openid: personal_default,
2815
+ offline_access: personal_default,
2816
+ profile: personal_default,
2817
+ email: message_default,
2818
+ phone: phone_default
2819
+ };
2820
+ function DefaultConsentScopeCheckbox({
2821
+ attributes,
2822
+ onCheckedChange
2823
+ }) {
2824
+ var _a;
2825
+ const intl = (0, import_react_intl13.useIntl)();
2826
+ const Icon = (_a = ScopeIcons[attributes.value]) != null ? _a : personal_default;
2827
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2828
+ ListItem,
2829
+ {
2830
+ as: "label",
2831
+ icon: Icon,
2832
+ title: intl.formatMessage({
2833
+ id: `consent.scope.${attributes.value}.title`,
2834
+ defaultMessage: attributes.value
2835
+ }),
2836
+ description: intl.formatMessage({
2837
+ id: `consent.scope.${attributes.value}.description`,
2838
+ defaultMessage: []
2839
+ }),
2840
+ className: "col-span-2",
2841
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
2842
+ Switch.Root,
2843
+ {
2844
+ className: "relative w-7 h-4 bg-toggle-background-default rounded-identifier border-toggle-border-default border p-[3px] data-[state=checked]:bg-toggle-background-checked transition-all data-[state=checked]:border-toggle-border-checked",
2845
+ "data-testid": `ory/screen/consent/scope-checkbox`,
2846
+ value: attributes.value,
2847
+ onCheckedChange,
2848
+ defaultChecked: true,
2849
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Switch.Thumb, { className: "size-2 block bg-toggle-foreground-default rounded-identifier data-[state=checked]:bg-toggle-foreground-checked transition-all data-[state=checked]:translate-x-3" })
2850
+ }
2851
+ )
2852
+ }
2853
+ );
2854
+ }
2855
+
2676
2856
  // src/theme/default/components/default-components.tsx
2677
2857
  function getOryComponents(overrides) {
2678
- 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;
2858
+ 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;
2679
2859
  return {
2680
2860
  Card: {
2681
2861
  Root: (_b = (_a = overrides == null ? void 0 : overrides.Card) == null ? void 0 : _a.Root) != null ? _b : DefaultCard,
@@ -2700,174 +2880,178 @@ function getOryComponents(overrides) {
2700
2880
  Checkbox: (_J = (_I = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _I.Checkbox) != null ? _J : DefaultCheckbox,
2701
2881
  Text: (_L = (_K = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _K.Text) != null ? _L : DefaultText,
2702
2882
  Anchor: (_N = (_M = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _M.Anchor) != null ? _N : DefaultLinkButton,
2703
- Captcha: (_P = (_O = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _O.Captcha) != null ? _P : DefaultCaptcha
2883
+ Captcha: (_P = (_O = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _O.Captcha) != null ? _P : DefaultCaptcha,
2884
+ ConsentScopeCheckbox: (_R = (_Q = overrides == null ? void 0 : overrides.Node) == null ? void 0 : _Q.ConsentScopeCheckbox) != null ? _R : DefaultConsentScopeCheckbox
2704
2885
  },
2705
2886
  Form: {
2706
- Root: (_R = (_Q = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Q.Root) != null ? _R : DefaultFormContainer,
2707
- Group: (_T = (_S = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _S.Group) != null ? _T : DefaultGroupContainer,
2708
- OidcRoot: (_V = (_U = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _U.OidcRoot) != null ? _V : DefaultSocialButtonContainer,
2709
- RecoveryCodesSettings: (_X = (_W = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _W.RecoveryCodesSettings) != null ? _X : DefaultSettingsRecoveryCodes,
2710
- TotpSettings: (_Z = (_Y = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Y.TotpSettings) != null ? _Z : DefaultSettingsTotp,
2711
- OidcSettings: (_$ = (__ = overrides == null ? void 0 : overrides.Form) == null ? void 0 : __.OidcSettings) != null ? _$ : DefaultSettingsOidc,
2712
- WebauthnSettings: (_ba = (_aa = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _aa.WebauthnSettings) != null ? _ba : DefaultSettingsWebauthn,
2713
- PasskeySettings: (_da = (_ca = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _ca.PasskeySettings) != null ? _da : DefaultSettingsPasskey
2887
+ Root: (_T = (_S = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _S.Root) != null ? _T : DefaultFormContainer,
2888
+ Group: (_V = (_U = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _U.Group) != null ? _V : DefaultGroupContainer,
2889
+ OidcRoot: (_X = (_W = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _W.OidcRoot) != null ? _X : DefaultSocialButtonContainer,
2890
+ RecoveryCodesSettings: (_Z = (_Y = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _Y.RecoveryCodesSettings) != null ? _Z : DefaultSettingsRecoveryCodes,
2891
+ TotpSettings: (_$ = (__ = overrides == null ? void 0 : overrides.Form) == null ? void 0 : __.TotpSettings) != null ? _$ : DefaultSettingsTotp,
2892
+ OidcSettings: (_ba = (_aa = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _aa.OidcSettings) != null ? _ba : DefaultSettingsOidc,
2893
+ WebauthnSettings: (_da = (_ca = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _ca.WebauthnSettings) != null ? _da : DefaultSettingsWebauthn,
2894
+ PasskeySettings: (_fa = (_ea = overrides == null ? void 0 : overrides.Form) == null ? void 0 : _ea.PasskeySettings) != null ? _fa : DefaultSettingsPasskey
2714
2895
  },
2715
2896
  Message: {
2716
- Root: (_fa = (_ea = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ea.Root) != null ? _fa : DefaultMessageContainer,
2717
- Content: (_ha = (_ga = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ga.Content) != null ? _ha : DefaultMessage
2897
+ Root: (_ha = (_ga = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ga.Root) != null ? _ha : DefaultMessageContainer,
2898
+ Content: (_ja = (_ia = overrides == null ? void 0 : overrides.Message) == null ? void 0 : _ia.Content) != null ? _ja : DefaultMessage
2718
2899
  },
2719
2900
  Page: {
2720
- Header: (_ja = (_ia = overrides == null ? void 0 : overrides.Page) == null ? void 0 : _ia.Header) != null ? _ja : DefaultPageHeader
2901
+ Header: (_la = (_ka = overrides == null ? void 0 : overrides.Page) == null ? void 0 : _ka.Header) != null ? _la : DefaultPageHeader
2721
2902
  }
2722
2903
  };
2723
2904
  }
2724
2905
 
2725
2906
  // src/theme/default/flows/error.tsx
2726
- var import_client_fetch34 = require("@ory/client-fetch");
2907
+ var import_client_fetch35 = require("@ory/client-fetch");
2727
2908
  var import_react15 = require("react");
2728
2909
 
2729
2910
  // src/context/intl-context.tsx
2730
- var import_react_intl20 = require("react-intl");
2911
+ var import_react_intl21 = require("react-intl");
2731
2912
 
2732
2913
  // src/context/flow-context.tsx
2733
2914
  var import_react13 = require("react");
2734
2915
 
2735
2916
  // src/context/form-state.ts
2736
- var import_client_fetch17 = require("@ory/client-fetch");
2917
+ var import_client_fetch18 = require("@ory/client-fetch");
2737
2918
  var import_react12 = require("react");
2738
2919
 
2739
2920
  // src/components/card/card-two-step.utils.ts
2740
- var import_client_fetch16 = require("@ory/client-fetch");
2921
+ var import_client_fetch17 = require("@ory/client-fetch");
2741
2922
 
2742
2923
  // src/context/flow-context.tsx
2743
- var import_jsx_runtime70 = require("react/jsx-runtime");
2924
+ var import_jsx_runtime75 = require("react/jsx-runtime");
2744
2925
  var OryFlowContext = (0, import_react13.createContext)(null);
2745
2926
 
2746
2927
  // src/context/provider.tsx
2747
- var import_jsx_runtime71 = require("react/jsx-runtime");
2928
+ var import_jsx_runtime76 = require("react/jsx-runtime");
2748
2929
 
2749
2930
  // src/components/card/header.tsx
2750
- var import_jsx_runtime72 = require("react/jsx-runtime");
2931
+ var import_jsx_runtime77 = require("react/jsx-runtime");
2751
2932
 
2752
2933
  // src/components/form/form-provider.tsx
2753
- var import_client_fetch20 = require("@ory/client-fetch");
2934
+ var import_client_fetch21 = require("@ory/client-fetch");
2754
2935
  var import_react_hook_form14 = require("react-hook-form");
2755
2936
 
2756
2937
  // src/components/form/form-helpers.ts
2757
- var import_client_fetch18 = require("@ory/client-fetch");
2938
+ var import_client_fetch19 = require("@ory/client-fetch");
2758
2939
 
2759
2940
  // src/components/form/form-resolver.ts
2760
- var import_client_fetch19 = require("@ory/client-fetch");
2941
+ var import_client_fetch20 = require("@ory/client-fetch");
2761
2942
 
2762
2943
  // src/components/form/form-provider.tsx
2763
- var import_jsx_runtime73 = require("react/jsx-runtime");
2944
+ var import_jsx_runtime78 = require("react/jsx-runtime");
2764
2945
 
2765
2946
  // src/components/card/card.tsx
2766
- var import_jsx_runtime74 = require("react/jsx-runtime");
2947
+ var import_jsx_runtime79 = require("react/jsx-runtime");
2767
2948
 
2768
2949
  // src/components/card/footer.tsx
2769
- var import_jsx_runtime75 = require("react/jsx-runtime");
2950
+ var import_jsx_runtime80 = require("react/jsx-runtime");
2770
2951
 
2771
2952
  // src/components/card/content.tsx
2772
- var import_jsx_runtime76 = require("react/jsx-runtime");
2953
+ var import_jsx_runtime81 = require("react/jsx-runtime");
2773
2954
 
2774
2955
  // src/components/card/card-two-step.tsx
2775
- var import_client_fetch31 = require("@ory/client-fetch");
2956
+ var import_client_fetch32 = require("@ory/client-fetch");
2776
2957
  var import_react_hook_form19 = require("react-hook-form");
2777
2958
 
2778
2959
  // src/components/form/form.tsx
2779
- var import_client_fetch27 = require("@ory/client-fetch");
2960
+ var import_client_fetch28 = require("@ory/client-fetch");
2780
2961
  var import_react_hook_form16 = require("react-hook-form");
2781
- var import_react_intl13 = require("react-intl");
2962
+ var import_react_intl14 = require("react-intl");
2782
2963
 
2783
2964
  // src/components/form/useOryFormSubmit.ts
2784
- var import_client_fetch26 = require("@ory/client-fetch");
2965
+ var import_client_fetch27 = require("@ory/client-fetch");
2785
2966
  var import_react_hook_form15 = require("react-hook-form");
2786
2967
 
2787
2968
  // src/util/onSubmitLogin.ts
2788
- var import_client_fetch21 = require("@ory/client-fetch");
2969
+ var import_client_fetch22 = require("@ory/client-fetch");
2789
2970
 
2790
2971
  // src/util/onSubmitRecovery.ts
2791
- var import_client_fetch22 = require("@ory/client-fetch");
2972
+ var import_client_fetch23 = require("@ory/client-fetch");
2792
2973
 
2793
2974
  // src/util/onSubmitRegistration.ts
2794
- var import_client_fetch23 = require("@ory/client-fetch");
2975
+ var import_client_fetch24 = require("@ory/client-fetch");
2795
2976
 
2796
2977
  // src/util/onSubmitSettings.ts
2797
- var import_client_fetch24 = require("@ory/client-fetch");
2978
+ var import_client_fetch25 = require("@ory/client-fetch");
2798
2979
 
2799
2980
  // src/util/onSubmitVerification.ts
2800
- var import_client_fetch25 = require("@ory/client-fetch");
2981
+ var import_client_fetch26 = require("@ory/client-fetch");
2801
2982
 
2802
2983
  // src/components/form/form.tsx
2803
- var import_jsx_runtime77 = require("react/jsx-runtime");
2984
+ var import_jsx_runtime82 = require("react/jsx-runtime");
2804
2985
 
2805
2986
  // src/components/form/messages.tsx
2806
- var import_jsx_runtime78 = require("react/jsx-runtime");
2987
+ var import_jsx_runtime83 = require("react/jsx-runtime");
2807
2988
 
2808
2989
  // src/components/form/nodes/input.tsx
2809
- var import_client_fetch28 = require("@ory/client-fetch");
2990
+ var import_client_fetch29 = require("@ory/client-fetch");
2810
2991
  var import_react14 = require("react");
2811
2992
  var import_react_hook_form17 = require("react-hook-form");
2812
- var import_jsx_runtime79 = require("react/jsx-runtime");
2993
+ var import_jsx_runtime84 = require("react/jsx-runtime");
2813
2994
 
2814
2995
  // src/components/form/nodes/node.tsx
2815
- var import_client_fetch29 = require("@ory/client-fetch");
2816
- var import_jsx_runtime80 = require("react/jsx-runtime");
2996
+ var import_client_fetch30 = require("@ory/client-fetch");
2997
+ var import_jsx_runtime85 = require("react/jsx-runtime");
2817
2998
 
2818
2999
  // src/components/form/social.tsx
2819
- var import_client_fetch30 = require("@ory/client-fetch");
3000
+ var import_client_fetch31 = require("@ory/client-fetch");
2820
3001
  var import_react_hook_form18 = require("react-hook-form");
2821
- var import_jsx_runtime81 = require("react/jsx-runtime");
3002
+ var import_jsx_runtime86 = require("react/jsx-runtime");
2822
3003
 
2823
3004
  // src/components/card/card-two-step.tsx
2824
- var import_jsx_runtime82 = require("react/jsx-runtime");
3005
+ var import_jsx_runtime87 = require("react/jsx-runtime");
2825
3006
 
2826
3007
  // src/components/form/groups.tsx
2827
- var import_jsx_runtime83 = require("react/jsx-runtime");
3008
+ var import_jsx_runtime88 = require("react/jsx-runtime");
2828
3009
 
2829
3010
  // src/components/form/section.tsx
2830
3011
  var import_react_hook_form20 = require("react-hook-form");
2831
- var import_jsx_runtime84 = require("react/jsx-runtime");
3012
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3013
+
3014
+ // src/components/card/card-consent.tsx
3015
+ var import_jsx_runtime90 = require("react/jsx-runtime");
2832
3016
 
2833
3017
  // src/components/generic/divider.tsx
2834
- var import_client_fetch32 = require("@ory/client-fetch");
2835
- var import_jsx_runtime85 = require("react/jsx-runtime");
3018
+ var import_client_fetch33 = require("@ory/client-fetch");
3019
+ var import_jsx_runtime91 = require("react/jsx-runtime");
2836
3020
 
2837
3021
  // src/components/generic/page-header.tsx
2838
- var import_jsx_runtime86 = require("react/jsx-runtime");
3022
+ var import_jsx_runtime92 = require("react/jsx-runtime");
2839
3023
 
2840
3024
  // src/components/settings/settings-card.tsx
2841
- var import_client_fetch33 = require("@ory/client-fetch");
2842
- var import_react_intl19 = require("react-intl");
3025
+ var import_client_fetch34 = require("@ory/client-fetch");
3026
+ var import_react_intl20 = require("react-intl");
2843
3027
 
2844
3028
  // src/components/settings/oidc-settings.tsx
2845
- var import_react_intl14 = require("react-intl");
3029
+ var import_react_intl15 = require("react-intl");
2846
3030
  var import_react_hook_form21 = require("react-hook-form");
2847
- var import_jsx_runtime87 = require("react/jsx-runtime");
3031
+ var import_jsx_runtime93 = require("react/jsx-runtime");
2848
3032
 
2849
3033
  // src/components/settings/passkey-settings.tsx
2850
3034
  var import_react_hook_form22 = require("react-hook-form");
2851
- var import_react_intl15 = require("react-intl");
2852
- var import_jsx_runtime88 = require("react/jsx-runtime");
3035
+ var import_react_intl16 = require("react-intl");
3036
+ var import_jsx_runtime94 = require("react/jsx-runtime");
2853
3037
 
2854
3038
  // src/components/settings/recovery-codes-settings.tsx
2855
- var import_react_intl16 = require("react-intl");
3039
+ var import_react_intl17 = require("react-intl");
2856
3040
  var import_react_hook_form23 = require("react-hook-form");
2857
- var import_jsx_runtime89 = require("react/jsx-runtime");
3041
+ var import_jsx_runtime95 = require("react/jsx-runtime");
2858
3042
 
2859
3043
  // src/components/settings/totp-settings.tsx
2860
3044
  var import_react_hook_form24 = require("react-hook-form");
2861
- var import_react_intl17 = require("react-intl");
2862
- var import_jsx_runtime90 = require("react/jsx-runtime");
3045
+ var import_react_intl18 = require("react-intl");
3046
+ var import_jsx_runtime96 = require("react/jsx-runtime");
2863
3047
 
2864
3048
  // src/components/settings/webauthn-settings.tsx
2865
3049
  var import_react_hook_form25 = require("react-hook-form");
2866
- var import_react_intl18 = require("react-intl");
2867
- var import_jsx_runtime91 = require("react/jsx-runtime");
3050
+ var import_react_intl19 = require("react-intl");
3051
+ var import_jsx_runtime97 = require("react/jsx-runtime");
2868
3052
 
2869
3053
  // src/components/settings/settings-card.tsx
2870
- var import_jsx_runtime92 = require("react/jsx-runtime");
3054
+ var import_jsx_runtime98 = require("react/jsx-runtime");
2871
3055
 
2872
3056
  // src/locales/en.json
2873
3057
  var en_default = {
@@ -3132,6 +3316,20 @@ var en_default = {
3132
3316
  "property.username": "username",
3133
3317
  "property.identifier": "identifier",
3134
3318
  "property.code": "code",
3319
+ "consent.title": "Authorize {party}",
3320
+ "consent.subtitle": "A third party application wants to access information associated with your account {identifier}.",
3321
+ "consent.scope.openid.title": "Identity",
3322
+ "consent.scope.openid.description": "Allows the application to verify your identity. This is required for authentication and a trusted login experience.",
3323
+ "consent.scope.offline_access.title": "Offline Access",
3324
+ "consent.scope.offline_access.description": "Allows this application to keep you signed in even when you're not actively using it.",
3325
+ "consent.scope.profile.title": "Profile Information",
3326
+ "consent.scope.profile.description": "Allows access to your basic profile details, including your username, first name, and last name.",
3327
+ "consent.scope.email.title": "Email Address",
3328
+ "consent.scope.email.description": "Retrieve your email address and its verification status.",
3329
+ "consent.scope.address.title": "Physical Address",
3330
+ "consent.scope.address.description": "Access your postal address.",
3331
+ "consent.scope.phone.title": "Phone Number",
3332
+ "consent.scope.phone.description": "Retrieve your phone number and its verification status.",
3135
3333
  "error.title.what-happened": "What happened?",
3136
3334
  "error.title.what-can-i-do": "What can I do?",
3137
3335
  "error.instructions": "Please try again in a few minutes or contact the website operator.",
@@ -3403,6 +3601,20 @@ var de_default = {
3403
3601
  "property.phone": "Telefon",
3404
3602
  "property.code": "Code",
3405
3603
  "property.username": "Benutzername",
3604
+ "consent.title": "Autorisieren {party}",
3605
+ "consent.subtitle": "Eine Drittanbieteranwendung m\xF6chte auf Informationen zugreifen, die mit Ihrem Konto {identifier} verkn\xFCpft sind.",
3606
+ "consent.scope.openid.title": "Identit\xE4t",
3607
+ "consent.scope.openid.description": "Erm\xF6glicht der Anwendung, Ihre Identit\xE4t zu \xFCberpr\xFCfen. Dies ist f\xFCr die Authentifizierung und eine vertrauensw\xFCrdige Login-Erfahrung erforderlich.",
3608
+ "consent.scope.offline_access.title": "Offline-Zugriff",
3609
+ "consent.scope.offline_access.description": "Erm\xF6glicht dieser Anwendung, Sie angemeldet zu lassen, auch wenn Sie sie nicht aktiv nutzen.",
3610
+ "consent.scope.profile.title": "Profilinformationen",
3611
+ "consent.scope.profile.description": "Erm\xF6glicht den Zugriff auf Ihre grundlegenden Profildetails, einschlie\xDFlich Ihres Benutzernamens, Vornamens und Nachnamens.",
3612
+ "consent.scope.email.title": "E-Mail-Adresse",
3613
+ "consent.scope.email.description": "Erm\xF6glicht den Abruf Ihrer E-Mail-Adresse und deren \xDCberpr\xFCfungsstatus.",
3614
+ "consent.scope.address.title": "Physische Adresse",
3615
+ "consent.scope.address.description": "Erm\xF6glicht den Zugriff auf Ihre Postanschrift.",
3616
+ "consent.scope.phone.title": "Telefonnummer",
3617
+ "consent.scope.phone.description": "Erm\xF6glicht den Abruf Ihrer Telefonnummer und deren \xDCberpr\xFCfungsstatus.",
3406
3618
  "error.title.what-happened": "Was ist passiert?",
3407
3619
  "error.footer.copy": "Kopieren",
3408
3620
  "error.footer.text": "Bitte f\xFCgen Sie bei der Meldung dieses Fehlers die folgenden Informationen hinzu:",
@@ -3674,6 +3886,20 @@ var es_default = {
3674
3886
  "property.password": "",
3675
3887
  "property.phone": "",
3676
3888
  "property.username": "",
3889
+ "consent.title": "Autorizar {party}",
3890
+ "consent.subtitle": "Una aplicaci\xF3n de terceros quiere acceder a la informaci\xF3n asociada a su cuenta {identifier}.",
3891
+ "consent.scope.openid.title": "Identidad",
3892
+ "consent.scope.openid.description": "Permite que la aplicaci\xF3n verifique su identidad. Esto es necesario para la autenticaci\xF3n y una experiencia de inicio de sesi\xF3n confiable.",
3893
+ "consent.scope.offline_access.title": "Acceso sin conexi\xF3n",
3894
+ "consent.scope.offline_access.description": "Permite que esta aplicaci\xF3n le mantenga conectado incluso cuando no la est\xE9 utilizando activamente.",
3895
+ "consent.scope.profile.title": "Informaci\xF3n del perfil",
3896
+ "consent.scope.profile.description": "Permite el acceso a los detalles b\xE1sicos de su perfil, incluyendo su nombre de usuario, nombre y apellido.",
3897
+ "consent.scope.email.title": "Direcci\xF3n de correo electr\xF3nico",
3898
+ "consent.scope.email.description": "Recupere su direcci\xF3n de correo electr\xF3nico y su estado de verificaci\xF3n.",
3899
+ "consent.scope.address.title": "Direcci\xF3n f\xEDsica",
3900
+ "consent.scope.address.description": "Acceda a su direcci\xF3n postal.",
3901
+ "consent.scope.phone.title": "N\xFAmero de tel\xE9fono",
3902
+ "consent.scope.phone.description": "Recupere su n\xFAmero de tel\xE9fono y su estado de verificaci\xF3n.",
3677
3903
  "error.action.go-back": "",
3678
3904
  "error.footer.copy": "",
3679
3905
  "error.footer.text": "",
@@ -3945,6 +4171,20 @@ var fr_default = {
3945
4171
  "property.password": "",
3946
4172
  "property.phone": "",
3947
4173
  "property.username": "",
4174
+ "consent.title": "Autoriser {party}",
4175
+ "consent.subtitle": "Une application tierce souhaite acc\xE9der aux informations associ\xE9es \xE0 votre compte {identifier}.",
4176
+ "consent.scope.openid.title": "Identit\xE9",
4177
+ "consent.scope.openid.description": "Permet \xE0 l'application de v\xE9rifier votre identit\xE9. Cela est n\xE9cessaire pour l'authentification et une exp\xE9rience de connexion fiable.",
4178
+ "consent.scope.offline_access.title": "Acc\xE8s hors ligne",
4179
+ "consent.scope.offline_access.description": "Permet \xE0 cette application de vous maintenir connect\xE9 m\xEAme lorsque vous ne l'utilisez pas activement.",
4180
+ "consent.scope.profile.title": "Informations de profil",
4181
+ "consent.scope.profile.description": "Permet l'acc\xE8s aux d\xE9tails de base de votre profil, y compris votre nom d'utilisateur, pr\xE9nom et nom.",
4182
+ "consent.scope.email.title": "Adresse e-mail",
4183
+ "consent.scope.email.description": "R\xE9cup\xE8re votre adresse e-mail et son statut de v\xE9rification.",
4184
+ "consent.scope.address.title": "Adresse physique",
4185
+ "consent.scope.address.description": "Acc\xE8de \xE0 votre adresse postale.",
4186
+ "consent.scope.phone.title": "Num\xE9ro de t\xE9l\xE9phone",
4187
+ "consent.scope.phone.description": "R\xE9cup\xE8re votre num\xE9ro de t\xE9l\xE9phone et son statut de v\xE9rification.",
3948
4188
  "error.action.go-back": "",
3949
4189
  "error.footer.copy": "",
3950
4190
  "error.footer.text": "",
@@ -4216,6 +4456,20 @@ var nl_default = {
4216
4456
  "property.password": "",
4217
4457
  "property.phone": "",
4218
4458
  "property.username": "",
4459
+ "consent.title": "Autoriseren {party}",
4460
+ "consent.subtitle": "Een derde partij applicatie wil toegang tot informatie die aan uw account {identifier} is gekoppeld.",
4461
+ "consent.scope.openid.title": "Identiteit",
4462
+ "consent.scope.openid.description": "Stelt de applicatie in staat uw identiteit te verifi\xEBren. Dit is vereist voor authenticatie en een betrouwbare inlogervaring.",
4463
+ "consent.scope.offline_access.title": "Offline toegang",
4464
+ "consent.scope.offline_access.description": "Stelt deze applicatie in staat u ingelogd te houden, zelfs wanneer u deze niet actief gebruikt.",
4465
+ "consent.scope.profile.title": "Profielinformatie",
4466
+ "consent.scope.profile.description": "Geeft toegang tot uw basisprofielgegevens, inclusief uw gebruikersnaam, voornaam en achternaam.",
4467
+ "consent.scope.email.title": "E-mailadres",
4468
+ "consent.scope.email.description": "Haal uw e-mailadres en de verificatiestatus ervan op.",
4469
+ "consent.scope.address.title": "Fysiek adres",
4470
+ "consent.scope.address.description": "Toegang tot uw postadres.",
4471
+ "consent.scope.phone.title": "Telefoonnummer",
4472
+ "consent.scope.phone.description": "Haal uw telefoonnummer en de verificatiestatus ervan op.",
4219
4473
  "error.action.go-back": "",
4220
4474
  "error.footer.copy": "",
4221
4475
  "error.footer.text": "",
@@ -4487,6 +4741,20 @@ var pl_default = {
4487
4741
  "property.phone": "",
4488
4742
  "property.username": "",
4489
4743
  "property.identifier": "",
4744
+ "consent.title": "Autoryzuj {party}",
4745
+ "consent.subtitle": "Aplikacja trzeciej strony chce uzyska\u0107 dost\u0119p do informacji powi\u0105zanych z Twoim kontem {identifier}.",
4746
+ "consent.scope.openid.title": "To\u017Csamo\u015B\u0107",
4747
+ "consent.scope.openid.description": "Pozwala aplikacji zweryfikowa\u0107 Twoj\u0105 to\u017Csamo\u015B\u0107. Jest to wymagane do uwierzytelniania i zapewnienia zaufanej sesji logowania.",
4748
+ "consent.scope.offline_access.title": "Dost\u0119p offline",
4749
+ "consent.scope.offline_access.description": "Pozwala aplikacji utrzyma\u0107 Twoje logowanie, nawet gdy nie korzystasz z niej aktywnie.",
4750
+ "consent.scope.profile.title": "Informacje profilowe",
4751
+ "consent.scope.profile.description": "Pozwala na dost\u0119p do podstawowych danych profilowych, w tym nazwy u\u017Cytkownika, imienia i nazwiska.",
4752
+ "consent.scope.email.title": "Adres e-mail",
4753
+ "consent.scope.email.description": "Pobierz sw\xF3j adres e-mail oraz status jego weryfikacji.",
4754
+ "consent.scope.address.title": "Adres fizyczny",
4755
+ "consent.scope.address.description": "Dost\u0119p do Twojego adresu pocztowego.",
4756
+ "consent.scope.phone.title": "Numer telefonu",
4757
+ "consent.scope.phone.description": "Pobierz sw\xF3j numer telefonu oraz status jego weryfikacji.",
4490
4758
  "error.action.go-back": "",
4491
4759
  "error.footer.copy": "",
4492
4760
  "error.footer.text": "",
@@ -4758,6 +5026,20 @@ var pt_default = {
4758
5026
  "property.password": "",
4759
5027
  "property.phone": "",
4760
5028
  "property.username": "",
5029
+ "consent.title": "Autorizar {party}",
5030
+ "consent.subtitle": "Um aplicativo de terceiros deseja acessar as informa\xE7\xF5es associadas \xE0 sua conta {identifier}.",
5031
+ "consent.scope.openid.title": "Identidade",
5032
+ "consent.scope.openid.description": "Permite que a aplica\xE7\xE3o verifique sua identidade. Isso \xE9 necess\xE1rio para a autentica\xE7\xE3o e uma experi\xEAncia de login confi\xE1vel.",
5033
+ "consent.scope.offline_access.title": "Acesso Offline",
5034
+ "consent.scope.offline_access.description": "Permite que este aplicativo mantenha voc\xEA conectado mesmo quando n\xE3o estiver usando-o ativamente.",
5035
+ "consent.scope.profile.title": "Informa\xE7\xF5es do Perfil",
5036
+ "consent.scope.profile.description": "Permite o acesso aos detalhes b\xE1sicos do seu perfil, incluindo seu nome de usu\xE1rio, primeiro nome e sobrenome.",
5037
+ "consent.scope.email.title": "Endere\xE7o de E-mail",
5038
+ "consent.scope.email.description": "Recupere seu endere\xE7o de e-mail e seu status de verifica\xE7\xE3o.",
5039
+ "consent.scope.address.title": "Endere\xE7o F\xEDsico",
5040
+ "consent.scope.address.description": "Acesse seu endere\xE7o postal.",
5041
+ "consent.scope.phone.title": "N\xFAmero de Telefone",
5042
+ "consent.scope.phone.description": "Recupere seu n\xFAmero de telefone e seu status de verifica\xE7\xE3o.",
4761
5043
  "error.action.go-back": "",
4762
5044
  "error.footer.copy": "",
4763
5045
  "error.footer.text": "",
@@ -5029,6 +5311,20 @@ var sv_default = {
5029
5311
  "property.username": "anv\xE4ndarnamn",
5030
5312
  "property.identifier": "identifier",
5031
5313
  "property.code": "kod",
5314
+ "consent.title": "Auktorisera {party}",
5315
+ "consent.subtitle": "En tredjepartsapplikation vill f\xE5 tillg\xE5ng till information kopplad till ditt konto {identifier}.",
5316
+ "consent.scope.openid.title": "Identitet",
5317
+ "consent.scope.openid.description": "G\xF6r det m\xF6jligt f\xF6r applikationen att verifiera din identitet. Detta kr\xE4vs f\xF6r autentisering och en p\xE5litlig inloggningsupplevelse.",
5318
+ "consent.scope.offline_access.title": "Offline-\xE5tkomst",
5319
+ "consent.scope.offline_access.description": "G\xF6r det m\xF6jligt f\xF6r denna applikation att h\xE5lla dig inloggad \xE4ven n\xE4r du inte aktivt anv\xE4nder den.",
5320
+ "consent.scope.profile.title": "Profilinformation",
5321
+ "consent.scope.profile.description": "Ger tillg\xE5ng till dina grundl\xE4ggande profiluppgifter, inklusive ditt anv\xE4ndarnamn, f\xF6rnamn och efternamn.",
5322
+ "consent.scope.email.title": "E-postadress",
5323
+ "consent.scope.email.description": "H\xE4mta din e-postadress och dess verifieringsstatus.",
5324
+ "consent.scope.address.title": "Fysisk adress",
5325
+ "consent.scope.address.description": "F\xE5 \xE5tkomst till din postadress.",
5326
+ "consent.scope.phone.title": "Telefonnummer",
5327
+ "consent.scope.phone.description": "H\xE4mta ditt telefonnummer och dess verifieringsstatus.",
5032
5328
  "error.action.go-back": "",
5033
5329
  "error.footer.copy": "",
5034
5330
  "error.footer.text": "",
@@ -5050,7 +5346,7 @@ var OryLocales = {
5050
5346
  };
5051
5347
 
5052
5348
  // src/context/intl-context.tsx
5053
- var import_jsx_runtime93 = require("react/jsx-runtime");
5349
+ var import_jsx_runtime99 = require("react/jsx-runtime");
5054
5350
  function mergeTranslations(customTranslations) {
5055
5351
  return Object.keys(customTranslations).reduce((acc, key) => {
5056
5352
  acc[key] = { ...OryLocales[key], ...customTranslations[key] };
@@ -5063,12 +5359,12 @@ var IntlProvider = ({
5063
5359
  customTranslations
5064
5360
  }) => {
5065
5361
  const messages = mergeTranslations(customTranslations != null ? customTranslations : {});
5066
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
5067
- import_react_intl20.IntlProvider,
5362
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5363
+ import_react_intl21.IntlProvider,
5068
5364
  {
5069
5365
  onWarn: () => ({}),
5070
5366
  defaultRichTextElements: {
5071
- del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("del", { children: chunks })
5367
+ del: (chunks) => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("del", { children: chunks })
5072
5368
  },
5073
5369
  locale,
5074
5370
  messages: messages[locale],
@@ -5079,8 +5375,8 @@ var IntlProvider = ({
5079
5375
  };
5080
5376
 
5081
5377
  // src/theme/default/flows/error.tsx
5082
- var import_react_intl21 = require("react-intl");
5083
- var import_jsx_runtime94 = require("react/jsx-runtime");
5378
+ var import_react_intl22 = require("react-intl");
5379
+ var import_jsx_runtime100 = require("react/jsx-runtime");
5084
5380
  function isOAuth2Error(error) {
5085
5381
  return !!error && typeof error === "object" && "error" in error && "error_description" in error;
5086
5382
  }
@@ -5099,14 +5395,14 @@ function useStandardize(error) {
5099
5395
  timestamp: /* @__PURE__ */ new Date()
5100
5396
  };
5101
5397
  }
5102
- if ((0, import_client_fetch34.instanceOfFlowError)(error)) {
5398
+ if ((0, import_client_fetch35.instanceOfFlowError)(error)) {
5103
5399
  const parsed = error.error;
5104
5400
  return {
5105
5401
  ...parsed,
5106
5402
  id: error.id,
5107
5403
  timestamp: error.created_at
5108
5404
  };
5109
- } else if (error.error && (0, import_client_fetch34.instanceOfGenericError)(error.error)) {
5405
+ } else if (error.error && (0, import_client_fetch35.instanceOfGenericError)(error.error)) {
5110
5406
  return {
5111
5407
  code: (_a = error.error.code) != null ? _a : 500,
5112
5408
  message: error.error.message,
@@ -5133,47 +5429,47 @@ function Error2({
5133
5429
  const Divider = (_d = (_c = Components == null ? void 0 : Components.Card) == null ? void 0 : _c.Divider) != null ? _d : DefaultHorizontalDivider;
5134
5430
  const parsed = useStandardize(error);
5135
5431
  const description = errorDescriptions[Math.floor(parsed.code / 100)];
5136
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5432
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5137
5433
  IntlProvider,
5138
5434
  {
5139
5435
  locale: (_f = (_e = config.intl) == null ? void 0 : _e.locale) != null ? _f : "en",
5140
5436
  customTranslations: (_g = config.intl) == null ? void 0 : _g.customTranslations,
5141
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
5437
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
5142
5438
  "div",
5143
5439
  {
5144
5440
  className: "flex flex-col gap-6 antialiased",
5145
5441
  "data-testid": "ory/screen/error",
5146
5442
  children: [
5147
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5148
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ErrorLogo, { config }),
5149
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5150
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-happened" }) }),
5151
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5152
- parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5443
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("header", { className: "flex flex-col gap-8 antialiased", children: [
5444
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ErrorLogo, { config }),
5445
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex flex-col gap-2", children: [
5446
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.title.what-happened" }) }),
5447
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: (_h = parsed.message) != null ? _h : description }),
5448
+ parsed.reason && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: parsed.reason })
5153
5449
  ] })
5154
5450
  ] }),
5155
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5156
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
5157
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5158
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.instructions" }) }),
5159
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(LoggedInActions, { config }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(GoBackButton, { config }) })
5451
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Divider, {}),
5452
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex flex-col gap-2", children: [
5453
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("h2", { className: "text-lg font-semibold leading-normal text-interface-foreground-default-primary", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.title.what-can-i-do" }) }),
5454
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { className: "leading-normal text-interface-foreground-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.instructions" }) }),
5455
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { children: session ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(LoggedInActions, { config }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(GoBackButton, { config }) })
5160
5456
  ] }),
5161
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Divider, {}),
5162
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5163
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.text" }) }),
5164
- parsed.id && /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5457
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Divider, {}),
5458
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "font-normal leading-normal antialiased gap-2 flex flex-col", children: [
5459
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "text-interface-foreground-default-primary text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.footer.text" }) }),
5460
+ parsed.id && /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5165
5461
  "ID: ",
5166
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.id })
5462
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("code", { children: parsed.id })
5167
5463
  ] }),
5168
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5464
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5169
5465
  "Time: ",
5170
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5466
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("code", { children: (_i = parsed.timestamp) == null ? void 0 : _i.toUTCString() })
5171
5467
  ] }),
5172
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5468
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("p", { className: "text-interface-foreground-default-secondary text-sm", children: [
5173
5469
  "Message: ",
5174
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("code", { children: parsed.reason })
5470
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("code", { children: parsed.reason })
5175
5471
  ] }),
5176
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5472
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5177
5473
  "button",
5178
5474
  {
5179
5475
  className: "text-interface-foreground-default-primary underline",
@@ -5185,7 +5481,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5185
5481
  `;
5186
5482
  void navigator.clipboard.writeText(text);
5187
5483
  },
5188
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.footer.copy" })
5484
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.footer.copy" })
5189
5485
  }
5190
5486
  ) })
5191
5487
  ] })
@@ -5197,7 +5493,7 @@ ${parsed.reason ? `Message: ${parsed.reason}` : ""}
5197
5493
  }
5198
5494
  function LoggedInActions({ config }) {
5199
5495
  const logoutFlow = useClientLogout(config);
5200
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5496
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5201
5497
  "a",
5202
5498
  {
5203
5499
  href: logoutFlow == null ? void 0 : logoutFlow.logout_url,
@@ -5208,12 +5504,12 @@ function LoggedInActions({ config }) {
5208
5504
  }
5209
5505
  function GoBackButton({ config }) {
5210
5506
  if ("default_redirect_url" in config.project) {
5211
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
5507
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5212
5508
  "a",
5213
5509
  {
5214
5510
  className: "text-interface-foreground-default-primary underline",
5215
5511
  href: config.project.default_redirect_url,
5216
- children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.FormattedMessage, { id: "error.action.go-back" })
5512
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_react_intl22.FormattedMessage, { id: "error.action.go-back" })
5217
5513
  }
5218
5514
  );
5219
5515
  }
@@ -5221,15 +5517,15 @@ function GoBackButton({ config }) {
5221
5517
  }
5222
5518
  function ErrorLogo({ config }) {
5223
5519
  if (config.logoUrl) {
5224
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("img", { src: config.logoUrl, width: 100, height: 36, alt: "Logo" });
5520
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("img", { src: config.logoUrl, width: 100, height: 36, alt: "Logo" });
5225
5521
  }
5226
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.name });
5522
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("h1", { className: "text-xl font-semibold leading-normal text-interface-foreground-default-primary", children: config.name });
5227
5523
  }
5228
5524
 
5229
5525
  // src/theme/default/flows/login.tsx
5230
- var import_client_fetch35 = require("@ory/client-fetch");
5231
- var import_elements_react19 = require("@ory/elements-react");
5232
- var import_jsx_runtime95 = require("react/jsx-runtime");
5526
+ var import_client_fetch36 = require("@ory/client-fetch");
5527
+ var import_elements_react20 = require("@ory/elements-react");
5528
+ var import_jsx_runtime101 = require("react/jsx-runtime");
5233
5529
  function Login({
5234
5530
  flow,
5235
5531
  config,
@@ -5237,22 +5533,22 @@ function Login({
5237
5533
  components: flowOverrideComponents
5238
5534
  }) {
5239
5535
  const components = getOryComponents(flowOverrideComponents);
5240
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
5241
- import_elements_react19.OryProvider,
5536
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
5537
+ import_elements_react20.OryProvider,
5242
5538
  {
5243
5539
  config,
5244
5540
  flow,
5245
- flowType: import_client_fetch35.FlowType.Login,
5541
+ flowType: import_client_fetch36.FlowType.Login,
5246
5542
  components,
5247
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_elements_react19.OryTwoStepCard, {})
5543
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_elements_react20.OryTwoStepCard, {})
5248
5544
  }
5249
5545
  );
5250
5546
  }
5251
5547
 
5252
5548
  // src/theme/default/flows/recovery.tsx
5253
- var import_client_fetch36 = require("@ory/client-fetch");
5254
- var import_elements_react20 = require("@ory/elements-react");
5255
- var import_jsx_runtime96 = require("react/jsx-runtime");
5549
+ var import_client_fetch37 = require("@ory/client-fetch");
5550
+ var import_elements_react21 = require("@ory/elements-react");
5551
+ var import_jsx_runtime102 = require("react/jsx-runtime");
5256
5552
  function Recovery({
5257
5553
  flow,
5258
5554
  config,
@@ -5260,22 +5556,22 @@ function Recovery({
5260
5556
  components: flowOverrideComponents
5261
5557
  }) {
5262
5558
  const components = getOryComponents(flowOverrideComponents);
5263
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
5264
- import_elements_react20.OryProvider,
5559
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5560
+ import_elements_react21.OryProvider,
5265
5561
  {
5266
5562
  config,
5267
5563
  flow,
5268
- flowType: import_client_fetch36.FlowType.Recovery,
5564
+ flowType: import_client_fetch37.FlowType.Recovery,
5269
5565
  components,
5270
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_elements_react20.OryTwoStepCard, {})
5566
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_elements_react21.OryTwoStepCard, {})
5271
5567
  }
5272
5568
  );
5273
5569
  }
5274
5570
 
5275
5571
  // src/theme/default/flows/registration.tsx
5276
- var import_client_fetch37 = require("@ory/client-fetch");
5277
- var import_elements_react21 = require("@ory/elements-react");
5278
- var import_jsx_runtime97 = require("react/jsx-runtime");
5572
+ var import_client_fetch38 = require("@ory/client-fetch");
5573
+ var import_elements_react22 = require("@ory/elements-react");
5574
+ var import_jsx_runtime103 = require("react/jsx-runtime");
5279
5575
  function Registration({
5280
5576
  flow,
5281
5577
  children,
@@ -5283,22 +5579,22 @@ function Registration({
5283
5579
  config
5284
5580
  }) {
5285
5581
  const components = getOryComponents(flowOverrideComponents);
5286
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
5287
- import_elements_react21.OryProvider,
5582
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5583
+ import_elements_react22.OryProvider,
5288
5584
  {
5289
5585
  config,
5290
5586
  flow,
5291
- flowType: import_client_fetch37.FlowType.Registration,
5587
+ flowType: import_client_fetch38.FlowType.Registration,
5292
5588
  components,
5293
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_elements_react21.OryTwoStepCard, {})
5589
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_elements_react22.OryTwoStepCard, {})
5294
5590
  }
5295
5591
  );
5296
5592
  }
5297
5593
 
5298
5594
  // src/theme/default/flows/settings.tsx
5299
- var import_client_fetch38 = require("@ory/client-fetch");
5300
- var import_elements_react22 = require("@ory/elements-react");
5301
- var import_jsx_runtime98 = require("react/jsx-runtime");
5595
+ var import_client_fetch39 = require("@ory/client-fetch");
5596
+ var import_elements_react23 = require("@ory/elements-react");
5597
+ var import_jsx_runtime104 = require("react/jsx-runtime");
5302
5598
  function Settings({
5303
5599
  flow,
5304
5600
  config,
@@ -5306,25 +5602,25 @@ function Settings({
5306
5602
  components: flowOverrideComponents
5307
5603
  }) {
5308
5604
  const components = getOryComponents(flowOverrideComponents);
5309
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
5310
- import_elements_react22.OryProvider,
5605
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5606
+ import_elements_react23.OryProvider,
5311
5607
  {
5312
5608
  config,
5313
5609
  flow,
5314
- flowType: import_client_fetch38.FlowType.Settings,
5610
+ flowType: import_client_fetch39.FlowType.Settings,
5315
5611
  components,
5316
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
5317
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_elements_react22.HeadlessPageHeader, {}),
5318
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_elements_react22.OrySettingsCard, {})
5612
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
5613
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react23.HeadlessPageHeader, {}),
5614
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(import_elements_react23.OrySettingsCard, {})
5319
5615
  ] })
5320
5616
  }
5321
5617
  );
5322
5618
  }
5323
5619
 
5324
5620
  // src/theme/default/flows/verification.tsx
5325
- var import_client_fetch39 = require("@ory/client-fetch");
5326
- var import_elements_react23 = require("@ory/elements-react");
5327
- var import_jsx_runtime99 = require("react/jsx-runtime");
5621
+ var import_client_fetch40 = require("@ory/client-fetch");
5622
+ var import_elements_react24 = require("@ory/elements-react");
5623
+ var import_jsx_runtime105 = require("react/jsx-runtime");
5328
5624
  function Verification({
5329
5625
  flow,
5330
5626
  config,
@@ -5332,19 +5628,192 @@ function Verification({
5332
5628
  components: flowOverrideComponents
5333
5629
  }) {
5334
5630
  const components = getOryComponents(flowOverrideComponents);
5335
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5336
- import_elements_react23.OryProvider,
5631
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5632
+ import_elements_react24.OryProvider,
5633
+ {
5634
+ config,
5635
+ flow,
5636
+ flowType: import_client_fetch40.FlowType.Verification,
5637
+ components,
5638
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_elements_react24.OryTwoStepCard, {})
5639
+ }
5640
+ );
5641
+ }
5642
+
5643
+ // src/theme/default/flows/consent.tsx
5644
+ var import_client_fetch42 = require("@ory/client-fetch");
5645
+ var import_elements_react25 = require("@ory/elements-react");
5646
+
5647
+ // src/theme/default/utils/oauth2.ts
5648
+ var import_client_fetch41 = require("@ory/client-fetch");
5649
+ var rememberCheckbox = {
5650
+ type: "input",
5651
+ group: "oauth2_consent",
5652
+ meta: {
5653
+ label: {
5654
+ id: 9999111,
5655
+ text: "Remember my decision",
5656
+ type: import_client_fetch41.UiTextTypeEnum.Info
5657
+ }
5658
+ },
5659
+ attributes: {
5660
+ node_type: "input",
5661
+ name: "remember",
5662
+ value: false,
5663
+ type: "checkbox",
5664
+ disabled: false
5665
+ },
5666
+ messages: []
5667
+ };
5668
+ var acceptButton = {
5669
+ type: "input",
5670
+ group: "oauth2_consent",
5671
+ meta: {
5672
+ label: {
5673
+ id: 9999111,
5674
+ text: "Accept",
5675
+ type: import_client_fetch41.UiTextTypeEnum.Info
5676
+ }
5677
+ },
5678
+ attributes: {
5679
+ node_type: "input",
5680
+ name: "action",
5681
+ value: "accept",
5682
+ type: "submit",
5683
+ disabled: false
5684
+ },
5685
+ messages: []
5686
+ };
5687
+ var rejectButton = {
5688
+ type: "input",
5689
+ group: "oauth2_consent",
5690
+ meta: {
5691
+ label: {
5692
+ id: 9999111,
5693
+ text: "Reject",
5694
+ type: import_client_fetch41.UiTextTypeEnum.Info
5695
+ }
5696
+ },
5697
+ attributes: {
5698
+ node_type: "input",
5699
+ name: "action",
5700
+ value: "reject",
5701
+ type: "submit",
5702
+ disabled: false
5703
+ },
5704
+ messages: []
5705
+ };
5706
+ function translateConsentChallengeToUiNodes(consentChallenge, csrfToken, formAction, session) {
5707
+ var _a;
5708
+ const ui = {
5709
+ action: formAction,
5710
+ nodes: [
5711
+ ...scopesToUiNodes((_a = consentChallenge.requested_scope) != null ? _a : []),
5712
+ rememberCheckbox,
5713
+ rejectButton,
5714
+ acceptButton,
5715
+ csrfTokenNode(csrfToken),
5716
+ challengeNode(consentChallenge.challenge)
5717
+ ],
5718
+ method: "POST",
5719
+ messages: []
5720
+ };
5721
+ return {
5722
+ id: "UNSET",
5723
+ created_at: /* @__PURE__ */ new Date(),
5724
+ expires_at: /* @__PURE__ */ new Date(),
5725
+ issued_at: /* @__PURE__ */ new Date(),
5726
+ state: "show_form",
5727
+ active: "oauth2_consent",
5728
+ ui,
5729
+ consent_request: consentChallenge,
5730
+ session
5731
+ };
5732
+ }
5733
+ function scopesToUiNodes(scopes) {
5734
+ return scopes.map((scope) => ({
5735
+ type: "input",
5736
+ group: "oauth2_consent",
5737
+ meta: {
5738
+ label: {
5739
+ id: 9999111,
5740
+ text: scope,
5741
+ type: import_client_fetch41.UiTextTypeEnum.Info
5742
+ }
5743
+ },
5744
+ attributes: {
5745
+ node_type: "input",
5746
+ name: `grant_scope`,
5747
+ value: scope,
5748
+ type: "checkbox",
5749
+ disabled: false
5750
+ },
5751
+ messages: []
5752
+ }));
5753
+ }
5754
+ function csrfTokenNode(csrfToken) {
5755
+ return {
5756
+ type: "input",
5757
+ group: "default",
5758
+ meta: {},
5759
+ attributes: {
5760
+ node_type: "input",
5761
+ name: "csrf_token",
5762
+ value: csrfToken,
5763
+ type: "hidden",
5764
+ disabled: false
5765
+ },
5766
+ messages: []
5767
+ };
5768
+ }
5769
+ function challengeNode(challenge) {
5770
+ return {
5771
+ type: "input",
5772
+ group: "oauth2_consent",
5773
+ meta: {},
5774
+ attributes: {
5775
+ node_type: "input",
5776
+ name: "consent_challenge",
5777
+ value: challenge,
5778
+ type: "hidden",
5779
+ disabled: false
5780
+ },
5781
+ messages: []
5782
+ };
5783
+ }
5784
+
5785
+ // src/theme/default/flows/consent.tsx
5786
+ var import_jsx_runtime106 = require("react/jsx-runtime");
5787
+ function Consent({
5788
+ consentChallenge,
5789
+ session,
5790
+ config,
5791
+ components: Passed,
5792
+ children,
5793
+ csrfToken,
5794
+ formActionUrl
5795
+ }) {
5796
+ const components = getOryComponents(Passed);
5797
+ const flow = translateConsentChallengeToUiNodes(
5798
+ consentChallenge,
5799
+ csrfToken,
5800
+ formActionUrl,
5801
+ session
5802
+ );
5803
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5804
+ import_elements_react25.OryProvider,
5337
5805
  {
5338
5806
  config,
5339
5807
  flow,
5340
- flowType: import_client_fetch39.FlowType.Verification,
5808
+ flowType: import_client_fetch42.FlowType.OAuth2Consent,
5341
5809
  components,
5342
- children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_elements_react23.OryTwoStepCard, {})
5810
+ children: children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_elements_react25.OryConsentCard, {})
5343
5811
  }
5344
5812
  );
5345
5813
  }
5346
5814
  // Annotate the CommonJS export names for ESM import in node:
5347
5815
  0 && (module.exports = {
5816
+ Consent,
5348
5817
  DefaultButtonSocial,
5349
5818
  DefaultCard,
5350
5819
  DefaultCardContent,