@declarion/react 0.63.1 → 0.64.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 (71) hide show
  1. package/dist-lib/{ActionDialog-uiuse5W8.js → ActionDialog-C6EG-AmC.js} +3 -3
  2. package/dist-lib/{ActionResultDialog.impl-BUBm9Ck3.js → ActionResultDialog.impl-BATutW8J.js} +2 -2
  3. package/dist-lib/{ActionRunner-DAxgnKB3.js → ActionRunner-DdBFhqGe.js} +4 -4
  4. package/dist-lib/{AdminCatalogPage.impl-BJGn7EvA.js → AdminCatalogPage.impl-B-7MLqa1.js} +2 -2
  5. package/dist-lib/{AgentChatPanel.impl-8bw8J-xV.js → AgentChatPanel.impl-D5y_qEex.js} +6 -6
  6. package/dist-lib/{AgentOpenFollower.impl-Cga1q7_e.js → AgentOpenFollower.impl-BAs_wGEZ.js} +5 -5
  7. package/dist-lib/{AssociatedBlock-D6qDYmRO.js → AssociatedBlock-BOoPLOjw.js} +7 -7
  8. package/dist-lib/{AuthShell-DdiughRT.js → AuthShell-C8aVwHS7.js} +5 -5
  9. package/dist-lib/{useAuth-CR2YKKXb.js → BlankScreen-DVc7fh8C.js} +19 -7
  10. package/dist-lib/{ChangePasswordDialog-DFe7lVQg.js → ChangePasswordDialog-C_T_3pjl.js} +1 -1
  11. package/dist-lib/{ChangePasswordDialog.impl-DtSIaP-A.js → ChangePasswordDialog.impl-5hDc0wpE.js} +3 -3
  12. package/dist-lib/{CommandPalette.impl-Db3AFA5w.js → CommandPalette.impl-DRI5kxVY.js} +3 -3
  13. package/dist-lib/{CopyButton-C0iEvaT1.js → CopyButton-DRIT_f0k.js} +1 -1
  14. package/dist-lib/{DirtyTabsCloseDialog.impl-DWaFaWKn.js → DirtyTabsCloseDialog.impl-FhAiOmEb.js} +3 -3
  15. package/dist-lib/{DraggableChildrenTable-Cy8uevS_.js → DraggableChildrenTable-Dd5SeuF6.js} +3 -3
  16. package/dist-lib/{FieldRow-BXBBFOZh.js → FieldRow-DedGIY9R.js} +2 -2
  17. package/dist-lib/{FilterChips-8fMDBXHp.js → FilterChips-Cv1tlXyo.js} +4 -4
  18. package/dist-lib/{Forgot.impl-CmT5A__V.js → Forgot.impl-6tL6SBlS.js} +4 -4
  19. package/dist-lib/{Grid-Cg29k0jv.js → Grid-XUHm5SDe.js} +3 -3
  20. package/dist-lib/{ImpersonationBanner.impl-CBJJx6an.js → ImpersonationBanner.impl--g0iYwcV.js} +2 -2
  21. package/dist-lib/{ImpersonationStartModal.impl-RaZcsJpG.js → ImpersonationStartModal.impl-BFBN0YJe.js} +3 -3
  22. package/dist-lib/{LayoutRenderer-DEHtYtzV.js → LayoutRenderer-d-tXYPze.js} +12 -12
  23. package/dist-lib/{ListCardsBody-BAwFR3yO.js → ListCardsBody-BEoYjSZ2.js} +4 -4
  24. package/dist-lib/{MarkdownRenderer-kNEMr6K_.js → MarkdownRenderer-sK2TRZS-.js} +2 -2
  25. package/dist-lib/{NotFoundPage.impl-ZSBn4WWb.js → NotFoundPage.impl-BoX11u-P.js} +2 -2
  26. package/dist-lib/{PageHeader-tw4pX3lI.js → PageHeader-DiwLe7CO.js} +5 -5
  27. package/dist-lib/{PageShell-tI-mm0C5.js → PageShell-BJz1MiTH.js} +1 -1
  28. package/dist-lib/{Preferences.impl-BG9XBZDf.js → Preferences.impl-Ct5xwZtT.js} +8 -8
  29. package/dist-lib/{Profile.impl-CbzSzxyG.js → Profile.impl-Cypk27ah.js} +17 -17
  30. package/dist-lib/{PropertyGridEditor-BTjscqfz.js → PropertyGridEditor-XrP6TZ5s.js} +3 -3
  31. package/dist-lib/{RecordHeader-Bv9nJXnG.js → RecordHeader-BfQ0_4wq.js} +5 -5
  32. package/dist-lib/{RecordIdBadge-C3MgoZvt.js → RecordIdBadge-wbigZaFc.js} +1 -1
  33. package/dist-lib/{RefreshControl-Ce-T_wSQ.js → RefreshControl-CRdWPoF5.js} +4 -4
  34. package/dist-lib/{Reset.impl-Cesyqt5p.js → Reset.impl-D0pjhS6d.js} +4 -4
  35. package/dist-lib/{SSOCallbackPage.impl-BC_W9nQA.js → SSOCallbackPage.impl-Cfi2pQ59.js} +1 -1
  36. package/dist-lib/{SectionCard-VonaiLrx.js → SectionCard-BYHoHWJc.js} +2 -2
  37. package/dist-lib/SignUp.impl-CfEXrUeg.js +212 -0
  38. package/dist-lib/{SmartDetailPage.impl-8iOAMYQh.js → SmartDetailPage.impl-BiIX0n7K.js} +19 -19
  39. package/dist-lib/{SmartListPage.impl-Cc4Zwz5f.js → SmartListPage.impl-Cu83Gv_G.js} +18 -18
  40. package/dist-lib/{SmartRecordListPage.impl-xTSohkqG.js → SmartRecordListPage.impl-DR6lq7HA.js} +14 -14
  41. package/dist-lib/{SortHeaderMenu-BKTrq0Wb.js → SortHeaderMenu-Co5PvhTA.js} +1 -1
  42. package/dist-lib/{TenantParamsPage.impl-DMuSs3eP.js → TenantParamsPage.impl-BGpdmEZg.js} +5 -5
  43. package/dist-lib/{TwoFA.impl-BClZ3ndk.js → TwoFA.impl-B2HtPduH.js} +3 -3
  44. package/dist-lib/{cardProjection-Cr7fG6wJ.js → cardProjection-Cxlogzh8.js} +2 -2
  45. package/dist-lib/declarion-react.css +1 -1
  46. package/dist-lib/{format-count-CSEFw2ht.js → format-count-lyB4CPen.js} +7 -7
  47. package/dist-lib/index.js +873 -879
  48. package/dist-lib/{param-editors-9yJr7xmN.js → param-editors-TYYU7HKK.js} +3 -3
  49. package/dist-lib/{payload-B2wODLAX.js → payload-DioMoxMX.js} +2 -2
  50. package/dist-lib/{peekDraftStore-D4GRsRKW.js → peekDraftStore-CaimrOhW.js} +3 -3
  51. package/dist-lib/{registry-BpzE8-h8.js → registry-CGe5kCXN.js} +2 -2
  52. package/dist-lib/{screen-back-Cs4kzeqD.js → screen-back-BtbEp5sO.js} +1 -1
  53. package/dist-lib/testing.js +2 -2
  54. package/dist-lib/{use-filter-value-labels-DuqvAIVG.js → use-filter-value-labels-D3YDgUzg.js} +5 -5
  55. package/dist-lib/{useAgentConversation-D210VDCQ.js → useAgentConversation-rru-7hnF.js} +2 -2
  56. package/dist-lib/{useBranding-Ckp_AuJb.js → useBranding-zcxEic2k.js} +1 -1
  57. package/dist-lib/{useBrandingChrome-bKTXXDLy.js → useBrandingChrome-bxaR3G1R.js} +2 -2
  58. package/dist-lib/{useCurrentLocation-BdngVeQv.js → useCurrentLocation-Bq1T72AW.js} +1 -1
  59. package/dist-lib/{useCurrentScreen--UovgvRj.js → useCurrentScreen-BZOHBGQZ.js} +284 -273
  60. package/dist-lib/{useImpersonation-DNV23Ks1.js → useImpersonation-DBIRRR70.js} +2 -2
  61. package/dist-lib/{useObject-1OCeV34A.js → useObject-B45F96rC.js} +1 -1
  62. package/dist-lib/{useOwnRefresh-DkOuM4yo.js → useOwnRefresh-DJjaje52.js} +3 -3
  63. package/dist-lib/{useParams-ei6w4I7w.js → useParams-BFLJi4n3.js} +1 -1
  64. package/dist-lib/{useProperties-CbdhlhZd.js → useProperties-B7opZ-iy.js} +1 -1
  65. package/dist-lib/{useScreenBack-J861tbwn.js → useScreenBack-DENlz844.js} +3 -3
  66. package/dist-lib/{useTabNavigate-BZiW4q3M.js → useTabNavigate-CUqOmcMj.js} +3 -3
  67. package/dist-lib/{useTabTitle-CZZnWIQi.js → useTabTitle-KrzEo118.js} +1 -1
  68. package/dist-lib/{value-CDCeHgOv.js → value-BuQVYx52.js} +1 -1
  69. package/dist-lib/{variants-CbAwl3Mn.js → variants-vUtfBbE6.js} +5 -5
  70. package/package.json +1 -1
  71. package/dist-lib/SignUp.impl-C1KCQbfZ.js +0 -212
@@ -1,8 +1,8 @@
1
- import { Bt as e, Ht as t, It as n, Q as r, Tt as i, U as a, Vt as o, wt as s } from "./useCurrentScreen--UovgvRj.js";
1
+ import { Bt as e, Ht as t, It as n, Q as r, Tt as i, U as a, Vt as o, wt as s } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useMutation as c, useQueryClient as l } from "@tanstack/react-query";
3
3
  //#region src/hooks/useImpersonation.ts
4
4
  function u() {
5
- let u = n((e) => e.user), d = n((e) => e.initialize), f = l(), p = s(), m = s("errors"), h = u?.impersonation ?? null, g = !!h, _ = c({
5
+ let u = n((e) => e.user), d = n((e) => e.reloadSession), f = l(), p = s(), m = s("errors"), h = u?.impersonation ?? null, g = !!h, _ = c({
6
6
  mutationFn: ({ targetUserId: e, reason: t, durationMinutes: n }) => o(e, t, n),
7
7
  onSuccess: async () => {
8
8
  await d(), await i(f), f.invalidateQueries(), a.success(p("toast.impersonation.started", "Impersonation session started."));
@@ -1,4 +1,4 @@
1
- import { ft as e } from "./useCurrentScreen--UovgvRj.js";
1
+ import { ft as e } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useQuery as t } from "@tanstack/react-query";
3
3
  //#region src/hooks/useObject.ts
4
4
  function n(e, t, n = {}) {
@@ -1,7 +1,7 @@
1
- import { Ft as e, It as t, Q as n, U as r, Zt as i, ht as a, ot as o, st as s, wt as c, yn as l, yt as u } from "./useCurrentScreen--UovgvRj.js";
2
- import { i as d } from "./useParams-ei6w4I7w.js";
1
+ import { Ft as e, It as t, Q as n, U as r, Zt as i, ht as a, ot as o, st as s, wt as c, yn as l, yt as u } from "./useCurrentScreen-BZOHBGQZ.js";
2
+ import { i as d } from "./useParams-BFLJi4n3.js";
3
3
  import { n as f, r as p, t as m } from "./page-state-eA6J_KIR.js";
4
- import { T as h, r as ee } from "./ActionRunner-DAxgnKB3.js";
4
+ import { T as h, r as ee } from "./ActionRunner-DdBFhqGe.js";
5
5
  import { useCallback as g, useEffect as _, useRef as v, useState as te } from "react";
6
6
  import { useMutation as y, useQueryClient as b } from "@tanstack/react-query";
7
7
  import { Fragment as ne, jsx as x, jsxs as S } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { Dn as e, It as t, Q as n, Tt as r, ft as i, ut as a, wt as o } from "./useCurrentScreen--UovgvRj.js";
1
+ import { Dn as e, It as t, Q as n, Tt as r, ft as i, ut as a, wt as o } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useCallback as s, useMemo as c, useState as l } from "react";
3
3
  import { useQuery as u, useQueryClient as d } from "@tanstack/react-query";
4
4
  //#region src/api/params.ts
@@ -1,4 +1,4 @@
1
- import { Q as e, U as t, ut as n, wt as r } from "./useCurrentScreen--UovgvRj.js";
1
+ import { Q as e, U as t, ut as n, wt as r } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useMutation as i, useQueryClient as a } from "@tanstack/react-query";
3
3
  //#region src/api/status.ts
4
4
  async function o(e, t, r, i, a) {
@@ -1,6 +1,6 @@
1
- import { Ft as e, K as t, Xt as n, vn as r, wt as i } from "./useCurrentScreen--UovgvRj.js";
2
- import { L as a } from "./PropertyGridEditor-BTjscqfz.js";
3
- import { a as o, n as s, r as c } from "./screen-back-Cs4kzeqD.js";
1
+ import { Ft as e, K as t, Xt as n, vn as r, wt as i } from "./useCurrentScreen-BZOHBGQZ.js";
2
+ import { L as a } from "./PropertyGridEditor-XrP6TZ5s.js";
3
+ import { a as o, n as s, r as c } from "./screen-back-BtbEp5sO.js";
4
4
  import { useCallback as l, useMemo as u } from "react";
5
5
  import { create as d } from "zustand";
6
6
  import { useNavigate as f } from "react-router";
@@ -1,6 +1,6 @@
1
- import { Ft as e, Xt as t, q as n, vn as r, wt as i } from "./useCurrentScreen--UovgvRj.js";
2
- import { L as a } from "./PropertyGridEditor-BTjscqfz.js";
3
- import { i as o, t as s } from "./screen-back-Cs4kzeqD.js";
1
+ import { Ft as e, Xt as t, q as n, vn as r, wt as i } from "./useCurrentScreen-BZOHBGQZ.js";
2
+ import { L as a } from "./PropertyGridEditor-XrP6TZ5s.js";
3
+ import { i as o, t as s } from "./screen-back-BtbEp5sO.js";
4
4
  import { useCallback as c } from "react";
5
5
  import { parsePath as l, useNavigate as u } from "react-router";
6
6
  //#region src/hooks/useTabNavigate.ts
@@ -1,4 +1,4 @@
1
- import { Ft as e, vn as t, wt as n } from "./useCurrentScreen--UovgvRj.js";
1
+ import { Ft as e, vn as t, wt as n } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useCallback as r } from "react";
3
3
  //#region src/hooks/useTabTitle.ts
4
4
  function i() {
@@ -1,4 +1,4 @@
1
- import { $n as e, Bn as t, In as n, Ln as r, jt as i } from "./useCurrentScreen--UovgvRj.js";
1
+ import { $n as e, Bn as t, In as n, Ln as r, jt as i } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
3
3
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
4
  //#region src/embed/file-src.ts
@@ -1,10 +1,10 @@
1
- import { Dt as e, Et as t, Nt as n, V as r, k as i, on as a, sn as o, wt as s, z as c } from "./useCurrentScreen--UovgvRj.js";
1
+ import { Dt as e, Et as t, Nt as n, V as r, k as i, on as a, sn as o, wt as s, z as c } from "./useCurrentScreen-BZOHBGQZ.js";
2
2
  import { t as l } from "./Icons-lt-7lhYR.js";
3
- import { n as u, r as d } from "./CopyButton-C0iEvaT1.js";
3
+ import { n as u, r as d } from "./CopyButton-DRIT_f0k.js";
4
4
  import { n as f, t as p } from "./MenuItem-CfkVXPvC.js";
5
- import { C as m, O as h, Q as g, S as _, T as v, b as y, f as b, g as x, l as S, s as C, v as w, w as T, x as E, y as D } from "./PropertyGridEditor-BTjscqfz.js";
5
+ import { C as m, O as h, Q as g, S as _, T as v, b as y, f as b, g as x, l as S, s as C, v as w, w as T, x as E, y as D } from "./PropertyGridEditor-XrP6TZ5s.js";
6
6
  import { t as O } from "./DynamicIcon-DuBSz6TZ.js";
7
- import { a as k, c as A, d as j, f as M, i as N, l as ee, m as P, n as F, o as I, p as L, r as te, s as R, t as z, u as ne } from "./value-CDCeHgOv.js";
7
+ import { a as k, c as A, d as j, f as M, i as N, l as ee, m as P, n as F, o as I, p as L, r as te, s as R, t as z, u as ne } from "./value-BuQVYx52.js";
8
8
  import { Fragment as B, Suspense as V, lazy as H, useCallback as U, useEffect as W, useLayoutEffect as re, useMemo as ie, useRef as G, useState as K } from "react";
9
9
  import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
10
10
  //#region src/components/file-widgets/registry.ts
@@ -398,7 +398,7 @@ function xe(e) {
398
398
  }
399
399
  //#endregion
400
400
  //#region src/components/file-widgets/GridLazy.tsx
401
- var Se = H(() => import("./Grid-Cg29k0jv.js").then((e) => ({ default: e.Grid })));
401
+ var Se = H(() => import("./Grid-XUHm5SDe.js").then((e) => ({ default: e.Grid })));
402
402
  function Ce() {
403
403
  return /* @__PURE__ */ J("div", { className: "h-24 w-full rounded-md bg-muted animate-pulse" });
404
404
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.63.1",
3
+ "version": "0.64.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",
@@ -1,212 +0,0 @@
1
- import { Pt as e, Rt as t, wt as n, xt as r } from "./useCurrentScreen--UovgvRj.js";
2
- import { t as i } from "./Icons-lt-7lhYR.js";
3
- import { r as a } from "./CopyButton-C0iEvaT1.js";
4
- import { V as o, W as s, X as c } from "./PropertyGridEditor-BTjscqfz.js";
5
- import { a as l } from "./useBranding-Ckp_AuJb.js";
6
- import { t as u } from "./AuthShell-DdiughRT.js";
7
- import { a as d } from "./useParams-ei6w4I7w.js";
8
- import { t as f } from "./useAuth-CR2YKKXb.js";
9
- import { useEffect as p, useState as m } from "react";
10
- import { useQuery as h } from "@tanstack/react-query";
11
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- import { Link as v, useNavigate as y } from "react-router";
13
- //#region src/components/pages/auth/SignUp.impl.tsx
14
- function b() {
15
- let e = y(), { signup: b, isSignupPending: S, isAuthenticated: C } = f(), w = r(), T = n(), [E, D] = m(""), [O, k] = m(""), [A, j] = m(""), [M, N] = m(""), [P, F] = m(""), [I, L] = m(""), [R, z] = m(!1), { data: B } = d(), V = l(B), H = V?.workspace_domain ?? "", U = V?.legal_links?.terms_url ?? "", W = V?.legal_links?.privacy_url ?? "", G = w.isPhone, { data: K } = h({
16
- queryKey: ["check-setup"],
17
- queryFn: t
18
- });
19
- p(() => {
20
- K && !K.needs_setup && e("/login", { replace: !0 });
21
- }, [K, e]), p(() => {
22
- C && e("/", { replace: !0 });
23
- }, [C, e]);
24
- function q(e) {
25
- if (e.preventDefault(), !R) return;
26
- let t = [E, O].filter(Boolean).join(" ") || A;
27
- b({
28
- email: A,
29
- password: I,
30
- displayName: t
31
- });
32
- }
33
- return /* @__PURE__ */ g(u, { children: /* @__PURE__ */ _("form", {
34
- onSubmit: q,
35
- children: [
36
- /* @__PURE__ */ g("div", {
37
- style: {
38
- fontSize: 10.5,
39
- fontWeight: 700,
40
- color: "var(--accent)",
41
- letterSpacing: "0.1em",
42
- textTransform: "uppercase"
43
- },
44
- children: T("auth.signup.eyebrow", "Request access")
45
- }),
46
- /* @__PURE__ */ g("h2", {
47
- style: {
48
- margin: "6px 0 4px",
49
- fontSize: 24,
50
- fontWeight: 600,
51
- letterSpacing: "-0.018em"
52
- },
53
- children: T("auth.signup.title", "Create your workspace")
54
- }),
55
- /* @__PURE__ */ g("p", {
56
- style: {
57
- margin: "0 0 20px",
58
- fontSize: 13,
59
- color: "var(--text-3)"
60
- },
61
- children: T("auth.signup.subtitle", "We'll provision a tenant and invite your team. Takes under a minute.")
62
- }),
63
- /* @__PURE__ */ _("div", {
64
- style: {
65
- display: "flex",
66
- flexDirection: "column",
67
- gap: 12
68
- },
69
- children: [
70
- /* @__PURE__ */ _("div", {
71
- "data-testid": "signup-name-grid",
72
- style: {
73
- display: "grid",
74
- gridTemplateColumns: G ? "minmax(0, 1fr)" : "1fr 1fr",
75
- gap: 10
76
- },
77
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.signup.first_name", "First name") }), /* @__PURE__ */ g(c, {
78
- value: E,
79
- onChange: D
80
- })] }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.signup.last_name", "Last name") }), /* @__PURE__ */ g(c, {
81
- value: O,
82
- onChange: k
83
- })] })]
84
- }),
85
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.signup.work_email", "Work email") }), /* @__PURE__ */ g(c, {
86
- value: A,
87
- onChange: j,
88
- prefix: /* @__PURE__ */ g(i.email, { size: 13 }),
89
- placeholder: T("auth.signup.work_email_placeholder", "name@company.com"),
90
- required: !0
91
- })] }),
92
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.signup.company", "Company") }), /* @__PURE__ */ g(c, {
93
- value: M,
94
- onChange: N,
95
- prefix: /* @__PURE__ */ g(i.building, { size: 13 })
96
- })] }),
97
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.signup.workspace_url", "Workspace URL") }), /* @__PURE__ */ _("div", {
98
- style: {
99
- display: "flex",
100
- flexDirection: G ? "column" : "row",
101
- alignItems: "stretch",
102
- border: "1px solid var(--border)",
103
- borderRadius: 6,
104
- overflow: "hidden",
105
- minWidth: 0
106
- },
107
- children: [/* @__PURE__ */ g(c, {
108
- value: P,
109
- onChange: F,
110
- style: {
111
- border: 0,
112
- borderRadius: 0
113
- }
114
- }), H && /* @__PURE__ */ _("span", {
115
- className: "mono",
116
- style: {
117
- display: "flex",
118
- alignItems: "center",
119
- padding: G ? "8px 10px" : "0 10px",
120
- background: "var(--surface-2)",
121
- borderLeft: G ? 0 : "1px solid var(--border)",
122
- borderTop: G ? "1px solid var(--border)" : 0,
123
- fontSize: 12,
124
- color: "var(--text-3)",
125
- overflowWrap: "anywhere"
126
- },
127
- children: [".", H]
128
- })]
129
- })] }),
130
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(o, { children: T("auth.field.password", "Password") }), /* @__PURE__ */ g(s, {
131
- value: I,
132
- onChange: L,
133
- placeholder: T("auth.signup.password_placeholder", "At least 12 characters"),
134
- showStrength: !0
135
- })] }),
136
- /* @__PURE__ */ _("label", {
137
- style: {
138
- display: "flex",
139
- alignItems: "flex-start",
140
- gap: 6,
141
- fontSize: 11.5,
142
- color: "var(--text-3)",
143
- lineHeight: 1.5
144
- },
145
- children: [/* @__PURE__ */ g("input", {
146
- type: "checkbox",
147
- style: { marginTop: 2 },
148
- checked: R,
149
- onChange: (e) => z(e.target.checked)
150
- }), /* @__PURE__ */ g(x, {
151
- termsUrl: U,
152
- privacyUrl: W,
153
- t: T
154
- })]
155
- }),
156
- /* @__PURE__ */ g(a, {
157
- type: "submit",
158
- size: "md",
159
- kind: "primary",
160
- style: {
161
- justifyContent: "center",
162
- width: "100%"
163
- },
164
- disabled: S || !R,
165
- children: S ? T("auth.signup.submitting", "Creating…") : T("auth.signup.submit", "Create workspace")
166
- }),
167
- /* @__PURE__ */ _("div", {
168
- style: {
169
- fontSize: 12,
170
- color: "var(--text-3)",
171
- textAlign: "center"
172
- },
173
- children: [
174
- T("auth.signup.have_account", "Already have an account?"),
175
- " ",
176
- /* @__PURE__ */ g(v, {
177
- to: "/login",
178
- style: {
179
- color: "var(--accent)",
180
- fontWeight: 500,
181
- textDecoration: "none"
182
- },
183
- children: T("auth.signin.title", "Sign in")
184
- })
185
- ]
186
- })
187
- ]
188
- })
189
- ]
190
- }) });
191
- }
192
- function x({ termsUrl: t, privacyUrl: n, t: r }) {
193
- let i = r("auth.signup.terms", "Terms"), a = r("auth.signup.privacy", "Privacy"), o = t ? /* @__PURE__ */ g("a", {
194
- href: t,
195
- target: "_blank",
196
- rel: "noopener noreferrer",
197
- style: { color: "var(--accent)" },
198
- children: i
199
- }) : /* @__PURE__ */ g("span", { children: i }), s = n ? /* @__PURE__ */ g("a", {
200
- href: n,
201
- target: "_blank",
202
- rel: "noopener noreferrer",
203
- style: { color: "var(--accent)" },
204
- children: a
205
- }) : /* @__PURE__ */ g("span", { children: a });
206
- return /* @__PURE__ */ g("span", { children: e(r("auth.signup.agreement", "I agree to the {terms} and {privacy}."), {
207
- terms: o,
208
- privacy: s
209
- }) });
210
- }
211
- //#endregion
212
- export { b as SignUp };