@betterportal/auth-default 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/lib/plugins/service-betterportal-auth-default/.bp-generated/registry.d.ts.map +1 -1
  2. package/lib/plugins/service-betterportal-auth-default/.bp-generated/registry.js +77 -31
  3. package/lib/plugins/service-betterportal-auth-default/.bp-generated/registry.js.map +1 -1
  4. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/GET.d.ts +3 -0
  5. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/GET.d.ts.map +1 -0
  6. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/GET.js +3 -0
  7. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/GET.js.map +1 -0
  8. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/POST.d.ts +3 -0
  9. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/POST.d.ts.map +1 -0
  10. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/POST.js +3 -0
  11. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/POST.js.map +1 -0
  12. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
  13. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/GET.d.ts.map +1 -0
  14. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/{index.js → GET.js} +1 -1
  15. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/GET.js.map +1 -0
  16. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/{_nav.profile.d.ts → _nav.profile.GET.d.ts} +2 -2
  17. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.d.ts.map +1 -0
  18. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/{_nav.profile.js → _nav.profile.GET.js} +1 -1
  19. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.js.map +1 -0
  20. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/index.d.ts +1 -88
  21. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/index.d.ts.map +1 -1
  22. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/index.js +1 -185
  23. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/index.js.map +1 -1
  24. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/route.impl.d.ts +89 -0
  25. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/route.impl.d.ts.map +1 -0
  26. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/route.impl.js +186 -0
  27. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/route.impl.js.map +1 -0
  28. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/GET.d.ts +3 -0
  29. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/GET.d.ts.map +1 -0
  30. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/GET.js +3 -0
  31. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/GET.js.map +1 -0
  32. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/POST.d.ts +3 -0
  33. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/POST.d.ts.map +1 -0
  34. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/POST.js +3 -0
  35. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/POST.js.map +1 -0
  36. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
  37. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/GET.d.ts.map +1 -0
  38. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/{index.js → GET.js} +1 -1
  39. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/GET.js.map +1 -0
  40. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/index.d.ts +1 -24
  41. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/index.d.ts.map +1 -1
  42. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/index.js +1 -37
  43. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/index.js.map +1 -1
  44. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/route.impl.d.ts +25 -0
  45. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/route.impl.d.ts.map +1 -0
  46. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/route.impl.js +38 -0
  47. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/route.impl.js.map +1 -0
  48. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/POST.d.ts +3 -0
  49. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/POST.d.ts.map +1 -0
  50. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/POST.js +3 -0
  51. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/POST.js.map +1 -0
  52. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/index.d.ts +1 -30
  53. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/index.d.ts.map +1 -1
  54. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/index.js +1 -91
  55. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/index.js.map +1 -1
  56. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/route.impl.d.ts +31 -0
  57. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/route.impl.d.ts.map +1 -0
  58. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/route.impl.js +92 -0
  59. package/lib/plugins/service-betterportal-auth-default/bp-routes/refresh/route.impl.js.map +1 -0
  60. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/GET.d.ts +3 -0
  61. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/GET.d.ts.map +1 -0
  62. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/GET.js +3 -0
  63. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/GET.js.map +1 -0
  64. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/POST.d.ts +3 -0
  65. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/POST.d.ts.map +1 -0
  66. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/POST.js +3 -0
  67. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/POST.js.map +1 -0
  68. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/{index.400.js → 400.d.ts} +2 -2
  69. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/400.d.ts.map +1 -0
  70. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/{index.400.d.ts → 400.js} +2 -2
  71. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/400.js.map +1 -0
  72. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
  73. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/GET.d.ts.map +1 -0
  74. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/{index.js → GET.js} +1 -1
  75. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/GET.js.map +1 -0
  76. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/index.d.ts +1 -63
  77. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/index.d.ts.map +1 -1
  78. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/index.js +1 -105
  79. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/index.js.map +1 -1
  80. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/route.impl.d.ts +64 -0
  81. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/route.impl.d.ts.map +1 -0
  82. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/route.impl.js +106 -0
  83. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/route.impl.js.map +1 -0
  84. package/lib/schemas/service-betterportal-auth-default.json +1 -1
  85. package/lib/schemas/service-betterportal-auth-default.plugin.json +1 -1
  86. package/package.json +3 -3
  87. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.d.ts.map +0 -1
  88. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.js.map +0 -1
  89. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/index.d.ts.map +0 -1
  90. package/lib/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/index.js.map +0 -1
  91. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/index.d.ts.map +0 -1
  92. package/lib/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/index.js.map +0 -1
  93. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.400.d.ts.map +0 -1
  94. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.400.js.map +0 -1
  95. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.d.ts.map +0 -1
  96. package/lib/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.js.map +0 -1
@@ -0,0 +1,106 @@
1
+ import * as av from "anyvali";
2
+ import { createHandler } from "@betterportal/framework";
3
+ export const QuerySchema = av.object({
4
+ next: av.optional(av.string()).describe("The view path to pass through to login after first-admin registration.")
5
+ }, { unknownKeys: "strip" });
6
+ export const HeadersSchema = av.object({}, { unknownKeys: "strip" });
7
+ export const RequestSchema = av.object({
8
+ username: av.string().minLength(1).describe("Username for the first admin account."),
9
+ password: av.string().minLength(8).describe("Password for the first admin account."),
10
+ email: av.optional(av.string()).describe("Email address for the first admin account."),
11
+ name: av.optional(av.string()).describe("Display name for the first admin account.")
12
+ }, { unknownKeys: "strip" });
13
+ export const ResponseSchema = av.object({
14
+ status: av.enum_(["ok", "error"]).describe("Registration request outcome."),
15
+ message: av.optional(av.string()).describe("Human-readable status or error message for the renderer."),
16
+ user: av.optional(av.object({
17
+ id: av.string().describe("Stable UUIDv7 user id."),
18
+ username: av.string().describe("Created account username."),
19
+ isFirstAdmin: av.bool().describe("True when this account is the deployment's first admin.")
20
+ }, { unknownKeys: "strip" }).describe("Created first-admin user summary.")),
21
+ // GET state for the theme renderer: registrations are closed once any user
22
+ // exists; loginUrl (self-origin, absolute) is where the renderer sends the
23
+ // browser in that case - and after a successful first-admin creation.
24
+ registrationOpen: av.optional(av.bool()).describe("True while the auth service has zero users; once false, the renderer should send the browser to login."),
25
+ loginUrl: av.optional(av.string()).describe("Absolute self-origin URL of this auth service's login view, used when registration is closed and after successful first-admin creation.")
26
+ }, { unknownKeys: "strip" });
27
+ export const title = "Register First Admin";
28
+ export const description = "Open registration for the very first user. Once any user exists, this endpoint requires admin auth.";
29
+ export const role = "auth.register";
30
+ export const dependencies = ["login.index"];
31
+ export const chrome = { fullScreen: true };
32
+ export const auth = {
33
+ required: false,
34
+ permissions: []
35
+ };
36
+ export const cacheHints = {
37
+ ttlSeconds: 0,
38
+ varyBy: []
39
+ };
40
+ /** Self-origin absolute URL for a path, derived from the request Host header. */
41
+ function runtimeFrom(ctx) {
42
+ const runtime = ctx.plugin?.runtime;
43
+ if (!runtime)
44
+ throw new Error("Auth runtime not available on handler context");
45
+ return runtime;
46
+ }
47
+ function selfUrl(ctx, path, next) {
48
+ const host = ctx.headers.host;
49
+ if (!host)
50
+ return undefined;
51
+ const proto = ctx.headers["x-forwarded-proto"] ?? "http";
52
+ return `${proto}://${host}${path}${next ? `?next=${encodeURIComponent(next)}` : ""}`;
53
+ }
54
+ export const handleGet = createHandler({ response: ResponseSchema, query: QuerySchema }, (ctx) => {
55
+ const runtime = runtimeFrom(ctx);
56
+ const next = ctx.query.next;
57
+ return {
58
+ status: "ok",
59
+ registrationOpen: runtime.userStore.hasNoUsers(),
60
+ loginUrl: selfUrl(ctx, "/login", next)
61
+ };
62
+ });
63
+ export const handlePost = createHandler({ response: ResponseSchema, request: RequestSchema, query: QuerySchema }, async (ctx) => {
64
+ const runtime = runtimeFrom(ctx);
65
+ const tenantId = ctx.tenant.id;
66
+ const appId = ctx.app.id;
67
+ if (!runtime.userStore.hasNoUsers()) {
68
+ // Registration is closed once any user exists. Respond 404 so the route
69
+ // appears not to exist (no user-enumeration surface).
70
+ ctx.setStatus?.(404);
71
+ return {
72
+ status: "error",
73
+ message: ""
74
+ };
75
+ }
76
+ const body = ctx.request;
77
+ try {
78
+ const created = await runtime.userStore.createUser({
79
+ username: body.username,
80
+ password: body.password,
81
+ email: body.email,
82
+ name: body.name,
83
+ tenantId,
84
+ appRoles: { [appId]: ["admin"] }
85
+ });
86
+ return {
87
+ status: "ok",
88
+ message: "First admin created.",
89
+ user: {
90
+ id: created.id,
91
+ username: created.username,
92
+ isFirstAdmin: true
93
+ },
94
+ // For the themed success view: where to send the browser to sign in.
95
+ loginUrl: selfUrl(ctx, "/login", ctx.query.next)
96
+ };
97
+ }
98
+ catch (err) {
99
+ ctx.setStatus?.(400);
100
+ return {
101
+ status: "error",
102
+ message: err.message
103
+ };
104
+ }
105
+ });
106
+ //# sourceMappingURL=route.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.impl.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-default/bp-routes/register/route.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAE9B,OAAO,EACL,aAAa,EAId,MAAM,yBAAyB,CAAC;AAGjC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,wE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AAsD;QACtD,GAAG,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;QACrB,OAAO;YACL,MAAM,EAAE,OAAgB;YACxB,OAAO,EAAE,EAAE;SACZ,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,OAAsC,CAAC;IACxD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC;YACjD,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ;YACR,QAAQ,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE;SACjC,CAAC,CAAC;QACH,OAAO;YACL,MAAM,EAAE,IAAa;YACrB,OAAO,EAAE,sBAAsB;YAC/B,IAAI,EAAE;gBACJ,EAAE,EAAE,OAAO,CAAC,EAAE;gBACd,QAAQ,EAAE,OAAO,CAAC,QAAQ;gBAC1B,YAAY,EAAE,IAAI;aACnB;YACD,qEAAqE;YACrE,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAG,GAAG,CAAC,KAA2B,CAAC,IAAI,CAAC;SACxE,CAAC;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,GAAG,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC;QACrB,OAAO;YACL,MAAM,EAAE,OAAgB;YACxB,OAAO,EAAG,GAAa,CAAC,OAAO;SAChC,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "pluginName": "service-betterportal-auth-default",
3
3
  "events": {},
4
- "version": "10.0.0",
4
+ "version": "10.0.1",
5
5
  "configSchema": {
6
6
  "anyvaliVersion": "1.0",
7
7
  "schemaVersion": "1.1",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "service-betterportal-auth-default",
3
3
  "name": "service-betterportal-auth-default",
4
- "version": "10.0.0",
4
+ "version": "10.0.1",
5
5
  "description": "Default BetterPortal v10 auth service: JWKS, login/logout/refresh, bcrypt user store",
6
6
  "category": "service",
7
7
  "tags": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterportal/auth-default",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "BetterPortal v10 default auth service for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -30,9 +30,9 @@
30
30
  "typescript": "^6.0.3"
31
31
  },
32
32
  "dependencies": {
33
- "@betterportal/framework": "10.0.0",
33
+ "@betterportal/framework": "10.0.1",
34
34
  "@bsb/base": "^9.5.8",
35
- "@betterportal/plugin-bsb": "10.0.0",
35
+ "@betterportal/plugin-bsb": "10.0.1",
36
36
  "anyvali": "^1.0.6",
37
37
  "bcrypt": "^6.0.0",
38
38
  "jsx-htmx": "4.0.0-beta4"
@@ -1 +0,0 @@
1
- {"version":3,"file":"_nav.profile.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA4BzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_nav.profile.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/_nav.profile.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,IAAI,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,CACL,YAAG,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,QAAQ,wBAE3C,CACL,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC;IACzF,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,WAAW,CAAC;IAEpE,OAAO,CACL,eAAK,KAAK,EAAC,UAAU,aACnB,iBAAQ,KAAK,EAAC,sCAAsC,EAAC,IAAI,EAAC,QAAQ,oBAAgB,UAAU,mBAAe,OAAO,YAC/G,WAAW,GACL,EACT,cAAI,KAAK,EAAC,iCAAiC,aACzC,uBAAI,aAAI,KAAK,EAAC,iBAAiB,YAAE,MAAM,GAAM,GAAK,EAClD,uBAAI,aAAI,KAAK,EAAC,kBAAkB,GAAG,GAAK,EACxC,uBACI,YAAG,KAAK,EAAC,eAAe,EAAC,IAAI,EAAC,sBAAsB,uBAEhD,GACH,IACF,IACD,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAgDhD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAgHzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/login/_theme.bootstrap1/index.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAA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+B,aAClC,MAAM,EACd,QAAQ,EAAC,mEAAmE,EAE1E,uBAAuB,EAAE,4QAA4Q,aAGvS,eAAK,KAAK,EAAC,MAAM,aACf,gBAAO,KAAK,EAAC,YAAY,2BAAmB,EAC5C,gBAAO,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,UAAU,EAAC,YAAY,EAAC,UAAU,EAAC,QAAQ,QAAC,SAAS,SAAG,IACjG,EACN,eAAK,KAAK,EAAC,MAAM,aACf,gBAAO,KAAK,EAAC,YAAY,2BAAmB,EAC5C,gBAAO,IAAI,EAAC,UAAU,EAAC,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,UAAU,EAAC,YAAY,EAAC,kBAAkB,EAAC,QAAQ,SAAG,IACnG,EACN,gBAAO,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,EAAE,GAAG,EAC5C,cAAK,KAAK,EAAC,2BAA2B,EAAC,EAAE,EAAC,gBAAgB,GAAO,EACjE,iBAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,uBAAuB,wBAAiB,IAC/D,IACH,GACF,EACN,2BAAS,WAAW,EAAE,GAAU,IAC5B,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/index.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,wBAAgB,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,cAAc,CAU1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/logout/_theme.bootstrap1/index.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,KAAmB;IACxC,6EAA6E;IAC7E,uEAAuE;IACvE,OAAO,CACL,cAAK,KAAK,EAAC,oCAAoC,YAC7C,cAAK,KAAK,EAAC,gBAAgB,EAAC,IAAI,EAAC,QAAQ,YACvC,eAAM,KAAK,EAAC,iBAAiB,+BAAsB,GAC/C,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.400.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.400.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.400.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.400.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA6FhD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAwCzD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-default/bp-routes/register/_theme.bootstrap1/index.tsx"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAI9B,qFAAqF;AACrF,SAAS,UAAU,CAAC,GAAuB,EAAE,QAAgB;IAC3D,IAAI,CAAC,GAA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