@tempots/beatui 0.37.0 → 0.39.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 (96) hide show
  1. package/dist/{2019-B1QESOSc.cjs → 2019-1S9vgvv2.cjs} +1 -1
  2. package/dist/{2019-RaU4YQ5c.js → 2019-DPD_eCKE.js} +2 -2
  3. package/dist/{2020-BI-SxTSK.cjs → 2020-CGrbEEmD.cjs} +1 -1
  4. package/dist/{2020-BAomdSE8.js → 2020-aLm9VmDL.js} +2 -2
  5. package/dist/{ar-CqAHPRKu.cjs → ar-B0vT_MPe.cjs} +1 -1
  6. package/dist/{ar-avevuYiW.js → ar-CbM09z5P.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +4 -4
  9. package/dist/beatui.css +447 -83
  10. package/dist/beatui.tailwind.css +447 -83
  11. package/dist/{de-Cz7ah611.js → de-Dd907tZQ.js} +1 -1
  12. package/dist/{de--4OtRESW.cjs → de-tK36cL_u.cjs} +1 -1
  13. package/dist/{es-CiNQQzF1.js → es-BkJxjMdG.js} +1 -1
  14. package/dist/{es-CE1wRgxl.cjs → es-K35LRZa-.cjs} +1 -1
  15. package/dist/{fa-DjuJZNLK.cjs → fa-BBikwwku.cjs} +1 -1
  16. package/dist/{fa-Gkt0b9XN.js → fa-DBTUBsw_.js} +1 -1
  17. package/dist/{fr-DotyzMGL.cjs → fr-DMtXrrnJ.cjs} +1 -1
  18. package/dist/{fr-xM9p9Q6G.js → fr-Fmupo556.js} +1 -1
  19. package/dist/{he-CoO6PsiS.js → he-DkI64oaY.js} +1 -1
  20. package/dist/{he-BQ6ygVEQ.cjs → he-on3Ivp8g.cjs} +1 -1
  21. package/dist/{hi-BCfJ0mRh.cjs → hi-CNFV8ITE.cjs} +1 -1
  22. package/dist/{hi-DA3-4Cdo.js → hi-GdD5MihT.js} +1 -1
  23. package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
  24. package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
  25. package/dist/{index-CCu0qfNP.cjs → index-BA93M8Ux.cjs} +1 -1
  26. package/dist/{index-C2rz3G1d.js → index-BK8t6gqu.js} +3 -3
  27. package/dist/{index-C_nSdynJ.js → index-BfFlhmAq.js} +1 -1
  28. package/dist/{index-BS0NyhvV.js → index-BkQ7xHgi.js} +5 -5
  29. package/dist/{index-CZQHL_pf.cjs → index-CPBlySmE.cjs} +1 -1
  30. package/dist/{index-Dc9UNC8n.js → index-LUItEwlw.js} +1 -1
  31. package/dist/{index-BKjL6RO2.cjs → index-e8oQ-k0x.cjs} +2 -2
  32. package/dist/{index-BzApzJXc.cjs → index-wdi93sK4.cjs} +1 -1
  33. package/dist/index.cjs.js +4 -4
  34. package/dist/index.es.js +3075 -2812
  35. package/dist/{it-pv2Gm3jb.cjs → it-BDOzBRkQ.cjs} +1 -1
  36. package/dist/{it-EdPuWBJR.js → it-Bpnfd60V.js} +1 -1
  37. package/dist/{ja-CuRaPMgh.cjs → ja-N-7c7zD7.cjs} +1 -1
  38. package/dist/{ja-BSRCR430.js → ja-SjlGNgs9.js} +1 -1
  39. package/dist/json-schema/index.cjs.js +1 -1
  40. package/dist/json-schema/index.es.js +1 -1
  41. package/dist/{ko-C7YP1PL4.cjs → ko-BBeTXIlY.cjs} +1 -1
  42. package/dist/{ko-Dm4oD1fh.js → ko-CH69ZNts.js} +1 -1
  43. package/dist/modal-BD76Rve3.js +633 -0
  44. package/dist/modal-DQycMZ8_.cjs +1 -0
  45. package/dist/{nl-ClCD6lP-.cjs → nl-C2C9QDH2.cjs} +1 -1
  46. package/dist/{nl-B0l1kdfd.js → nl-DnvMlW8v.js} +1 -1
  47. package/dist/notice-CFoc4PJe.cjs +2 -0
  48. package/dist/{notice-C7o5d8Jw.js → notice-CQZseCQs.js} +388 -378
  49. package/dist/{pl-DVKneBSY.js → pl-CBEX2qN1.js} +1 -1
  50. package/dist/{pl-fyCkqVrr.cjs → pl-sNBCzEUd.cjs} +1 -1
  51. package/dist/prosemirror/index.cjs.js +1 -1
  52. package/dist/prosemirror/index.es.js +1 -1
  53. package/dist/{pt-BHExG3lf.cjs → pt-Bvxg9VEA.cjs} +1 -1
  54. package/dist/{pt-Bw0sTDOX.js → pt-ByFqFAdQ.js} +1 -1
  55. package/dist/{ru-B26VQ4f9.js → ru-6d5JfoDw.js} +1 -1
  56. package/dist/{ru-PuEOLDw1.cjs → ru-CPAdsn4m.cjs} +1 -1
  57. package/dist/tailwind/index.cjs.js +1 -1
  58. package/dist/tailwind/index.es.js +1 -1
  59. package/dist/tailwind/preset.cjs.js +1 -1
  60. package/dist/tailwind/preset.es.js +1 -1
  61. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  62. package/dist/tailwind/vite-plugin.es.js +1 -1
  63. package/dist/{toolbar-ClJbaKID.js → toolbar-Cl_TAa3r.js} +1 -1
  64. package/dist/{toolbar-kwkvH3nX.cjs → toolbar-Dw2VQD9y.cjs} +1 -1
  65. package/dist/{tr-CI97fTpD.cjs → tr-IKZtCQQR.cjs} +1 -1
  66. package/dist/{tr-DQMivdvy.js → tr-gv4vJfm8.js} +1 -1
  67. package/dist/{translations-ZB5oDFId.cjs → translations-CK426qyd.cjs} +1 -1
  68. package/dist/translations-DJR65Jii.cjs +1 -0
  69. package/dist/{translations-1yD6Rm5l.js → translations-DXLmnUiB.js} +1 -1
  70. package/dist/{translations-iam7PITs.js → translations-djDSPqdb.js} +56 -73
  71. package/dist/types/components/beatui.d.ts +4 -1
  72. package/dist/types/components/button/button.d.ts +4 -3
  73. package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
  74. package/dist/types/components/form/use-form.d.ts +1 -1
  75. package/dist/types/components/misc/index.d.ts +4 -0
  76. package/dist/types/components/misc/notification-provider.d.ts +47 -0
  77. package/dist/types/components/misc/notification.d.ts +17 -0
  78. package/dist/types/components/misc/opengraph.d.ts +111 -0
  79. package/dist/types/components/navigation/link/button-link.d.ts +2 -0
  80. package/dist/types/components/overlay/lightbox.d.ts +1 -1
  81. package/dist/types/components/overlay/modal.d.ts +2 -2
  82. package/dist/types/components/overlay/ribbon.d.ts +2 -2
  83. package/dist/types/utils/use-animated-toggle.d.ts +30 -9
  84. package/dist/{ur-B3CiO8KH.cjs → ur-Bgq_2yjr.cjs} +1 -1
  85. package/dist/{ur-o3rog5MJ.js → ur-Bo6bjEBS.js} +1 -1
  86. package/dist/{utils-BcIRhDH0.cjs → utils-Bsrfm-0d.cjs} +1 -1
  87. package/dist/{utils-C7619Rp3.js → utils-Bw911Eo4.js} +2 -2
  88. package/dist/{vi-FibsLfdk.cjs → vi-BrUQnj-8.cjs} +1 -1
  89. package/dist/{vi-C7cb2K_B.js → vi-xDLJ3TIx.js} +1 -1
  90. package/dist/{zh-NGrfqAHM.js → zh-BivWxJJh.js} +1 -1
  91. package/dist/{zh-BtSj_Euh.cjs → zh-BqH1Cioq.cjs} +1 -1
  92. package/package.json +3 -3
  93. package/dist/modal-CxG-RO9B.js +0 -601
  94. package/dist/modal-OMSAbIg1.cjs +0 -1
  95. package/dist/notice-0Xhzr7qR.cjs +0 -2
  96. package/dist/translations-DQxg-W9w.cjs +0 -1
@@ -0,0 +1,633 @@
1
+ import { WithElement as S, OnDispose as W, prop as z, attr as g, computedOf as A, Fragment as R, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as F, aria as O, on as X, When as q, Use as H, coalesce as I } from "@tempots/dom";
2
+ import { g as V, T as j } from "./timer-DzWb416P.js";
3
+ import { s as Y, C as Z } from "./notice-CQZseCQs.js";
4
+ import { a as K, B as _ } from "./translations-djDSPqdb.js";
5
+ const ee = [
6
+ "a[href]",
7
+ "button:not([disabled])",
8
+ "input:not([disabled])",
9
+ "select:not([disabled])",
10
+ "textarea:not([disabled])",
11
+ '[tabindex]:not([tabindex="-1"])',
12
+ '[contenteditable="true"]',
13
+ "audio[controls]",
14
+ "video[controls]",
15
+ "details > summary:first-of-type",
16
+ "details[open]"
17
+ ].join(", ");
18
+ function te(o) {
19
+ return Array.from(o.querySelectorAll(ee)).filter(
20
+ (t) => {
21
+ const s = t;
22
+ return s.offsetWidth > 0 && s.offsetHeight > 0 && !s.hasAttribute("inert") && window.getComputedStyle(s).visibility !== "hidden";
23
+ }
24
+ );
25
+ }
26
+ function $(o = {}) {
27
+ const {
28
+ active: t = !0,
29
+ escapeDeactivates: s = !0,
30
+ onEscape: e,
31
+ initialFocus: n,
32
+ returnFocus: a,
33
+ clickOutsideDeactivates: i = !1,
34
+ onClickOutside: d
35
+ } = o;
36
+ return S((f) => {
37
+ let m = t, p = null, c = [];
38
+ typeof document < "u" && (p = document.activeElement);
39
+ const v = () => {
40
+ c = te(f);
41
+ }, b = (l) => {
42
+ if (m) {
43
+ if (s && l.key === "Escape") {
44
+ l.preventDefault(), e?.();
45
+ return;
46
+ }
47
+ if (l.key === "Tab") {
48
+ if (v(), c.length === 0) {
49
+ l.preventDefault();
50
+ return;
51
+ }
52
+ const r = c.indexOf(
53
+ document.activeElement
54
+ );
55
+ l.shiftKey ? r <= 0 && (l.preventDefault(), c[c.length - 1]?.focus()) : r >= c.length - 1 && (l.preventDefault(), c[0]?.focus());
56
+ }
57
+ }
58
+ }, h = (l) => {
59
+ if (!m || !i) return;
60
+ const r = l.target;
61
+ f.contains(r) || d?.();
62
+ }, y = () => {
63
+ if (!m) return;
64
+ v();
65
+ let l = null;
66
+ typeof n == "function" ? l = n() : n ? l = n : c.length > 0 && (l = c[0]), l && setTimeout(() => {
67
+ l?.focus();
68
+ }, 50), document.addEventListener("keydown", b, !0), i && document.addEventListener("click", h, !0);
69
+ }, C = () => {
70
+ m = !1, document.removeEventListener("keydown", b, !0), document.removeEventListener("click", h, !0);
71
+ let l = null;
72
+ typeof a == "function" ? l = a() : a ? l = a : p && (l = p), l && document.body.contains(l) && setTimeout(() => {
73
+ l?.focus();
74
+ }, 0);
75
+ };
76
+ return setTimeout(() => y(), 0), W(() => {
77
+ C();
78
+ });
79
+ });
80
+ }
81
+ function me(o = {}) {
82
+ return {
83
+ activate: () => $({ ...o, active: !0 }),
84
+ deactivate: () => $({ ...o, active: !1 })
85
+ };
86
+ }
87
+ function N({
88
+ initialStatus: o = "closed",
89
+ openedAfter: t,
90
+ closedAfter: s
91
+ }) {
92
+ const e = z(o), n = () => {
93
+ e.set("start-opening");
94
+ }, a = () => {
95
+ e.set("start-closing");
96
+ }, i = e.map(
97
+ (r) => r !== "closed" && r !== "start-closing" && r !== "closing"
98
+ ), d = (r) => {
99
+ r ? n() : a();
100
+ }, f = () => {
101
+ d(!i.value);
102
+ }, m = [], p = (r) => {
103
+ m.push(
104
+ e.on((x) => {
105
+ x === "closed" && r();
106
+ })
107
+ );
108
+ };
109
+ let c = () => {
110
+ };
111
+ e.on((r) => {
112
+ switch (c(), r) {
113
+ case "start-opening":
114
+ c = V(() => e.set("opening"));
115
+ break;
116
+ case "opening":
117
+ c = t(() => e.set("opened"));
118
+ break;
119
+ case "start-closing":
120
+ c = V(() => e.set("closing"));
121
+ break;
122
+ case "closing":
123
+ c = s(() => e.set("closed"));
124
+ break;
125
+ case "closed":
126
+ c = () => {
127
+ };
128
+ break;
129
+ }
130
+ }), e.onDispose(() => {
131
+ m.forEach((r) => r()), c();
132
+ });
133
+ const v = e.map((r) => r === "closed"), b = e.map((r) => r === "start-opening"), h = e.map((r) => r === "opening"), y = e.map((r) => r === "opened"), C = e.map((r) => r === "closing"), l = e.map((r) => r === "start-closing");
134
+ return {
135
+ status: e,
136
+ open: n,
137
+ close: a,
138
+ toggle: f,
139
+ setOpen: d,
140
+ display: i,
141
+ isClosed: v,
142
+ isStartOpening: b,
143
+ isOpening: h,
144
+ isOpened: y,
145
+ isClosing: C,
146
+ isStartClosing: l,
147
+ dispose: () => e.dispose(),
148
+ listenOnClosed: p
149
+ };
150
+ }
151
+ function fe({
152
+ initialStatus: o = "closed",
153
+ duration: t,
154
+ openDuration: s = t ?? 500,
155
+ closeDuration: e = t ?? 500
156
+ } = {}) {
157
+ return N({
158
+ initialStatus: o,
159
+ openedAfter: (n) => j(n, s),
160
+ closedAfter: (n) => j(n, e)
161
+ });
162
+ }
163
+ function P(o, t) {
164
+ let s = !1, e = null;
165
+ function n() {
166
+ s || (s = !0, o.removeEventListener("transitionend", a), o.removeEventListener("animationend", i), e && (clearTimeout(e), e = null), t());
167
+ }
168
+ function a(m) {
169
+ m.target === o && n();
170
+ }
171
+ function i(m) {
172
+ m.target === o && n();
173
+ }
174
+ const f = V(() => {
175
+ if (typeof o.getAnimations > "u") {
176
+ e = setTimeout(n, 16);
177
+ return;
178
+ }
179
+ o.addEventListener("transitionend", a), o.addEventListener("animationend", i), o.getAnimations().length === 0 && (e = setTimeout(n, 1e3));
180
+ });
181
+ return () => {
182
+ s = !0, f(), e && (clearTimeout(e), e = null), o.removeEventListener("transitionend", a), o.removeEventListener("animationend", i);
183
+ };
184
+ }
185
+ function G({
186
+ initialStatus: o = "closed",
187
+ element: t
188
+ } = {}) {
189
+ let s = t;
190
+ return {
191
+ setElement: (e) => {
192
+ s = e;
193
+ },
194
+ ...N({
195
+ initialStatus: o,
196
+ openedAfter: (e) => s == null ? (e(), () => {
197
+ }) : P(s, e),
198
+ closedAfter: (e) => s == null ? (e(), () => {
199
+ }) : P(s, e)
200
+ })
201
+ };
202
+ }
203
+ function se({
204
+ animation: o = "fade",
205
+ status: t
206
+ }) {
207
+ return g.class(
208
+ A(
209
+ o,
210
+ t
211
+ )(
212
+ (s, e) => `bc-animated-toggle bc-animated-toggle--${s} bc-animated-toggle--${e}`
213
+ )
214
+ );
215
+ }
216
+ function pe({
217
+ initialStatus: o = "closed",
218
+ animation: t = "fade"
219
+ }, s) {
220
+ return S((e) => {
221
+ const { setElement: n, dispose: a, ...i } = G({
222
+ initialStatus: o,
223
+ element: e
224
+ });
225
+ return n(e), R(
226
+ se({ status: i.status, animation: t }),
227
+ W(a),
228
+ s(i)
229
+ );
230
+ });
231
+ }
232
+ function ne(o) {
233
+ return {
234
+ "~standard": {
235
+ version: 1,
236
+ vendor: "beatui-custom",
237
+ validate: (s) => {
238
+ const e = o.validate(s);
239
+ return e.success ? { value: e.data } : {
240
+ issues: e.errors.map((n) => ({
241
+ message: n.message,
242
+ path: n.path
243
+ }))
244
+ };
245
+ },
246
+ types: void 0
247
+ },
248
+ safeParse: (s) => {
249
+ const e = o.validate(s);
250
+ return e.success ? { success: !0, data: e.data } : {
251
+ success: !1,
252
+ error: {
253
+ errors: e.errors.map((n) => ({
254
+ message: n.message,
255
+ path: n.path?.map(
256
+ (a) => typeof a == "object" && "key" in a ? a.key.toString() : a.toString()
257
+ ) || []
258
+ }))
259
+ }
260
+ };
261
+ }
262
+ };
263
+ }
264
+ class T {
265
+ optional() {
266
+ return new oe(this);
267
+ }
268
+ default(t) {
269
+ return new ae(this, t);
270
+ }
271
+ schema() {
272
+ return ne(this);
273
+ }
274
+ }
275
+ class w extends T {
276
+ minLength;
277
+ maxLength;
278
+ pattern;
279
+ customValidations = [];
280
+ validate(t) {
281
+ if (typeof t != "string")
282
+ return { success: !1, errors: [{ message: "Expected string" }] };
283
+ const s = [];
284
+ this.minLength !== void 0 && t.length < this.minLength && s.push({ message: `Must be at least ${this.minLength} characters` }), this.maxLength !== void 0 && t.length > this.maxLength && s.push({ message: `Must be at most ${this.maxLength} characters` }), this.pattern && !this.pattern.test(t) && s.push({ message: "Invalid format" });
285
+ for (const e of this.customValidations) {
286
+ const n = e(t);
287
+ n && s.push({ message: n });
288
+ }
289
+ return s.length > 0 ? { success: !1, errors: s } : { success: !0, data: t };
290
+ }
291
+ min(t, s) {
292
+ const e = new w();
293
+ return e.minLength = t, e.maxLength = this.maxLength, e.pattern = this.pattern, e.customValidations = [...this.customValidations], s && e.customValidations.push(
294
+ (n) => n.length < t ? s : null
295
+ ), e;
296
+ }
297
+ max(t, s) {
298
+ const e = new w();
299
+ return e.minLength = this.minLength, e.maxLength = t, e.pattern = this.pattern, e.customValidations = [...this.customValidations], s && e.customValidations.push(
300
+ (n) => n.length > t ? s : null
301
+ ), e;
302
+ }
303
+ regex(t, s) {
304
+ const e = new w();
305
+ return e.minLength = this.minLength, e.maxLength = this.maxLength, e.pattern = t, e.customValidations = [...this.customValidations], s && e.customValidations.push(
306
+ (n) => t.test(n) ? null : s
307
+ ), e;
308
+ }
309
+ email(t = "Please enter a valid email address") {
310
+ const s = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, e = new w();
311
+ return e.minLength = this.minLength, e.maxLength = this.maxLength, e.pattern = this.pattern, e.customValidations = [
312
+ ...this.customValidations,
313
+ (n) => s.test(n) ? null : t
314
+ ], e;
315
+ }
316
+ refine(t) {
317
+ const s = new w();
318
+ return s.minLength = this.minLength, s.maxLength = this.maxLength, s.pattern = this.pattern, s.customValidations = [...this.customValidations, t], s;
319
+ }
320
+ }
321
+ class B extends T {
322
+ mustBeTrue = !1;
323
+ trueMessage;
324
+ validate(t) {
325
+ return typeof t != "boolean" ? { success: !1, errors: [{ message: "Expected boolean" }] } : this.mustBeTrue && t !== !0 ? {
326
+ success: !1,
327
+ errors: [{ message: this.trueMessage || "Must be true" }]
328
+ } : { success: !0, data: t };
329
+ }
330
+ refine(t, s) {
331
+ const e = new B();
332
+ e.mustBeTrue = this.mustBeTrue, e.trueMessage = this.trueMessage;
333
+ const n = e.validate.bind(e);
334
+ return e.validate = (a) => {
335
+ const i = n(a);
336
+ return i.success ? t(i.data) ? i : { success: !1, errors: [{ message: s }] } : i;
337
+ }, e;
338
+ }
339
+ literal(t, s) {
340
+ const e = new B();
341
+ return e.mustBeTrue = !0, e.trueMessage = s, e;
342
+ }
343
+ }
344
+ class oe extends T {
345
+ constructor(t) {
346
+ super(), this.inner = t;
347
+ }
348
+ validate(t) {
349
+ if (t === void 0)
350
+ return { success: !0, data: void 0 };
351
+ const s = this.inner.validate(t);
352
+ return s.success ? { success: !0, data: s.data } : { success: !1, errors: s.errors };
353
+ }
354
+ }
355
+ class ae extends T {
356
+ constructor(t, s) {
357
+ super(), this.inner = t, this.defaultValue = s;
358
+ }
359
+ validate(t) {
360
+ return t === void 0 ? { success: !0, data: this.defaultValue } : this.inner.validate(t);
361
+ }
362
+ }
363
+ class M extends T {
364
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
365
+ constructor(t) {
366
+ super(), this.shape = t;
367
+ }
368
+ validate(t) {
369
+ if (typeof t != "object" || t === null || Array.isArray(t))
370
+ return { success: !1, errors: [{ message: "Expected object" }] };
371
+ const s = t, e = {}, n = [];
372
+ for (const [a, i] of Object.entries(this.shape)) {
373
+ const d = i.validate(s[a]);
374
+ if (d.success)
375
+ e[a] = d.data;
376
+ else
377
+ for (const f of d.errors)
378
+ n.push({
379
+ message: f.message,
380
+ path: [a, ...f.path || []]
381
+ });
382
+ }
383
+ return n.length > 0 ? { success: !1, errors: n } : { success: !0, data: e };
384
+ }
385
+ refine(t, s) {
386
+ const e = new M(this.shape), n = e.validate.bind(e);
387
+ return e.validate = (a) => {
388
+ const i = n(a);
389
+ if (!i.success) return i;
390
+ const d = t(i.data);
391
+ return d ? {
392
+ success: !1,
393
+ errors: [
394
+ {
395
+ message: d,
396
+ path: s?.path
397
+ }
398
+ ]
399
+ } : { success: !0, data: i.data };
400
+ }, e;
401
+ }
402
+ }
403
+ const he = () => new w(), ge = () => new B(), be = (o) => new M(o);
404
+ function re(o) {
405
+ return J((t) => {
406
+ const s = [], e = () => s.forEach((a) => a());
407
+ return o(({
408
+ effect: a = "opaque",
409
+ mode: i = "capturing",
410
+ onClickOutside: d,
411
+ onEscape: f,
412
+ content: m,
413
+ container: p = "body"
414
+ }) => {
415
+ p === "body" && (t = t.makePortal("body"));
416
+ const c = G();
417
+ c.listenOnClosed(e);
418
+ let v = () => {
419
+ }, b = () => {
420
+ };
421
+ const h = (E) => {
422
+ E.key === "Escape" && (f?.(), c.close());
423
+ }, y = () => {
424
+ d?.(), c.close();
425
+ }, C = (E) => {
426
+ v(), b(), E === "capturing" ? (document.addEventListener("keydown", h), v = () => document.removeEventListener("keydown", h), t.element.addEventListener("mousedown", y), b = () => t.element.removeEventListener("mousedown", y)) : (v = () => {
427
+ }, b = () => {
428
+ });
429
+ }, l = U.on(i, C);
430
+ s.push(l), s.push(() => {
431
+ c.dispose(), v(), b();
432
+ });
433
+ const x = Q((() => {
434
+ const E = /* @__PURE__ */ new Set();
435
+ for (const u of t.element.querySelectorAll(
436
+ ":scope > :not([data-overlay])"
437
+ ))
438
+ u.hasAttribute("inert") ? E.add(u) : u.setAttribute("inert", "");
439
+ return s.push(() => {
440
+ for (const u of t.element.querySelectorAll(
441
+ ":scope > :not([data-overlay])"
442
+ ))
443
+ E.has(u) || u.removeAttribute("inert");
444
+ E.clear();
445
+ }), document.activeElement?.blur?.(), k.div(
446
+ S((u) => c.setElement(u)),
447
+ F.status(c.status.map(String)),
448
+ F.overlay("true"),
449
+ g.class(
450
+ A(
451
+ a ?? "opaque",
452
+ i
453
+ )(
454
+ (u, L) => `bc-overlay bc-overlay--effect-${u} bc-overlay--mode-${L}`
455
+ )
456
+ ),
457
+ m
458
+ );
459
+ })(), t.element, {
460
+ disposeWithParent: !0,
461
+ clear: !1,
462
+ providers: t.providers
463
+ });
464
+ s.push(x), V(() => c.open());
465
+ }, e);
466
+ });
467
+ }
468
+ function ie(o, t) {
469
+ const {
470
+ size: s = "md",
471
+ dismissable: e = !0,
472
+ showCloseButton: n = !0,
473
+ onClose: a,
474
+ overlayEffect: i = "opaque",
475
+ container: d = "body",
476
+ position: f = "center"
477
+ } = o;
478
+ return re((m, p) => {
479
+ let c = () => {
480
+ };
481
+ return t((h) => {
482
+ c = p;
483
+ const y = z("capturing");
484
+ U.on(e, (u) => {
485
+ y.set(u ? "capturing" : "non-capturing");
486
+ });
487
+ const C = A(
488
+ h.header != null,
489
+ n
490
+ )((u, L) => u || L), l = Y("modal"), r = `${l}-header`, x = `${l}-body`, E = k.div(
491
+ g.class(
492
+ A(
493
+ s,
494
+ f
495
+ )(
496
+ (u, L) => `bc-modal bc-modal--size-${u} bc-modal--container-${d} bc-modal--position-${L}`
497
+ )
498
+ ),
499
+ // Essential ARIA attributes for modal dialog
500
+ g.role("dialog"),
501
+ O.modal(!0),
502
+ ...h.header ? [O.labelledby(r)] : [],
503
+ O.describedby(x),
504
+ g.tabindex(-1),
505
+ // Make modal focusable for initial focus
506
+ g.id(l),
507
+ F.focusTrap("true"),
508
+ // Mark as focus trap container
509
+ X.mousedown((u) => u.stopPropagation()),
510
+ // Prevent overlay click-outside when clicking modal content
511
+ // Focus trap implementation
512
+ $({
513
+ escapeDeactivates: !1,
514
+ // Let Overlay handle escape key
515
+ initialFocus: () => {
516
+ const u = document.getElementById(l);
517
+ if (!u) return null;
518
+ const L = u.querySelector(
519
+ '[aria-label="Close modal"]'
520
+ );
521
+ if (L) return L;
522
+ const D = u.querySelector(
523
+ 'button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
524
+ );
525
+ return D || u;
526
+ }
527
+ }),
528
+ // Modal content container
529
+ k.div(
530
+ g.class("bc-modal__content"),
531
+ // Header section
532
+ q(
533
+ C,
534
+ () => k.div(
535
+ g.class("bc-modal__header"),
536
+ k.div(
537
+ g.class("bc-modal__title"),
538
+ ...h.header ? [g.id(r)] : [],
539
+ h.header
540
+ ),
541
+ q(
542
+ n,
543
+ () => H(
544
+ K,
545
+ (u) => Z({
546
+ size: "sm",
547
+ label: u.$.closeModal,
548
+ onClick: () => {
549
+ c(), p();
550
+ }
551
+ })
552
+ )
553
+ )
554
+ )
555
+ ),
556
+ // Body section
557
+ k.div(g.class("bc-modal__body"), g.id(x), h.body),
558
+ // Footer section
559
+ h.footer && k.div(g.class("bc-modal__footer"), h.footer)
560
+ )
561
+ );
562
+ m({
563
+ mode: y,
564
+ effect: i ?? "opaque",
565
+ container: d,
566
+ content: E,
567
+ onClickOutside: () => {
568
+ a?.(), p();
569
+ },
570
+ onEscape: () => {
571
+ a?.(), p();
572
+ }
573
+ });
574
+ }, () => {
575
+ c(), p();
576
+ });
577
+ });
578
+ }
579
+ function ve(o, t) {
580
+ const { confirmText: s, cancelText: e, onConfirm: n, onCancel: a, ...i } = o;
581
+ return H(
582
+ K,
583
+ (d) => ie({ showCloseButton: !1, ...i }, (f, m) => {
584
+ const p = () => {
585
+ n?.(), m();
586
+ }, c = () => {
587
+ a?.(), m();
588
+ };
589
+ return t((b) => {
590
+ f({
591
+ body: b,
592
+ footer: R(
593
+ g.class("bc-modal__actions"),
594
+ _(
595
+ {
596
+ variant: "outline",
597
+ onClick: c
598
+ },
599
+ I(e, d.$.cancel)
600
+ ),
601
+ _(
602
+ {
603
+ color: "primary",
604
+ variant: "filled",
605
+ onClick: p
606
+ },
607
+ I(s, d.$.confirm)
608
+ )
609
+ )
610
+ });
611
+ }, m);
612
+ })
613
+ );
614
+ }
615
+ export {
616
+ se as A,
617
+ B,
618
+ ve as C,
619
+ $ as F,
620
+ ie as M,
621
+ re as O,
622
+ w as S,
623
+ pe as a,
624
+ ge as b,
625
+ M as c,
626
+ ne as d,
627
+ me as e,
628
+ N as f,
629
+ fe as g,
630
+ be as o,
631
+ he as s,
632
+ G as u
633
+ };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("@tempots/dom"),w=require("./timer-DK_yKNwE.cjs"),q=require("./notice-CFoc4PJe.cjs"),O=require("./translations-DJR65Jii.cjs"),_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]',"audio[controls]","video[controls]","details > summary:first-of-type","details[open]"].join(", ");function P(a){return Array.from(a.querySelectorAll(_)).filter(t=>{const s=t;return s.offsetWidth>0&&s.offsetHeight>0&&!s.hasAttribute("inert")&&window.getComputedStyle(s).visibility!=="hidden"})}function V(a={}){const{active:t=!0,escapeDeactivates:s=!0,onEscape:e,initialFocus:o,returnFocus:r,clickOutsideDeactivates:c=!1,onClickOutside:m}=a;return n.WithElement(h=>{let f=t,p=null,l=[];typeof document<"u"&&(p=document.activeElement);const v=()=>{l=P(h)},b=u=>{if(f){if(s&&u.key==="Escape"){u.preventDefault(),e?.();return}if(u.key==="Tab"){if(v(),l.length===0){u.preventDefault();return}const i=l.indexOf(document.activeElement);u.shiftKey?i<=0&&(u.preventDefault(),l[l.length-1]?.focus()):i>=l.length-1&&(u.preventDefault(),l[0]?.focus())}}},g=u=>{if(!f||!c)return;const i=u.target;h.contains(i)||m?.()},y=()=>{if(!f)return;v();let u=null;typeof o=="function"?u=o():o?u=o:l.length>0&&(u=l[0]),u&&setTimeout(()=>{u?.focus()},50),document.addEventListener("keydown",b,!0),c&&document.addEventListener("click",g,!0)},C=()=>{f=!1,document.removeEventListener("keydown",b,!0),document.removeEventListener("click",g,!0);let u=null;typeof r=="function"?u=r():r?u=r:p&&(u=p),u&&document.body.contains(u)&&setTimeout(()=>{u?.focus()},0)};return setTimeout(()=>y(),0),n.OnDispose(()=>{C()})})}function U(a={}){return{activate:()=>V({...a,active:!0}),deactivate:()=>V({...a,active:!1})}}function F({initialStatus:a="closed",openedAfter:t,closedAfter:s}){const e=n.prop(a),o=()=>{e.set("start-opening")},r=()=>{e.set("start-closing")},c=e.map(i=>i!=="closed"&&i!=="start-closing"&&i!=="closing"),m=i=>{i?o():r()},h=()=>{m(!c.value)},f=[],p=i=>{f.push(e.on(A=>{A==="closed"&&i()}))};let l=()=>{};e.on(i=>{switch(l(),i){case"start-opening":l=w.g(()=>e.set("opening"));break;case"opening":l=t(()=>e.set("opened"));break;case"start-closing":l=w.g(()=>e.set("closing"));break;case"closing":l=s(()=>e.set("closed"));break;case"closed":l=()=>{};break}}),e.onDispose(()=>{f.forEach(i=>i()),l()});const v=e.map(i=>i==="closed"),b=e.map(i=>i==="start-opening"),g=e.map(i=>i==="opening"),y=e.map(i=>i==="opened"),C=e.map(i=>i==="closing"),u=e.map(i=>i==="start-closing");return{status:e,open:o,close:r,toggle:h,setOpen:m,display:c,isClosed:v,isStartOpening:b,isOpening:g,isOpened:y,isClosing:C,isStartClosing:u,dispose:()=>e.dispose(),listenOnClosed:p}}function z({initialStatus:a="closed",duration:t,openDuration:s=t??500,closeDuration:e=t??500}={}){return F({initialStatus:a,openedAfter:o=>w.T(o,s),closedAfter:o=>w.T(o,e)})}function M(a,t){let s=!1,e=null;function o(){s||(s=!0,a.removeEventListener("transitionend",r),a.removeEventListener("animationend",c),e&&(clearTimeout(e),e=null),t())}function r(f){f.target===a&&o()}function c(f){f.target===a&&o()}const m=()=>{if(typeof a.getAnimations>"u"){e=setTimeout(o,16);return}a.addEventListener("transitionend",r),a.addEventListener("animationend",c),a.getAnimations().length===0&&(e=setTimeout(o,1e3))},h=w.g(m);return()=>{s=!0,h(),e&&(clearTimeout(e),e=null),a.removeEventListener("transitionend",r),a.removeEventListener("animationend",c)}}function S({initialStatus:a="closed",element:t}={}){let s=t;return{setElement:e=>{s=e},...F({initialStatus:a,openedAfter:e=>s==null?(e(),()=>{}):M(s,e),closedAfter:e=>s==null?(e(),()=>{}):M(s,e)})}}function D({animation:a="fade",status:t}){return n.attr.class(n.computedOf(a,t)((s,e)=>`bc-animated-toggle bc-animated-toggle--${s} bc-animated-toggle--${e}`))}function R({initialStatus:a="closed",animation:t="fade"},s){return n.WithElement(e=>{const{setElement:o,dispose:r,...c}=S({initialStatus:a,element:e});return o(e),n.Fragment(D({status:c.status,animation:t}),n.OnDispose(r),s(c))})}function I(a){return{"~standard":{version:1,vendor:"beatui-custom",validate:s=>{const e=a.validate(s);return e.success?{value:e.data}:{issues:e.errors.map(o=>({message:o.message,path:o.path}))}},types:void 0},safeParse:s=>{const e=a.validate(s);return e.success?{success:!0,data:e.data}:{success:!1,error:{errors:e.errors.map(o=>({message:o.message,path:o.path?.map(r=>typeof r=="object"&&"key"in r?r.key.toString():r.toString())||[]}))}}}}}class x{optional(){return new H(this)}default(t){return new K(this,t)}schema(){return I(this)}}class T extends x{minLength;maxLength;pattern;customValidations=[];validate(t){if(typeof t!="string")return{success:!1,errors:[{message:"Expected string"}]};const s=[];this.minLength!==void 0&&t.length<this.minLength&&s.push({message:`Must be at least ${this.minLength} characters`}),this.maxLength!==void 0&&t.length>this.maxLength&&s.push({message:`Must be at most ${this.maxLength} characters`}),this.pattern&&!this.pattern.test(t)&&s.push({message:"Invalid format"});for(const e of this.customValidations){const o=e(t);o&&s.push({message:o})}return s.length>0?{success:!1,errors:s}:{success:!0,data:t}}min(t,s){const e=new T;return e.minLength=t,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(o=>o.length<t?s:null),e}max(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=t,e.pattern=this.pattern,e.customValidations=[...this.customValidations],s&&e.customValidations.push(o=>o.length>t?s:null),e}regex(t,s){const e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=t,e.customValidations=[...this.customValidations],s&&e.customValidations.push(o=>t.test(o)?null:s),e}email(t="Please enter a valid email address"){const s=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,e=new T;return e.minLength=this.minLength,e.maxLength=this.maxLength,e.pattern=this.pattern,e.customValidations=[...this.customValidations,o=>s.test(o)?null:t],e}refine(t){const s=new T;return s.minLength=this.minLength,s.maxLength=this.maxLength,s.pattern=this.pattern,s.customValidations=[...this.customValidations,t],s}}class k extends x{mustBeTrue=!1;trueMessage;validate(t){return typeof t!="boolean"?{success:!1,errors:[{message:"Expected boolean"}]}:this.mustBeTrue&&t!==!0?{success:!1,errors:[{message:this.trueMessage||"Must be true"}]}:{success:!0,data:t}}refine(t,s){const e=new k;e.mustBeTrue=this.mustBeTrue,e.trueMessage=this.trueMessage;const o=e.validate.bind(e);return e.validate=r=>{const c=o(r);return c.success?t(c.data)?c:{success:!1,errors:[{message:s}]}:c},e}literal(t,s){const e=new k;return e.mustBeTrue=!0,e.trueMessage=s,e}}class H extends x{constructor(t){super(),this.inner=t}validate(t){if(t===void 0)return{success:!0,data:void 0};const s=this.inner.validate(t);return s.success?{success:!0,data:s.data}:{success:!1,errors:s.errors}}}class K extends x{constructor(t,s){super(),this.inner=t,this.defaultValue=s}validate(t){return t===void 0?{success:!0,data:this.defaultValue}:this.inner.validate(t)}}class B extends x{constructor(t){super(),this.shape=t}validate(t){if(typeof t!="object"||t===null||Array.isArray(t))return{success:!1,errors:[{message:"Expected object"}]};const s=t,e={},o=[];for(const[r,c]of Object.entries(this.shape)){const m=c.validate(s[r]);if(m.success)e[r]=m.data;else for(const h of m.errors)o.push({message:h.message,path:[r,...h.path||[]]})}return o.length>0?{success:!1,errors:o}:{success:!0,data:e}}refine(t,s){const e=new B(this.shape),o=e.validate.bind(e);return e.validate=r=>{const c=o(r);if(!c.success)return c;const m=t(c.data);return m?{success:!1,errors:[{message:m,path:s?.path}]}:{success:!0,data:c.data}},e}}const N=()=>new T,G=()=>new k,J=a=>new B(a);function j(a){return n.WithBrowserCtx(t=>{const s=[],e=()=>s.forEach(r=>r());return a(({effect:r="opaque",mode:c="capturing",onClickOutside:m,onEscape:h,content:f,container:p="body"})=>{p==="body"&&(t=t.makePortal("body"));const l=S();l.listenOnClosed(e);let v=()=>{},b=()=>{};const g=E=>{E.key==="Escape"&&(h?.(),l.close())},y=()=>{m?.(),l.close()},C=E=>{v(),b(),E==="capturing"?(document.addEventListener("keydown",g),v=()=>document.removeEventListener("keydown",g),t.element.addEventListener("mousedown",y),b=()=>t.element.removeEventListener("mousedown",y)):(v=()=>{},b=()=>{})},u=n.Value.on(c,C);s.push(u),s.push(()=>{l.dispose(),v(),b()});const i=()=>{const E=new Set;for(const d of t.element.querySelectorAll(":scope > :not([data-overlay])"))d.hasAttribute("inert")?E.add(d):d.setAttribute("inert","");return s.push(()=>{for(const d of t.element.querySelectorAll(":scope > :not([data-overlay])"))E.has(d)||d.removeAttribute("inert");E.clear()}),document.activeElement?.blur?.(),n.html.div(n.WithElement(d=>l.setElement(d)),n.dataAttr.status(l.status.map(String)),n.dataAttr.overlay("true"),n.attr.class(n.computedOf(r??"opaque",c)((d,L)=>`bc-overlay bc-overlay--effect-${d} bc-overlay--mode-${L}`)),f)},A=n.render(i(),t.element,{disposeWithParent:!0,clear:!1,providers:t.providers});s.push(A),w.g(()=>l.open())},e)})}function W(a,t){const{size:s="md",dismissable:e=!0,showCloseButton:o=!0,onClose:r,overlayEffect:c="opaque",container:m="body",position:h="center"}=a;return j((f,p)=>{let l=()=>{};return t(g=>{l=p;const y=n.prop("capturing");n.Value.on(e,d=>{y.set(d?"capturing":"non-capturing")});const C=n.computedOf(g.header!=null,o)((d,L)=>d||L),u=q.sessionId("modal"),i=`${u}-header`,A=`${u}-body`,E=n.html.div(n.attr.class(n.computedOf(s,h)((d,L)=>`bc-modal bc-modal--size-${d} bc-modal--container-${m} bc-modal--position-${L}`)),n.attr.role("dialog"),n.aria.modal(!0),...g.header?[n.aria.labelledby(i)]:[],n.aria.describedby(A),n.attr.tabindex(-1),n.attr.id(u),n.dataAttr.focusTrap("true"),n.on.mousedown(d=>d.stopPropagation()),V({escapeDeactivates:!1,initialFocus:()=>{const d=document.getElementById(u);if(!d)return null;const L=d.querySelector('[aria-label="Close modal"]');if(L)return L;const $=d.querySelector('button, input, select, textarea, [tabindex]:not([tabindex="-1"])');return $||d}}),n.html.div(n.attr.class("bc-modal__content"),n.When(C,()=>n.html.div(n.attr.class("bc-modal__header"),n.html.div(n.attr.class("bc-modal__title"),...g.header?[n.attr.id(i)]:[],g.header),n.When(o,()=>n.Use(O.BeatUII18n,d=>q.CloseButton({size:"sm",label:d.$.closeModal,onClick:()=>{l(),p()}}))))),n.html.div(n.attr.class("bc-modal__body"),n.attr.id(A),g.body),g.footer&&n.html.div(n.attr.class("bc-modal__footer"),g.footer)));f({mode:y,effect:c??"opaque",container:m,content:E,onClickOutside:()=>{r?.(),p()},onEscape:()=>{r?.(),p()}})},()=>{l(),p()})})}function Q(a,t){const{confirmText:s,cancelText:e,onConfirm:o,onCancel:r,...c}=a;return n.Use(O.BeatUII18n,m=>W({showCloseButton:!1,...c},(h,f)=>{const p=()=>{o?.(),f()},l=()=>{r?.(),f()};return t(b=>{h({body:b,footer:n.Fragment(n.attr.class("bc-modal__actions"),O.Button({variant:"outline",onClick:l},n.coalesce(e,m.$.cancel)),O.Button({color:"primary",variant:"filled",onClick:p},n.coalesce(s,m.$.confirm)))})},f)}))}exports.AnimatedToggle=R;exports.AnimatedToggleClass=D;exports.BooleanValidator=k;exports.ConfirmModal=Q;exports.FocusTrap=V;exports.Modal=W;exports.ObjectValidator=B;exports.Overlay=j;exports.StringValidator=T;exports.boolean=G;exports.createStandardSchema=I;exports.object=J;exports.string=N;exports.useAnimatedElementToggle=S;exports.useAnimatedToggle=F;exports.useFocusTrap=U;exports.useTimedToggle=z;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-DQxg-W9w.cjs"),i={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,t,o)=>{let l=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`tot ${e} bestanden`),t&&o){const r=a.formatFileSize(t,{units:o});n.push(`max ${r} elk`)}n.length>0&&(l+=` (${n.join(", ")})`)}else if(t&&o){const n=a.formatFileSize(t,{units:o});l+=` (max ${n})`}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=i;exports.nl=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./translations-DJR65Jii.cjs"),i={loadingExtended:"Laden, even geduld",loadingShort:"Laden...",locale:"Landinstelling",iconDescription:"Pictogram",loadingIcon:"Laadpictogram",failedToLoadIcon:"Pictogram laden mislukt",editLabel:"Bewerken",selectOne:"Selecteer een",selectMany:"Selecteer meerdere",noResults:"Geen resultaten",passwordPlaceholderText:"Geheim wachtwoord",togglePasswordVisibility:"Wachtwoord zichtbaarheid wisselen",toggleMenu:"Menu wisselen",toggleAside:"Zijpaneel wisselen",mainNavigation:"Hoofdnavigatie",sidebar:"Zijbalk",closeDrawer:"Lade sluiten",closeModal:"Modaal sluiten",confirm:"Bevestigen",cancel:"Annuleren",addLabel:"Toevoegen",removeItem:"Item verwijderen",currentLocale:"Nederlands",ar:"Arabisch",de:"Duits",en:"Engels",es:"Spaans",fr:"Frans",hi:"Hindi",it:"Italiaans",ja:"Japans",ko:"Koreaans",nl:"Nederlands",pl:"Pools",pt:"Portugees",ru:"Russisch",tr:"Turks",vi:"Vietnamees",zh:"Chinees",he:"Hebreeuws",fa:"Perzisch",ur:"Urdu",emailPlaceholderText:"Voer je e-mail in",incrementValue:"Waarde verhogen",decrementValue:"Waarde verlagen",dropZoneInstructions:e=>e?"Klik om te kiezen of sleep bestanden hierheen, of druk op Enter of Spatie om bestandskiezer te openen":"Sleep bestanden hierheen",fileSizeUnits:["Bytes","KB","MB","GB","TB"],removeFile:"Bestand verwijderen",clearAllFiles:"Alle bestanden wissen",clearValue:"Waarde wissen",unknownType:"Onbekend type",filesInputInstructions:(e,t,o)=>{let l=e==null||e>1?"Klik om te kiezen of sleep bestanden hierheen":"Klik om te kiezen of sleep een bestand hierheen";if(e||t){const n=[];if(e!=null&&e>1&&n.push(`tot ${e} bestanden`),t&&o){const r=a.formatFileSize(t,{units:o});n.push(`max ${r} elk`)}n.length>0&&(l+=` (${n.join(", ")})`)}else if(t&&o){const n=a.formatFileSize(t,{units:o});l+=` (max ${n})`}return l},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=i;exports.nl=i;
@@ -1,4 +1,4 @@
1
- import { f as a } from "./translations-iam7PITs.js";
1
+ import { f as a } from "./translations-djDSPqdb.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",