@tempots/beatui 0.38.0 → 0.40.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 (102) hide show
  1. package/dist/{2019-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
  2. package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
  3. package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
  4. package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
  5. package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
  6. package/dist/{ar-avevuYiW.js → ar-i2uHmy8P.js} +1 -1
  7. package/dist/auth/index.cjs.js +1 -1
  8. package/dist/auth/index.es.js +54 -49
  9. package/dist/beatui.css +463 -59
  10. package/dist/beatui.tailwind.css +463 -59
  11. package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
  12. package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
  13. package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
  14. package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
  15. package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
  16. package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
  17. package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
  18. package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
  19. package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
  20. package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
  21. package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
  22. package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +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-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
  26. package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
  27. package/dist/{index-C5-BM51Y.cjs → index-C2VAPX2b.cjs} +1 -1
  28. package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
  29. package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
  30. package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
  31. package/dist/{index-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
  32. package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
  33. package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
  34. package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
  35. package/dist/{index-D41aREgo.js → index-IQ3lRaL0.js} +1 -1
  36. package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
  37. package/dist/index.cjs.js +4 -4
  38. package/dist/index.es.js +3349 -3064
  39. package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
  40. package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
  41. package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
  42. package/dist/{ja-BSRCR430.js → ja-Kb7rxmFg.js} +1 -1
  43. package/dist/json-schema/index.cjs.js +1 -1
  44. package/dist/json-schema/index.es.js +1 -1
  45. package/dist/{ko-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
  46. package/dist/{ko-C7YP1PL4.cjs → ko-B7bLdRnp.cjs} +1 -1
  47. package/dist/markdown/index.cjs.js +1 -1
  48. package/dist/markdown/index.es.js +1 -1
  49. package/dist/modal-BRUgTJG9.cjs +1 -0
  50. package/dist/modal-_2B8vIo0.js +658 -0
  51. package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
  52. package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
  53. package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
  54. package/dist/notice-CncwkUTy.cjs +2 -0
  55. package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
  56. package/dist/{pl-fyCkqVrr.cjs → pl-DUaY5slY.cjs} +1 -1
  57. package/dist/prosemirror/index.cjs.js +1 -1
  58. package/dist/prosemirror/index.es.js +1 -1
  59. package/dist/{pt-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
  60. package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
  61. package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
  62. package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
  63. package/dist/tailwind/index.cjs.js +1 -1
  64. package/dist/tailwind/index.es.js +1 -1
  65. package/dist/tailwind/preset.cjs.js +1 -1
  66. package/dist/tailwind/preset.es.js +1 -1
  67. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  68. package/dist/tailwind/vite-plugin.es.js +1 -1
  69. package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
  70. package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
  71. package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
  72. package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
  73. package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
  74. package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
  75. package/dist/translations-Dw1oO6Dh.cjs +1 -0
  76. package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
  77. package/dist/types/components/beatui.d.ts +4 -1
  78. package/dist/types/components/button/button.d.ts +4 -3
  79. package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
  80. package/dist/types/components/misc/index.d.ts +4 -0
  81. package/dist/types/components/misc/notification-provider.d.ts +47 -0
  82. package/dist/types/components/misc/notification.d.ts +17 -0
  83. package/dist/types/components/misc/opengraph.d.ts +111 -0
  84. package/dist/types/components/navigation/link/button-link.d.ts +2 -0
  85. package/dist/types/components/overlay/lightbox.d.ts +1 -1
  86. package/dist/types/components/overlay/modal.d.ts +2 -2
  87. package/dist/types/components/overlay/ribbon.d.ts +2 -2
  88. package/dist/types/utils/use-animated-toggle.d.ts +43 -9
  89. package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
  90. package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
  91. package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
  92. package/dist/utils-BJZipnfW.cjs +1 -0
  93. package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
  94. package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
  95. package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
  96. package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
  97. package/package.json +4 -3
  98. package/dist/modal--1g8Y5LH.js +0 -601
  99. package/dist/modal-mA_AFUCI.cjs +0 -1
  100. package/dist/notice-DCuZEAQO.cjs +0 -2
  101. package/dist/translations-DQxg-W9w.cjs +0 -1
  102. package/dist/utils-BD6NGV1v.cjs +0 -1
@@ -0,0 +1,658 @@
1
+ import { WithElement as D, OnDispose as V, prop as R, computedOf as w, Fragment as B, attr as g, WithBrowserCtx as J, Value as U, render as Q, html as k, dataAttr as S, aria as F, on as X, When as I, Use as H, coalesce as _ } from "@tempots/dom";
2
+ import { g as $, T as P } from "./timer-DzWb416P.js";
3
+ import { s as Y, C as Z } from "./notice-C4n5jXi6.js";
4
+ import { a as K, B as W } from "./translations-DEEflRUY.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 M(o = {}) {
27
+ const {
28
+ active: t = !0,
29
+ escapeDeactivates: s = !0,
30
+ onEscape: e,
31
+ initialFocus: n,
32
+ returnFocus: r,
33
+ clickOutsideDeactivates: a = !1,
34
+ onClickOutside: u
35
+ } = o;
36
+ return D((m) => {
37
+ let f = t, p = null, c = [];
38
+ typeof document < "u" && (p = document.activeElement);
39
+ const v = () => {
40
+ c = te(m);
41
+ }, b = (l) => {
42
+ if (f) {
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 i = c.indexOf(
53
+ document.activeElement
54
+ );
55
+ l.shiftKey ? i <= 0 && (l.preventDefault(), c[c.length - 1]?.focus()) : i >= c.length - 1 && (l.preventDefault(), c[0]?.focus());
56
+ }
57
+ }
58
+ }, h = (l) => {
59
+ if (!f || !a) return;
60
+ const i = l.target;
61
+ m.contains(i) || u?.();
62
+ }, y = () => {
63
+ if (!f) 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), a && document.addEventListener("click", h, !0);
69
+ }, L = () => {
70
+ f = !1, document.removeEventListener("keydown", b, !0), document.removeEventListener("click", h, !0);
71
+ let l = null;
72
+ typeof r == "function" ? l = r() : r ? l = r : p && (l = p), l && document.body.contains(l) && setTimeout(() => {
73
+ l?.focus();
74
+ }, 0);
75
+ };
76
+ return setTimeout(() => y(), 0), V(() => {
77
+ L();
78
+ });
79
+ });
80
+ }
81
+ function pe(o = {}) {
82
+ return {
83
+ activate: () => M({ ...o, active: !0 }),
84
+ deactivate: () => M({ ...o, active: !1 })
85
+ };
86
+ }
87
+ function N({
88
+ initialStatus: o = "closed",
89
+ openedAfter: t,
90
+ closedAfter: s
91
+ }) {
92
+ const e = R(o), n = () => {
93
+ e.set("start-opening");
94
+ }, r = () => {
95
+ e.set("start-closing");
96
+ }, a = e.map(
97
+ (i) => i !== "closed" && i !== "start-closing" && i !== "closing"
98
+ ), u = (i) => {
99
+ i ? n() : r();
100
+ }, m = () => {
101
+ u(!a.value);
102
+ }, f = [], p = (i) => {
103
+ f.push(
104
+ e.on((T) => {
105
+ T === "closed" && i();
106
+ })
107
+ );
108
+ };
109
+ let c = () => {
110
+ };
111
+ e.on((i) => {
112
+ switch (c(), i) {
113
+ case "start-opening":
114
+ c = $(() => e.set("opening"));
115
+ break;
116
+ case "opening":
117
+ c = t(() => e.set("opened"));
118
+ break;
119
+ case "start-closing":
120
+ c = $(() => 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
+ f.forEach((i) => i()), c();
132
+ });
133
+ const v = e.map((i) => i === "closed"), b = e.map((i) => i === "start-opening"), h = e.map((i) => i === "opening"), y = e.map((i) => i === "opened"), L = e.map((i) => i === "closing"), l = e.map((i) => i === "start-closing");
134
+ return {
135
+ status: e,
136
+ open: n,
137
+ close: r,
138
+ toggle: m,
139
+ setOpen: u,
140
+ display: a,
141
+ isClosed: v,
142
+ isStartOpening: b,
143
+ isOpening: h,
144
+ isOpened: y,
145
+ isClosing: L,
146
+ isStartClosing: l,
147
+ dispose: () => e.dispose(),
148
+ listenOnClosed: p
149
+ };
150
+ }
151
+ function he({
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) => P(n, s),
160
+ closedAfter: (n) => P(n, e)
161
+ });
162
+ }
163
+ function z(o, t) {
164
+ let s = !1, e = null;
165
+ function n() {
166
+ s || (s = !0, o.removeEventListener("transitionend", r), o.removeEventListener("animationend", a), e && (clearTimeout(e), e = null), t());
167
+ }
168
+ function r(f) {
169
+ f.target === o && n();
170
+ }
171
+ function a(f) {
172
+ f.target === o && n();
173
+ }
174
+ const m = $(() => {
175
+ if (typeof o.getAnimations > "u") {
176
+ e = setTimeout(n, 16);
177
+ return;
178
+ }
179
+ o.addEventListener("transitionend", r), o.addEventListener("animationend", a), o.getAnimations().length === 0 && (e = setTimeout(n, 1e3));
180
+ });
181
+ return () => {
182
+ s = !0, m(), e && (clearTimeout(e), e = null), o.removeEventListener("transitionend", r), o.removeEventListener("animationend", a);
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
+ }) : z(s, e),
198
+ closedAfter: (e) => s == null ? (e(), () => {
199
+ }) : z(s, e)
200
+ })
201
+ };
202
+ }
203
+ function se(o) {
204
+ if (o == null) return "";
205
+ const t = [];
206
+ return o.fade && t.push("fade"), o.slide && t.push(`slide-${o.slide}`), o.scale != null && t.push("scale"), t.length > 0 ? t.join(" ") : "none";
207
+ }
208
+ function ne(o) {
209
+ if (o == null) return "";
210
+ const t = [];
211
+ return o.scale != null && typeof o.scale == "number" && t.push(`--scale-factor: ${o.scale}`), o.transformOrigin != null && t.push(`--transform-origin: ${o.transformOrigin}`), o.duration != null && t.push(`--animation-duration: ${o.duration}ms`), o.easing != null && t.push(`--animation-easing: ${o.easing}`), t.join("; ");
212
+ }
213
+ function oe({
214
+ animation: o,
215
+ status: t
216
+ }) {
217
+ const s = w(
218
+ o,
219
+ t
220
+ )((n, r) => {
221
+ if (n == null)
222
+ return `bc-animated-toggle bc-animated-toggle--${r}`;
223
+ const a = r === "start-opening" || r === "opening" || r === "opened";
224
+ let u;
225
+ return "enter" in n || "exit" in n ? u = a ? n.enter : n.exit : u = n, `bc-animated-toggle bc-animated-toggle--${se(u)} bc-animated-toggle--${r}`;
226
+ }), e = w(
227
+ o,
228
+ t
229
+ )((n, r) => {
230
+ if (n == null) return "";
231
+ const a = r === "start-opening" || r === "opening" || r === "opened";
232
+ let u;
233
+ return "enter" in n || "exit" in n ? u = a ? n.enter : n.exit : u = n, ne(u);
234
+ });
235
+ return B(
236
+ V(s, e),
237
+ g.class(s),
238
+ g.style(e)
239
+ );
240
+ }
241
+ function ge({
242
+ initialStatus: o = "closed",
243
+ animation: t
244
+ }, s) {
245
+ return D((e) => {
246
+ const { setElement: n, dispose: r, ...a } = G({
247
+ initialStatus: o,
248
+ element: e
249
+ });
250
+ return n(e), B(
251
+ oe({ status: a.status, animation: t }),
252
+ V(r),
253
+ s(a)
254
+ );
255
+ });
256
+ }
257
+ function re(o) {
258
+ return {
259
+ "~standard": {
260
+ version: 1,
261
+ vendor: "beatui-custom",
262
+ validate: (s) => {
263
+ const e = o.validate(s);
264
+ return e.success ? { value: e.data } : {
265
+ issues: e.errors.map((n) => ({
266
+ message: n.message,
267
+ path: n.path
268
+ }))
269
+ };
270
+ },
271
+ types: void 0
272
+ },
273
+ safeParse: (s) => {
274
+ const e = o.validate(s);
275
+ return e.success ? { success: !0, data: e.data } : {
276
+ success: !1,
277
+ error: {
278
+ errors: e.errors.map((n) => ({
279
+ message: n.message,
280
+ path: n.path?.map(
281
+ (r) => typeof r == "object" && "key" in r ? r.key.toString() : r.toString()
282
+ ) || []
283
+ }))
284
+ }
285
+ };
286
+ }
287
+ };
288
+ }
289
+ class A {
290
+ optional() {
291
+ return new ae(this);
292
+ }
293
+ default(t) {
294
+ return new ie(this, t);
295
+ }
296
+ schema() {
297
+ return re(this);
298
+ }
299
+ }
300
+ class C extends A {
301
+ minLength;
302
+ maxLength;
303
+ pattern;
304
+ customValidations = [];
305
+ validate(t) {
306
+ if (typeof t != "string")
307
+ return { success: !1, errors: [{ message: "Expected string" }] };
308
+ const s = [];
309
+ 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" });
310
+ for (const e of this.customValidations) {
311
+ const n = e(t);
312
+ n && s.push({ message: n });
313
+ }
314
+ return s.length > 0 ? { success: !1, errors: s } : { success: !0, data: t };
315
+ }
316
+ min(t, s) {
317
+ const e = new C();
318
+ return e.minLength = t, e.maxLength = this.maxLength, e.pattern = this.pattern, e.customValidations = [...this.customValidations], s && e.customValidations.push(
319
+ (n) => n.length < t ? s : null
320
+ ), e;
321
+ }
322
+ max(t, s) {
323
+ const e = new C();
324
+ return e.minLength = this.minLength, e.maxLength = t, e.pattern = this.pattern, e.customValidations = [...this.customValidations], s && e.customValidations.push(
325
+ (n) => n.length > t ? s : null
326
+ ), e;
327
+ }
328
+ regex(t, s) {
329
+ const e = new C();
330
+ return e.minLength = this.minLength, e.maxLength = this.maxLength, e.pattern = t, e.customValidations = [...this.customValidations], s && e.customValidations.push(
331
+ (n) => t.test(n) ? null : s
332
+ ), e;
333
+ }
334
+ email(t = "Please enter a valid email address") {
335
+ const s = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, e = new C();
336
+ return e.minLength = this.minLength, e.maxLength = this.maxLength, e.pattern = this.pattern, e.customValidations = [
337
+ ...this.customValidations,
338
+ (n) => s.test(n) ? null : t
339
+ ], e;
340
+ }
341
+ refine(t) {
342
+ const s = new C();
343
+ return s.minLength = this.minLength, s.maxLength = this.maxLength, s.pattern = this.pattern, s.customValidations = [...this.customValidations, t], s;
344
+ }
345
+ }
346
+ class O extends A {
347
+ mustBeTrue = !1;
348
+ trueMessage;
349
+ validate(t) {
350
+ return typeof t != "boolean" ? { success: !1, errors: [{ message: "Expected boolean" }] } : this.mustBeTrue && t !== !0 ? {
351
+ success: !1,
352
+ errors: [{ message: this.trueMessage || "Must be true" }]
353
+ } : { success: !0, data: t };
354
+ }
355
+ refine(t, s) {
356
+ const e = new O();
357
+ e.mustBeTrue = this.mustBeTrue, e.trueMessage = this.trueMessage;
358
+ const n = e.validate.bind(e);
359
+ return e.validate = (r) => {
360
+ const a = n(r);
361
+ return a.success ? t(a.data) ? a : { success: !1, errors: [{ message: s }] } : a;
362
+ }, e;
363
+ }
364
+ literal(t, s) {
365
+ const e = new O();
366
+ return e.mustBeTrue = !0, e.trueMessage = s, e;
367
+ }
368
+ }
369
+ class ae extends A {
370
+ constructor(t) {
371
+ super(), this.inner = t;
372
+ }
373
+ validate(t) {
374
+ if (t === void 0)
375
+ return { success: !0, data: void 0 };
376
+ const s = this.inner.validate(t);
377
+ return s.success ? { success: !0, data: s.data } : { success: !1, errors: s.errors };
378
+ }
379
+ }
380
+ class ie extends A {
381
+ constructor(t, s) {
382
+ super(), this.inner = t, this.defaultValue = s;
383
+ }
384
+ validate(t) {
385
+ return t === void 0 ? { success: !0, data: this.defaultValue } : this.inner.validate(t);
386
+ }
387
+ }
388
+ class j extends A {
389
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
390
+ constructor(t) {
391
+ super(), this.shape = t;
392
+ }
393
+ validate(t) {
394
+ if (typeof t != "object" || t === null || Array.isArray(t))
395
+ return { success: !1, errors: [{ message: "Expected object" }] };
396
+ const s = t, e = {}, n = [];
397
+ for (const [r, a] of Object.entries(this.shape)) {
398
+ const u = a.validate(s[r]);
399
+ if (u.success)
400
+ e[r] = u.data;
401
+ else
402
+ for (const m of u.errors)
403
+ n.push({
404
+ message: m.message,
405
+ path: [r, ...m.path || []]
406
+ });
407
+ }
408
+ return n.length > 0 ? { success: !1, errors: n } : { success: !0, data: e };
409
+ }
410
+ refine(t, s) {
411
+ const e = new j(this.shape), n = e.validate.bind(e);
412
+ return e.validate = (r) => {
413
+ const a = n(r);
414
+ if (!a.success) return a;
415
+ const u = t(a.data);
416
+ return u ? {
417
+ success: !1,
418
+ errors: [
419
+ {
420
+ message: u,
421
+ path: s?.path
422
+ }
423
+ ]
424
+ } : { success: !0, data: a.data };
425
+ }, e;
426
+ }
427
+ }
428
+ const be = () => new C(), ve = () => new O(), ye = (o) => new j(o);
429
+ function ce(o) {
430
+ return J((t) => {
431
+ const s = [], e = () => s.forEach((r) => r());
432
+ return o(({
433
+ effect: r = "opaque",
434
+ mode: a = "capturing",
435
+ onClickOutside: u,
436
+ onEscape: m,
437
+ content: f,
438
+ container: p = "body"
439
+ }) => {
440
+ p === "body" && (t = t.makePortal("body"));
441
+ const c = G();
442
+ c.listenOnClosed(e);
443
+ let v = () => {
444
+ }, b = () => {
445
+ };
446
+ const h = (E) => {
447
+ E.key === "Escape" && (m?.(), c.close());
448
+ }, y = () => {
449
+ u?.(), c.close();
450
+ }, L = (E) => {
451
+ 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 = () => {
452
+ }, b = () => {
453
+ });
454
+ }, l = U.on(a, L);
455
+ s.push(l), s.push(() => {
456
+ c.dispose(), v(), b();
457
+ });
458
+ const T = Q((() => {
459
+ const E = /* @__PURE__ */ new Set();
460
+ for (const d of t.element.querySelectorAll(
461
+ ":scope > :not([data-overlay])"
462
+ ))
463
+ d.hasAttribute("inert") ? E.add(d) : d.setAttribute("inert", "");
464
+ return s.push(() => {
465
+ for (const d of t.element.querySelectorAll(
466
+ ":scope > :not([data-overlay])"
467
+ ))
468
+ E.has(d) || d.removeAttribute("inert");
469
+ E.clear();
470
+ }), document.activeElement?.blur?.(), k.div(
471
+ D((d) => c.setElement(d)),
472
+ S.status(c.status.map(String)),
473
+ S.overlay("true"),
474
+ g.class(
475
+ w(
476
+ r ?? "opaque",
477
+ a
478
+ )(
479
+ (d, x) => `bc-overlay bc-overlay--effect-${d} bc-overlay--mode-${x}`
480
+ )
481
+ ),
482
+ f
483
+ );
484
+ })(), t.element, {
485
+ disposeWithParent: !0,
486
+ clear: !1,
487
+ providers: t.providers
488
+ });
489
+ s.push(T), $(() => c.open());
490
+ }, e);
491
+ });
492
+ }
493
+ function le(o, t) {
494
+ const {
495
+ size: s = "md",
496
+ dismissable: e = !0,
497
+ showCloseButton: n = !0,
498
+ onClose: r,
499
+ overlayEffect: a = "opaque",
500
+ container: u = "body",
501
+ position: m = "center"
502
+ } = o;
503
+ return ce((f, p) => {
504
+ let c = () => {
505
+ };
506
+ return t((h) => {
507
+ c = p;
508
+ const y = R("capturing");
509
+ U.on(e, (d) => {
510
+ y.set(d ? "capturing" : "non-capturing");
511
+ });
512
+ const L = w(
513
+ h.header != null,
514
+ n
515
+ )((d, x) => d || x), l = Y("modal"), i = `${l}-header`, T = `${l}-body`, E = k.div(
516
+ g.class(
517
+ w(
518
+ s,
519
+ m
520
+ )(
521
+ (d, x) => `bc-modal bc-modal--size-${d} bc-modal--container-${u} bc-modal--position-${x}`
522
+ )
523
+ ),
524
+ // Essential ARIA attributes for modal dialog
525
+ g.role("dialog"),
526
+ F.modal(!0),
527
+ ...h.header ? [F.labelledby(i)] : [],
528
+ F.describedby(T),
529
+ g.tabindex(-1),
530
+ // Make modal focusable for initial focus
531
+ g.id(l),
532
+ S.focusTrap("true"),
533
+ // Mark as focus trap container
534
+ X.mousedown((d) => d.stopPropagation()),
535
+ // Prevent overlay click-outside when clicking modal content
536
+ // Focus trap implementation
537
+ M({
538
+ escapeDeactivates: !1,
539
+ // Let Overlay handle escape key
540
+ initialFocus: () => {
541
+ const d = document.getElementById(l);
542
+ if (!d) return null;
543
+ const x = d.querySelector(
544
+ '[aria-label="Close modal"]'
545
+ );
546
+ if (x) return x;
547
+ const q = d.querySelector(
548
+ 'button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
549
+ );
550
+ return q || d;
551
+ }
552
+ }),
553
+ // Modal content container
554
+ k.div(
555
+ g.class("bc-modal__content"),
556
+ // Header section
557
+ I(
558
+ L,
559
+ () => k.div(
560
+ g.class("bc-modal__header"),
561
+ k.div(
562
+ g.class("bc-modal__title"),
563
+ ...h.header ? [g.id(i)] : [],
564
+ h.header
565
+ ),
566
+ I(
567
+ n,
568
+ () => H(
569
+ K,
570
+ (d) => Z({
571
+ size: "sm",
572
+ label: d.$.closeModal,
573
+ onClick: () => {
574
+ c(), p();
575
+ }
576
+ })
577
+ )
578
+ )
579
+ )
580
+ ),
581
+ // Body section
582
+ k.div(g.class("bc-modal__body"), g.id(T), h.body),
583
+ // Footer section
584
+ h.footer && k.div(g.class("bc-modal__footer"), h.footer)
585
+ )
586
+ );
587
+ f({
588
+ mode: y,
589
+ effect: a ?? "opaque",
590
+ container: u,
591
+ content: B(V(y, L), E),
592
+ onClickOutside: () => {
593
+ r?.(), p();
594
+ },
595
+ onEscape: () => {
596
+ r?.(), p();
597
+ }
598
+ });
599
+ }, () => {
600
+ c(), p();
601
+ });
602
+ });
603
+ }
604
+ function Ee(o, t) {
605
+ const { confirmText: s, cancelText: e, onConfirm: n, onCancel: r, ...a } = o;
606
+ return H(
607
+ K,
608
+ (u) => le({ showCloseButton: !1, ...a }, (m, f) => {
609
+ const p = () => {
610
+ n?.(), f();
611
+ }, c = () => {
612
+ r?.(), f();
613
+ };
614
+ return t((b) => {
615
+ m({
616
+ body: b,
617
+ footer: B(
618
+ g.class("bc-modal__actions"),
619
+ W(
620
+ {
621
+ variant: "outline",
622
+ onClick: c
623
+ },
624
+ _(e, u.$.cancel)
625
+ ),
626
+ W(
627
+ {
628
+ color: "primary",
629
+ variant: "filled",
630
+ onClick: p
631
+ },
632
+ _(s, u.$.confirm)
633
+ )
634
+ )
635
+ });
636
+ }, f);
637
+ })
638
+ );
639
+ }
640
+ export {
641
+ oe as A,
642
+ O as B,
643
+ Ee as C,
644
+ M as F,
645
+ le as M,
646
+ ce as O,
647
+ C as S,
648
+ ge as a,
649
+ ve as b,
650
+ j as c,
651
+ re as d,
652
+ pe as e,
653
+ N as f,
654
+ he as g,
655
+ ye as o,
656
+ be as s,
657
+ G as u
658
+ };
@@ -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-Dw1oO6Dh.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-DEEflRUY.js";
2
2
  const s = {
3
3
  loadingExtended: "Laden, even geduld",
4
4
  loadingShort: "Laden...",