@commentkit/comment-kit 2.0.1 → 2.1.0

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 (82) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +14 -6
  3. package/dist/node/cli/api.js +61 -15
  4. package/dist/node/cli/credentials.js +8 -0
  5. package/dist/node/cli/doctor.js +68 -5
  6. package/dist/node/cli/main.js +275 -52
  7. package/dist/node/cli/website.js +140 -0
  8. package/dist/node/types/next.d.ts +4 -4
  9. package/dist/npm/THIRD_PARTY_NOTICES.txt +47 -0
  10. package/dist/npm/chunks/{AgentSend-DOy3jhyF.js → AgentSend-pA7Ufvye.js} +3 -3
  11. package/dist/npm/chunks/Checklist-Cn9skOYK.js +269 -0
  12. package/dist/npm/chunks/Composer-D7H-pzGa.js +734 -0
  13. package/dist/npm/chunks/DatePicker-Nta5a1xD.js +161 -0
  14. package/dist/npm/chunks/{Guest-7hcN765o.js → Guest-Bi7hlzhs.js} +18 -17
  15. package/dist/npm/chunks/{MarkupEditor-6bJGpWGO.js → MarkupEditor-WU3USeTk.js} +2 -2
  16. package/dist/npm/chunks/{Panel-ChPUB68C.js → Panel-DhAzbUbC.js} +308 -309
  17. package/dist/npm/chunks/{Settings-CB5eEKnf.js → Settings-BmKqPX40.js} +34 -33
  18. package/dist/npm/chunks/{Shortcuts-eAyjJ89P.js → Shortcuts-Bl-c0Sez.js} +25 -23
  19. package/dist/npm/chunks/SignInFirst-CmGvSYkQ.js +35 -0
  20. package/dist/npm/chunks/{StyleEditor-CZTdAA5c.js → StyleEditor-D6fUnlwq.js} +4 -4
  21. package/dist/npm/chunks/{StylePanel-B4pHQUL9.js → StylePanel-C-Gikxt1.js} +3 -3
  22. package/dist/npm/chunks/TaskFields-CaKi523b.js +617 -0
  23. package/dist/npm/chunks/ThreadCard-d_3pUB5V.js +1142 -0
  24. package/dist/npm/chunks/{Viewer-DY6zb90M.js → Viewer-BULQsi9-.js} +9 -8
  25. package/dist/npm/chunks/{agent-MTQHr9ei.js → agent-DHdhIJ3s.js} +1 -1
  26. package/dist/npm/chunks/{ar-L5cQ-NPe.js → ar-B5UszrQp.js} +51 -12
  27. package/dist/npm/chunks/{card-bits-CTdrkYn8.js → card-bits-cV8GdFWX.js} +12 -10
  28. package/dist/npm/chunks/{client-7eVxvg5j.js → client-Cv8ddtuM.js} +13 -11
  29. package/dist/npm/chunks/{confetti-BIs5s14P.js → confetti-B9zlyILU.js} +1 -1
  30. package/dist/npm/chunks/{context-Cf6khm7A.js → context-CsHnabaA.js} +1 -1
  31. package/dist/npm/chunks/{de-D0C-v6tP.js → de-BE0Aaq8u.js} +51 -12
  32. package/dist/npm/chunks/{dpop-0A76OPa9.js → dpop-CwW9ifkq.js} +1 -1
  33. package/dist/npm/chunks/entrance-Bn_5M9uO.js +90 -0
  34. package/dist/npm/chunks/{es-Bw4Dj9tN.js → es-BQviao4d.js} +51 -12
  35. package/dist/npm/chunks/{extension-SmoH5AA4.js → extension-CnQTDC1j.js} +2 -2
  36. package/dist/npm/chunks/{extension-DFVOvciD.js → extension-DXhz81XD.js} +1 -1
  37. package/dist/npm/chunks/{files-4lV9YQIX.js → files-DLEr_wmh.js} +2 -2
  38. package/dist/npm/chunks/{fr-TkuQaIAa.js → fr-C5gu6A06.js} +51 -12
  39. package/dist/npm/chunks/{hi-DXSH2U8d.js → hi-DXfQ5EvY.js} +51 -12
  40. package/dist/npm/chunks/{i18n-aVSu9TcJ.js → i18n-Mgs9VOuk.js} +17 -21
  41. package/dist/npm/chunks/icons-_C6ZWmBY.js +141 -0
  42. package/dist/npm/chunks/{identify-BGYh2dVo.js → identify-BnQGJOa0.js} +1 -1
  43. package/dist/npm/chunks/{it-CiWA_bch.js → it-BPHt13FV.js} +51 -12
  44. package/dist/npm/chunks/{ja-C-QmR3yz.js → ja-BkCqyKR0.js} +50 -11
  45. package/dist/npm/chunks/late-words-D4Oo_yhJ.js +57 -0
  46. package/dist/npm/chunks/{live-BExWHzQ7.js → live-DXcxj_Af.js} +28 -22
  47. package/dist/npm/chunks/{nl-CEmZRqjX.js → nl-DZxdLLMU.js} +51 -12
  48. package/dist/npm/chunks/{page-key-HSY3Lze5.js → page-key-UqAozdZi.js} +1 -1
  49. package/dist/npm/chunks/{pick-B3sR7jtS.js → pick-C20RVUas.js} +1 -1
  50. package/dist/npm/chunks/{pkce-CfZhiNBi.js → pkce-BPvWoBrr.js} +1 -1
  51. package/dist/npm/chunks/{pt-BR-b-a8sxO8.js → pt-BR-lA9mJ05F.js} +51 -12
  52. package/dist/npm/chunks/{report-DaVuoRYS.js → report-BjUgUNnT.js} +1 -1
  53. package/dist/npm/chunks/{show-BoN8AC-F.js → show-BinoJyED.js} +7 -7
  54. package/dist/npm/chunks/signin-C2jjsxz9.js +101 -0
  55. package/dist/npm/chunks/{source-mk3rGBBQ.js → source-NuflODx3.js} +1 -1
  56. package/dist/npm/chunks/{src-C8rZFyL_.js → src-9o2Ocq8d.js} +21 -15
  57. package/dist/npm/chunks/start-Cbx6rMrr.js +1904 -0
  58. package/dist/npm/chunks/states-DLMCvwes.js +3 -0
  59. package/dist/npm/chunks/{upload-B2mkgMeJ.js → upload-C4NpM-jE.js} +1 -1
  60. package/dist/npm/chunks/uploads-CY4bDbaI.js +1236 -0
  61. package/dist/npm/chunks/{wrap-DW6EFbVQ.js → wrap-D-xTKIzj.js} +20 -20
  62. package/dist/npm/chunks/{zh-CN-JTscW8u8.js → zh-CN-yqaDHwBx.js} +51 -12
  63. package/dist/npm/element.js +7 -1
  64. package/dist/npm/headless.js +2 -2
  65. package/dist/npm/index.js +2 -2
  66. package/dist/npm/react.js +1 -1
  67. package/dist/npm/svelte.js +1 -1
  68. package/dist/npm/types/adapters/vue.d.ts +12 -0
  69. package/dist/npm/types/core/auth.d.ts +1 -0
  70. package/dist/npm/types/core/client.d.ts +5 -1
  71. package/dist/npm/types/core/types.d.ts +17 -2
  72. package/dist/npm/vue.js +5 -1
  73. package/package.json +2 -1
  74. package/dist/npm/chunks/Checklist-CW_SwMpS.js +0 -282
  75. package/dist/npm/chunks/Composer-Bveq5QrK.js +0 -727
  76. package/dist/npm/chunks/TaskFields-C8BX0Sgg.js +0 -289
  77. package/dist/npm/chunks/ThreadCard-B1EsX3PR.js +0 -1160
  78. package/dist/npm/chunks/late-words-80_VWt8S.js +0 -14
  79. package/dist/npm/chunks/signin-BOWr_WCo.js +0 -75
  80. package/dist/npm/chunks/start-CV4j78_q.js +0 -1894
  81. package/dist/npm/chunks/states-b9Bv3Ci7.js +0 -3
  82. package/dist/npm/chunks/uploads-8AxyRq7g.js +0 -1147
@@ -0,0 +1,161 @@
1
+ import { _ as e, c as t, l as n, m as r, n as i, u as a } from "./i18n-Mgs9VOuk.js";
2
+ import { n as o } from "./icons-_C6ZWmBY.js";
3
+ import { c as s } from "./start-Cbx6rMrr.js";
4
+ // src/ui/DatePicker.tsx
5
+ s(".ck-date-quick{border-bottom:1px solid var(--ck-hairline);flex-wrap:wrap;gap:4px;margin-bottom:4px;padding-bottom:8px;display:flex}.ck-date-chip{white-space:nowrap;border-radius:var(--ck-radius-sm);background:var(--ck-bg-muted);height:24px;color:var(--ck-text);font-size:var(--ck-fs-sm);transition:background-color var(--ck-fast);border:0;padding:0 5px;font-weight:500}.ck-date-clear{color:var(--ck-text-muted);background:0 0;margin-inline-start:auto;padding:0 4px}.ck-date-head{justify-content:space-between;align-items:center;height:28px;margin:4px 0;display:flex}.ck-date-title{font-size:var(--ck-fs-md);font-weight:600}.ck-root[dir=rtl] .ck-date-step svg{scale:-1 1}.ck-date-grid{gap:2px;display:grid}.ck-date-row{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.ck-date-wd{height:24px;color:var(--ck-text-muted);font-size:var(--ck-fs-xs);place-items:center;font-weight:500;display:grid}.ck-date-wd abbr{text-decoration:none}.ck-date-day{border-radius:var(--ck-radius-sm);width:100%;height:30px;color:var(--ck-text);font-size:var(--ck-fs-md);font-variant-numeric:tabular-nums;transition:background-color var(--ck-fast);background:0 0;border:0;padding:0}.ck-date-day[data-other]{color:var(--ck-text-muted)}.ck-date-day[data-today]{box-shadow:inset 0 0 0 1px var(--ck-control);font-weight:600}.ck-date-day[data-selected]{background:var(--ck-accent);color:var(--ck-accent-ink);box-shadow:none;font-weight:600}.ck-date-day:focus-visible{outline-offset:0}@media (hover:hover){.ck-date-chip:hover,.ck-date-day:not([data-selected]):hover{background:var(--ck-bg-hover)}}@media (pointer:coarse){.ck-date-day{height:40px}.ck-date-chip{height:36px}}@media (forced-colors:active){.ck-date-day[data-selected]{color:highlighttext;background:highlight}}");
6
+ var c = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, l = (e) => {
7
+ let [t, n, r] = e.split("-").map(Number);
8
+ return new Date(t, n - 1, r);
9
+ }, u = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), d = (e, t) => {
10
+ let n = new Date(e.getFullYear(), e.getMonth() + t + 1, 0).getDate();
11
+ return new Date(e.getFullYear(), e.getMonth() + t, Math.min(e.getDate(), n));
12
+ };
13
+ function f(e) {
14
+ try {
15
+ let t = new Intl.Locale(e), n = (t.getWeekInfo?.() ?? t.weekInfo)?.firstDay;
16
+ if (n) return n % 7;
17
+ } catch {}
18
+ return /^(en(-(US|CA))?|ja(-JP)?|ko(-KR)?|he(-IL)?|hi(-IN)?|pt-BR|zh-(TW|HK))$/i.test(e) ? 0 : /^ar(-(AF|BH|DJ|DZ|EG|IQ|IR|JO|KW|LY|OM|QA|SD|SY))?$/i.test(e) ? 6 : 1;
19
+ }
20
+ function p({ value: s, onPick: p }) {
21
+ let m = i(), h = /* @__PURE__ */ new Date(), g = c(h), [_, v] = e(() => s ? l(s) : new Date(h.getFullYear(), h.getMonth(), h.getDate())), y = f(m), b = new Date(_.getFullYear(), _.getMonth(), 1), x = u(b, -((b.getDay() - y + 7) % 7)), S = Array.from({ length: 42 }, (e, t) => u(x, t)), C = n() === "rtl", w = (e, t) => {
22
+ try {
23
+ return e.toLocaleDateString(m, t);
24
+ } catch {
25
+ return e.toDateString();
26
+ }
27
+ }, T = r(!0), [E] = e(() => (e) => void (T.current && e?.focus({ preventScroll: !0 }))), D = (e, t) => {
28
+ T.current = t, v(e);
29
+ };
30
+ return /* @__PURE__ */ a("div", {
31
+ class: "ck-date-pick",
32
+ children: [
33
+ /* @__PURE__ */ a("div", {
34
+ class: "ck-date-quick",
35
+ children: [
36
+ /* @__PURE__ */ a("button", {
37
+ type: "button",
38
+ class: "ck-date-chip",
39
+ onClick: () => p(g),
40
+ children: t("today")
41
+ }),
42
+ /* @__PURE__ */ a("button", {
43
+ type: "button",
44
+ class: "ck-date-chip",
45
+ onClick: () => p(c(u(h, 1))),
46
+ children: t("tomorrow")
47
+ }),
48
+ /* @__PURE__ */ a("button", {
49
+ type: "button",
50
+ class: "ck-date-chip",
51
+ onClick: () => p(c(u(h, 7))),
52
+ children: t("nextWeek")
53
+ }),
54
+ s ? /* @__PURE__ */ a("button", {
55
+ type: "button",
56
+ class: "ck-date-chip ck-date-clear",
57
+ onClick: () => p(null),
58
+ children: t("clear")
59
+ }) : null
60
+ ]
61
+ }),
62
+ /* @__PURE__ */ a("div", {
63
+ class: "ck-date-head",
64
+ children: [
65
+ /* @__PURE__ */ a("button", {
66
+ type: "button",
67
+ class: "ck-icon ck-date-step",
68
+ "aria-label": t("previousMonth"),
69
+ onClick: () => D(d(_, -1), !1),
70
+ children: /* @__PURE__ */ a(o, { name: "chevronLeft" })
71
+ }),
72
+ /* @__PURE__ */ a("span", {
73
+ class: "ck-date-title",
74
+ "aria-live": "polite",
75
+ children: w(b, {
76
+ month: "long",
77
+ year: "numeric"
78
+ })
79
+ }),
80
+ /* @__PURE__ */ a("button", {
81
+ type: "button",
82
+ class: "ck-icon ck-date-step",
83
+ "aria-label": t("nextMonth"),
84
+ onClick: () => D(d(_, 1), !1),
85
+ children: /* @__PURE__ */ a(o, { name: "chevronRight" })
86
+ })
87
+ ]
88
+ }),
89
+ /* @__PURE__ */ a("div", {
90
+ class: "ck-date-grid",
91
+ role: "grid",
92
+ "aria-label": w(b, {
93
+ month: "long",
94
+ year: "numeric"
95
+ }),
96
+ onKeyDown: (e) => {
97
+ let t = e.key, n = null;
98
+ if (t === "ArrowLeft") n = u(_, C ? 1 : -1);
99
+ else if (t === "ArrowRight") n = u(_, C ? -1 : 1);
100
+ else if (t === "ArrowUp") n = u(_, -7);
101
+ else if (t === "ArrowDown") n = u(_, 7);
102
+ else if (t === "Home") n = u(_, -((_.getDay() - y + 7) % 7));
103
+ else if (t === "End") n = u(_, 6 - (_.getDay() - y + 7) % 7);
104
+ else if (t === "PageUp") n = d(_, e.shiftKey ? -12 : -1);
105
+ else if (t === "PageDown") n = d(_, e.shiftKey ? 12 : 1);
106
+ else if (t === "Enter" || t === " ") return e.preventDefault(), p(c(_));
107
+ else return;
108
+ e.preventDefault(), D(n, !0);
109
+ },
110
+ children: [/* @__PURE__ */ a("div", {
111
+ role: "row",
112
+ class: "ck-date-row",
113
+ children: S.slice(0, 7).map((e) => /* @__PURE__ */ a("span", {
114
+ role: "columnheader",
115
+ class: "ck-date-wd",
116
+ children: /* @__PURE__ */ a("abbr", {
117
+ title: w(e, { weekday: "long" }),
118
+ children: w(e, { weekday: "narrow" })
119
+ })
120
+ }))
121
+ }), [
122
+ 0,
123
+ 1,
124
+ 2,
125
+ 3,
126
+ 4,
127
+ 5
128
+ ].map((e) => /* @__PURE__ */ a("div", {
129
+ role: "row",
130
+ class: "ck-date-row",
131
+ children: S.slice(e * 7, e * 7 + 7).map((e) => {
132
+ let t = c(e), n = t === c(_);
133
+ return /* @__PURE__ */ a("span", {
134
+ role: "gridcell",
135
+ "aria-selected": t === s,
136
+ children: /* @__PURE__ */ a("button", {
137
+ type: "button",
138
+ class: "ck-date-day",
139
+ tabIndex: n ? 0 : -1,
140
+ ref: n ? E : void 0,
141
+ "data-other": e.getMonth() !== b.getMonth() || void 0,
142
+ "data-today": t === g || void 0,
143
+ "aria-current": t === g ? "date" : void 0,
144
+ "data-selected": t === s || void 0,
145
+ "aria-label": w(e, {
146
+ weekday: "long",
147
+ month: "long",
148
+ day: "numeric",
149
+ year: "numeric"
150
+ }),
151
+ onClick: () => p(t),
152
+ children: e.getDate()
153
+ })
154
+ });
155
+ })
156
+ }))]
157
+ })
158
+ ]
159
+ });
160
+ }
161
+ export { p as DatePicker, f as weekStart, c as ymd };
@@ -1,9 +1,10 @@
1
- import { b as e, o as t, v as n } from "./client-7eVxvg5j.js";
2
- import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-aVSu9TcJ.js";
3
- import { r as u } from "./card-bits-CTdrkYn8.js";
4
- import { C as d, f, s as p } from "./start-CV4j78_q.js";
1
+ import { b as e, o as t, v as n } from "./client-Cv8ddtuM.js";
2
+ import { _ as r, c as i, d as a, f as o, m as s, n as c, u as l } from "./i18n-Mgs9VOuk.js";
3
+ import { n as u } from "./icons-_C6ZWmBY.js";
4
+ import { r as d } from "./card-bits-cV8GdFWX.js";
5
+ import { c as f, h as p } from "./start-Cbx6rMrr.js";
5
6
  // src/ui/Guest.tsx
6
- p(".ck-verify-text{text-wrap:pretty;overflow-wrap:anywhere;margin:0 0 12px;line-height:1.5}.ck-verify .ck-code{height:48px;font-family:var(--ck-mono);font-size:var(--ck-fs-xl);letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums;padding-inline-start:calc(12px + .32em);padding-inline-end:12px}.ck-verify .ck-actions .ck-chip{font-variant-numeric:tabular-nums}.ck-verify .ck-chip:disabled{opacity:.5;cursor:default}.ck-verify .ck-note{margin:12px 0 0}@media (hover:hover){.ck-verify .ck-chip:disabled:hover{background:var(--ck-bg);color:var(--ck-text-muted)}}@media (pointer:coarse){.ck-verify .ck-chip{min-height:44px}}");
7
+ f(".ck-verify-text{text-wrap:pretty;overflow-wrap:anywhere;margin:0 0 12px;line-height:1.5}.ck-verify .ck-code{height:48px;font-family:var(--ck-mono);font-size:var(--ck-fs-xl);letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums;padding-inline-start:calc(12px + .32em);padding-inline-end:12px}.ck-verify .ck-actions .ck-chip{font-variant-numeric:tabular-nums}.ck-verify .ck-chip:disabled{opacity:.5;cursor:default}.ck-verify .ck-note{margin:12px 0 0}@media (hover:hover){.ck-verify .ck-chip:disabled:hover{background:var(--ck-bg);color:var(--ck-text-muted)}}@media (pointer:coarse){.ck-verify .ck-chip{min-height:44px}}");
7
8
  async function m(e, r) {
8
9
  try {
9
10
  let n = await e.api.request("/guest/start", {
@@ -41,7 +42,7 @@ function h() {
41
42
  locale: c()
42
43
  };
43
44
  }
44
- function g({ client: t, email: c, onDone: p, onDifferentEmail: m, onClose: g }) {
45
+ function g({ client: t, email: c, onDone: f, onDifferentEmail: m, onClose: g }) {
45
46
  let [y, b] = r(""), [x, S] = r(!1), [C, w] = r(null), [T, E] = r(null), D = s(null);
46
47
  o(() => D.current?.focus({ preventScroll: !0 }), []);
47
48
  let O = s({}), [k, A] = r(_);
@@ -63,7 +64,7 @@ function g({ client: t, email: c, onDone: p, onDifferentEmail: m, onClose: g })
63
64
  body: n,
64
65
  idempotencyKey: (a = O.current)[r] ?? (a[r] = e(16))
65
66
  });
66
- t.auth.adopt(i), await t.loadSession().catch(() => null), p(i.published_thread_ids ?? []);
67
+ t.auth.adopt(i), await t.loadSession().catch(() => null), f(i.published_thread_ids ?? []);
67
68
  } catch (e) {
68
69
  if ((e instanceof n ? e.status : 0) === 422) return b(""), D.current?.focus({ preventScroll: !0 }), w({
69
70
  text: i("verifyWrong"),
@@ -71,7 +72,7 @@ function g({ client: t, email: c, onDone: p, onDifferentEmail: m, onClose: g })
71
72
  });
72
73
  let r = v(e);
73
74
  r && (t.auth.setPending(null), E(r === "expired" ? "again" : "stop")), w({
74
- text: r ? i(r === "link" ? "verifyLinkExpired" : r === "removed" ? "verifyRemoved" : "verifyExpired") : f(e),
75
+ text: r ? i(r === "link" ? "verifyLinkExpired" : r === "removed" ? "verifyRemoved" : "verifyExpired") : p(e),
75
76
  tone: "warning"
76
77
  });
77
78
  } finally {
@@ -98,7 +99,7 @@ function g({ client: t, email: c, onDone: p, onDifferentEmail: m, onClose: g })
98
99
  };
99
100
  return /* @__PURE__ */ l("div", {
100
101
  class: "ck-card ck-verify",
101
- style: u({
102
+ style: d({
102
103
  x: innerWidth / 2 - 190,
103
104
  y: 80
104
105
  }),
@@ -115,10 +116,10 @@ function g({ client: t, email: c, onDone: p, onDifferentEmail: m, onClose: g })
115
116
  children: i("verifyTitle")
116
117
  }), /* @__PURE__ */ l("button", {
117
118
  class: "ck-ghost",
118
- "aria-label": i("close"),
119
- title: i("close"),
119
+ "aria-label": i("closeVerify"),
120
+ title: i("closeVerify"),
120
121
  onClick: () => g(),
121
- children: /* @__PURE__ */ l(d, { name: "close" })
122
+ children: /* @__PURE__ */ l(u, { name: "clear" })
122
123
  })]
123
124
  }),
124
125
  /* @__PURE__ */ l("div", {
@@ -203,7 +204,7 @@ function v(e) {
203
204
  return e instanceof n ? e.code === "share_expired" || e.status === 410 ? "link" : e.code === "guest_removed" ? "removed" : e.status === 403 ? /\blink\b/i.test(e.message) ? "link" : "removed" : e.status === 409 || e.status === 401 ? "expired" : null : null;
204
205
  }
205
206
  function y({ client: e, position: t, notify: a, onOpen: o }) {
206
- let [s, c] = r(e.auth.finishLink), [u, d] = r(!1), [p, m] = r(null);
207
+ let [s, c] = r(e.auth.finishLink), [u, d] = r(!1), [f, m] = r(null);
207
208
  if (!s) return null;
208
209
  let g = () => {
209
210
  e.auth.finishLink = null, c(null);
@@ -232,7 +233,7 @@ function y({ client: e, position: t, notify: a, onOpen: o }) {
232
233
  403,
233
234
  410,
234
235
  422
235
- ].includes(t instanceof n ? t.status : 0) && (e.auth.finishLink = null), m(r === "finish_link_expired" ? i("finishExpired") : f(t)), d(!1);
236
+ ].includes(t instanceof n ? t.status : 0) && (e.auth.finishLink = null), m(r === "finish_link_expired" ? i("finishExpired") : p(t)), d(!1);
236
237
  }
237
238
  }
238
239
  };
@@ -248,12 +249,12 @@ function y({ client: e, position: t, notify: a, onOpen: o }) {
248
249
  children: i("finishTitle")
249
250
  }),
250
251
  /* @__PURE__ */ l("p", {
251
- role: p ? "alert" : void 0,
252
- children: p ?? i("finishBody")
252
+ role: f ? "alert" : void 0,
253
+ children: f ?? i("finishBody")
253
254
  }),
254
255
  /* @__PURE__ */ l("div", {
255
256
  class: "ck-actions",
256
- children: p && !e.auth.finishLink ? /* @__PURE__ */ l("button", {
257
+ children: f && !e.auth.finishLink ? /* @__PURE__ */ l("button", {
257
258
  class: "ck-btn",
258
259
  onClick: g,
259
260
  children: i("close")
@@ -1,5 +1,5 @@
1
- import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-aVSu9TcJ.js";
2
- import { O as o, m as s, s as c } from "./start-CV4j78_q.js";
1
+ import { _ as e, c as t, d as n, f as r, m as i, u as a } from "./i18n-Mgs9VOuk.js";
2
+ import { A as o, _ as s, c } from "./start-Cbx6rMrr.js";
3
3
  // src/ui/MarkupEditor.tsx
4
4
  c(".ck-markup{z-index:calc(var(--ck-z) + 2);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0a0a0c4d;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.ck-markup canvas{border-radius:var(--ck-radius-md);cursor:crosshair;touch-action:none;background:#fff;max-width:min(100%,1100px);max-height:calc(100dvh - 110px);box-shadow:0 0 0 1px #0000000d,0 20px 50px #00000040}.ck-label-box .ck-input{width:200px;font-weight:600}.ck-markup .ck-markup-tools{background:var(--ck-bg);border-radius:var(--ck-radius-pill);max-width:100%;box-shadow:var(--ck-shadow);border:1px solid #0000;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px;padding:4px;display:flex}.ck-markup .ck-markup-group{align-items:center;gap:4px;padding:0 4px;display:flex}.ck-markup .ck-markup-group+.ck-markup-group{border-inline-start:1px solid var(--ck-hairline);margin-inline-start:4px;padding-inline-start:8px}.ck-markup .ck-tool{border-radius:var(--ck-radius-pill);width:32px;height:32px;color:var(--ck-text-muted);transition:background-color var(--ck-fast), color var(--ck-fast), scale var(--ck-fast) ease-out;background:0 0;border:0;place-items:center;padding:0;display:grid}.ck-markup .ck-tool[aria-pressed=true]{background:var(--ck-accent-soft);color:var(--ck-accent-text)}.ck-markup .ck-tool:active,.ck-markup .ck-icon-btn:active:not([aria-disabled=true]){scale:.96}.ck-markup .ck-dot{width:16px;height:16px;box-shadow:inset 0 0 0 1px var(--ck-hairline);border-radius:50%;display:block}.ck-markup .ck-tool[aria-pressed=true] .ck-dot{box-shadow:0 0 0 2px var(--ck-bg), 0 0 0 4px currentColor}.ck-markup .ck-width{gap:8px;width:152px}.ck-markup .ck-width input{min-width:0;accent-color:var(--ck-accent);cursor:pointer;flex:1}.ck-markup .ck-width span{width:32px;font-size:var(--ck-fs-sm);color:var(--ck-text-muted);font-variant-numeric:tabular-nums;text-align:end;flex:none}.ck-markup .ck-btn-group{display:inline-flex}.ck-markup .ck-icon-btn{border:1px solid var(--ck-control);background:var(--ck-bg);width:32px;height:32px;color:var(--ck-text);transition:background-color var(--ck-fast), scale var(--ck-fast) ease-out;place-items:center;padding:0;display:grid}.ck-markup .ck-icon-btn+.ck-icon-btn{margin-inline-start:-1px}.ck-markup .ck-icon-btn:first-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:first-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){border-top-right-radius:var(--ck-radius-sm);border-bottom-right-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:-webkit-any(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:last-child:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){border-top-left-radius:var(--ck-radius-sm);border-bottom-left-radius:var(--ck-radius-sm)}.ck-markup .ck-icon-btn:focus-visible{z-index:1;position:relative}.ck-markup .ck-icon-btn[aria-disabled=true]{opacity:.5;cursor:default}.ck-markup .ck-icon-btn.ck-primary{border-color:var(--ck-accent);background:var(--ck-accent);color:var(--ck-accent-ink);position:relative}.ck-markup .ck-label-box{z-index:1;border-radius:var(--ck-radius-md);background:var(--ck-bg);box-shadow:var(--ck-shadow);border:1px solid #0000;align-items:center;gap:4px;padding:4px;display:flex;position:fixed}.ck-markup .ck-label-box .ck-input{border-radius:var(--ck-radius-sm);height:32px}.ck-markup .ck-label-box .ck-chip{flex:none;height:32px}@media (hover:hover){.ck-markup .ck-icon-btn:hover:not([aria-disabled=true]):not(.ck-primary){background:var(--ck-bg-hover)}.ck-markup .ck-tool:hover{background:var(--ck-bg-hover);color:var(--ck-text)}}@media (forced-colors:active){.ck-markup .ck-tool[aria-pressed=true]{color:highlighttext;background:highlight}}@media (pointer:coarse){.ck-markup .ck-tool,.ck-markup .ck-icon-btn{width:44px;height:44px}}@media (max-width:520px){.ck-markup .ck-markup-tools{border-radius:var(--ck-radius)}}");
5
5
  var l = /* @__PURE__ */ new WeakSet(), u = [